From b83df170e0badb9e39c5459dfd454eb8c2464cf4 Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Tue, 14 Nov 2023 15:26:33 -0500 Subject: [PATCH 1/2] Sort state filter options in alphabetical order. --- .../HealthPlanPackageTable/HealthPlanPackageTable.tsx | 10 ++++++---- .../RateReviewsDashboard/RateReviewsTable.tsx | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/services/app-web/src/components/HealthPlanPackageTable/HealthPlanPackageTable.tsx b/services/app-web/src/components/HealthPlanPackageTable/HealthPlanPackageTable.tsx index 70593470b4..9bb88839b4 100644 --- a/services/app-web/src/components/HealthPlanPackageTable/HealthPlanPackageTable.tsx +++ b/services/app-web/src/components/HealthPlanPackageTable/HealthPlanPackageTable.tsx @@ -350,10 +350,12 @@ export const HealthPlanPackageTable = ({ // Filter options based on table data instead of static list of options. const stateFilterOptions = Array.from( stateColumn.getFacetedUniqueValues().keys() - ).map((state) => ({ - value: state, - label: state, - })) + ) + .sort() + .map((state) => ({ + value: state, + label: state, + })) const filterLength = columnFilters.flatMap((filter) => filter.value).length const filtersApplied = `${filterLength} ${pluralize( diff --git a/services/app-web/src/pages/CMSDashboard/RateReviewsDashboard/RateReviewsTable.tsx b/services/app-web/src/pages/CMSDashboard/RateReviewsDashboard/RateReviewsTable.tsx index b082f07c63..4759eb367d 100644 --- a/services/app-web/src/pages/CMSDashboard/RateReviewsDashboard/RateReviewsTable.tsx +++ b/services/app-web/src/pages/CMSDashboard/RateReviewsDashboard/RateReviewsTable.tsx @@ -365,10 +365,12 @@ export const RateReviewsTable = ({ // Filter options based on table data instead of static list of options. const stateFilterOptions = Array.from( stateColumn.getFacetedUniqueValues().keys() - ).map((state) => ({ - value: state, - label: state, - })) + ) + .sort() + .map((state) => ({ + value: state, + label: state, + })) const filterLength = columnFilters.flatMap((filter) => filter.value).length const filtersApplied = `${filterLength} ${pluralize( From ab6ad5aa79c89f19c29766130b977ea49511a8ea Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Tue, 14 Nov 2023 16:54:34 -0500 Subject: [PATCH 2/2] cypress re-run