Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace max with min in filter names and tooltips #1896

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions packages/playground/src/utils/filter_nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,31 +84,31 @@ export const inputsInitializer: () => FilterNodeInputs = () => ({
tooltip: "Filter by country.",
},
totalSru: {
label: "Max SSD (GB)",
label: "Min SSD (GB)",
rules: [
[
isNumeric("This field accepts numbers only."),
min("The total ssd should be larger then zero.", 1),
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of SSD in the node.",
tooltip: "Filter by the minimum total amount of SSD in the node.",
type: "text",
},
totalHru: {
label: "Max HDD (GB)",
label: "Min HDD (GB)",
rules: [
[
isNumeric("This field accepts numbers only."),
min("The total hdd should be larger then zero.", 1),
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of HDD in the node.",
tooltip: "Filter by the minimum total amount of HDD in the node.",
type: "text",
},
totalMru: {
label: "Max RAM (GB)",
label: "Min RAM (GB)",
value: undefined,
rules: [
[
Expand All @@ -117,7 +117,7 @@ export const inputsInitializer: () => FilterNodeInputs = () => ({
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of RAM in the node.",
tooltip: "Filter by the minimum total amount of RAM in the node.",
type: "text",
},
freeSru: {
Expand Down Expand Up @@ -161,7 +161,7 @@ export const inputsInitializer: () => FilterNodeInputs = () => ({

export const DedicatedNodeInitializer: () => DedicatedNodeFilters = () => ({
total_cru: {
label: "Max CPU (Cores)",
label: "Min CPU (Cores)",
type: "text",
rules: [
[
Expand All @@ -170,10 +170,10 @@ export const DedicatedNodeInitializer: () => DedicatedNodeFilters = () => ({
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of CPU Cores in the node.",
tooltip: "Filter by the minimum total amount of CPU Cores in the node.",
},
total_mru: {
label: "Max RAM (GB)",
label: "Min RAM (GB)",
type: "text",
rules: [
[
Expand All @@ -182,10 +182,10 @@ export const DedicatedNodeInitializer: () => DedicatedNodeFilters = () => ({
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of RAM in the node.",
tooltip: "Filter by the minimum total amount of RAM in the node.",
},
total_sru: {
label: "Max SSD (GB)",
label: "Min SSD (GB)",
type: "text",
rules: [
[
Expand All @@ -194,10 +194,10 @@ export const DedicatedNodeInitializer: () => DedicatedNodeFilters = () => ({
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of SSD in the node.",
tooltip: "Filter by the minimum total amount of SSD in the node.",
},
total_hru: {
label: "Max HDD (GB)",
label: "Min HDD (GB)",
type: "text",
rules: [
[
Expand All @@ -206,7 +206,7 @@ export const DedicatedNodeInitializer: () => DedicatedNodeFilters = () => ({
validateResourceMaxNumber("This value is out of range."),
],
],
tooltip: "Filter by the maximum total amount of HDD in the node.",
tooltip: "Filter by the minimum total amount of HDD in the node.",
},

gpu_device_name: {
Expand Down
Loading