Skip to content

Commit

Permalink
Merge pull request #3713 from bcgov/NDT-606-Refine-Global-Search-for-…
Browse files Browse the repository at this point in the history
…the-Internal-and-External-Status

feat: filter status on global search
  • Loading branch information
ccbc-service-account authored Dec 4, 2024
2 parents 8950e15 + 8203abe commit 386fcaa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [1.215.0](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.214.3...v1.215.0) (2024-12-04)

### Features

- filter status on global search ([3ff9226](https://github.com/bcgov/CONN-CCBC-portal/commit/3ff922688c63598096b974284c80c14a4ed2eb5c))

## [1.214.3](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.214.2...v1.214.3) (2024-12-04)

## [1.214.2](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.214.1...v1.214.2) (2024-12-04)
Expand Down
10 changes: 6 additions & 4 deletions app/components/AnalystDashboard/AllDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
}));

const allCbcApplications = showCbcProjects
? allCbcData.edges.map((project) => {
? (allCbcData.edges.map((project) => {
const cbcStatus = project.node.jsonData.projectStatus
? cbcProjectStatusConverter(project.node.jsonData.projectStatus)
: null;
Expand All @@ -551,7 +551,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
showLink: showCbcProjectsLink,
communities: getCbcCommunities(project),
};
}) ?? []
}) ?? [])
: [];

return [...allCcbcApplications, ...allCbcApplications];
Expand Down Expand Up @@ -637,7 +637,8 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
sortingFn: sortZones,
},
{
accessorKey: 'analystStatus',
accessorFn: (row) => normalizeStatusName(row.analystStatus),
id: 'analystStatus',
header: 'Internal Status',
Cell: AnalystStatusCell,
filterVariant: 'multi-select',
Expand All @@ -646,7 +647,8 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
sortingFn: sortStatus,
},
{
accessorKey: 'externalStatus',
accessorFn: (row) => normalizeStatusName(row.externalStatus),
id: 'externalStatus',
header: 'External Status',
Cell: ApplicantStatusCell,
filterVariant: 'multi-select',
Expand Down
1 change: 1 addition & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,4 @@ mutations/create_assessment_form [mutations/[email protected]] 2024
@1.214.1 2024-12-04T03:24:26Z CCBC Service Account <[email protected]> # release v1.214.1
@1.214.2 2024-12-04T18:39:28Z CCBC Service Account <[email protected]> # release v1.214.2
@1.214.3 2024-12-04T21:21:10Z CCBC Service Account <[email protected]> # release v1.214.3
@1.215.0 2024-12-04T23:00:00Z CCBC Service Account <[email protected]> # release v1.215.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CONN-CCBC-portal",
"version": "1.214.3",
"version": "1.215.0",
"main": "index.js",
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git",
"author": "Romer, Meherzad CITZ:EX <[email protected]>",
Expand Down

0 comments on commit 386fcaa

Please sign in to comment.