Skip to content

Commit 483f220

Browse files
gregaubertsonartech
authored andcommitted
SC-33636 Migrate project issues and hotspots pages to new project page template
GitOrigin-RevId: 0be3128f12d6c97285d29c2475619e6e36c8bcf8
1 parent 5de2b66 commit 483f220

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

libs/shared/src/helpers/query.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,18 @@ export function queryToSearchString(query: RawQuery | URLSearchParamsInit = {})
3939

4040
return queryString ? `?${queryString}` : undefined;
4141
}
42+
43+
export function filterQueryToSearchString(
44+
query: RawQuery | URLSearchParamsInit,
45+
filter: string[] | ((key: string) => boolean),
46+
) {
47+
const searchParams = createSearchParams(query);
48+
const filteredParams = Array.from(searchParams.entries()).filter(([key]) => {
49+
if (Array.isArray(filter)) {
50+
return filter.includes(key);
51+
}
52+
return filter(key);
53+
});
54+
55+
return queryToSearchString(filteredParams);
56+
}

tools/scan-components/componentMap.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ export const componentMap = {
748748
CopyIcon: 'Icons',
749749
OrganizationUrlInput: 'TextInput',
750750
Footer: '',
751-
PageBoxFullHeight: '',
752751
MultiSelect: '',
753752
DeleteBranchModal: 'ModalAlert',
754753
SecurityStandardIssueCount: 'Excluded',

0 commit comments

Comments
 (0)