Skip to content

Commit

Permalink
Merge pull request #1896 from threefoldtech/development_fix_filter_names
Browse files Browse the repository at this point in the history
replace max with min in filter names and tooltips
  • Loading branch information
amiraabouhadid authored Jan 8, 2024
2 parents 444b5a9 + b54fc49 commit 3711f82
Showing 1 changed file with 14 additions and 14 deletions.
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

0 comments on commit 3711f82

Please sign in to comment.