From b2c985cc85b556a6a1700002f3200da298644aed Mon Sep 17 00:00:00 2001 From: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:23:36 -0400 Subject: [PATCH] change: [M3-7856] - Update ACLB Match Condition Tooltips and Placeholders (#10271) * use correct format for placeholders and tooltips * Added changeset: Update ACLB Match Condition Tooltips and Placeholders --------- Co-authored-by: Banks Nussman --- .../manager/.changeset/pr-10271-changed-1710174159065.md | 5 +++++ .../LoadBalancers/LoadBalancerDetail/Routes/constants.tsx | 5 ++--- .../LoadBalancers/LoadBalancerDetail/Routes/utils.ts | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 packages/manager/.changeset/pr-10271-changed-1710174159065.md diff --git a/packages/manager/.changeset/pr-10271-changed-1710174159065.md b/packages/manager/.changeset/pr-10271-changed-1710174159065.md new file mode 100644 index 00000000000..ad35a3c9651 --- /dev/null +++ b/packages/manager/.changeset/pr-10271-changed-1710174159065.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Changed +--- + +Update ACLB Match Condition Tooltips and Placeholders ([#10271](https://github.com/linode/manager/pull/10271)) diff --git a/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/constants.tsx b/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/constants.tsx index 0a265fc1329..2404df5df7a 100644 --- a/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/constants.tsx +++ b/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/constants.tsx @@ -28,7 +28,7 @@ export const ROUTE_COPY = { 'For TCP load balancers, a rule consists of service targets and the percentage of incoming requests that should be directed to each target. Add as many service targets as required, but the percentages for all targets must total 100%.', }, MatchValue: { - header: 'The format for http header is: X-name:value.', + header: 'The format for http header is: X-name=value.', method: 'The request methods include: DELETE, GET, HEAD, POST, and PUT.', path_prefix: 'The format of the path rule is: /pathname1/pathame2. The initial slash is required, but the trailing slash is not.', @@ -39,8 +39,7 @@ export const ROUTE_COPY = { /path/.*[.]jpg. Initial slash is required. ), - query: - 'The format for query string is: ?name=value. The query string name must be preceded by a question mark (?).', + query: 'The format for query string is: name=value.', }, Stickiness: { Cookie: diff --git a/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/utils.ts b/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/utils.ts index b1664b4d4f8..8733c2d3779 100644 --- a/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/utils.ts +++ b/packages/manager/src/features/LoadBalancers/LoadBalancerDetail/Routes/utils.ts @@ -24,11 +24,11 @@ export const matchValuePlaceholder: Record< CustomerFacingMatchFieldOption, string > = { - header: 'x-my-header:this', + header: 'x-my-header=this', method: 'POST', path_prefix: '/my-path', path_regex: '/path/.*[.](jpg)', - query: '?my-query-param=this', + query: 'my-query-param=this', }; export const matchTypeOptions = Object.keys(matchFieldMap).map(