-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EREGCSC- 2875 subject counts -- Implement counts of filtered search r…
…esults by subject (#1452) * feat: add ability to refine counts composable response by field name * feat: make FetchContainer more generic and use with Subjects dropdown * feat: filter subjects list based on counts * feat: add counts to subject selector items in dropdown * feat: add totalCount li and hook it to clearClick * feat: better style list item * feat: limit count params to only q * fix: provide consistent data type when passing in counts * chore: remove allSubjects list item * chore: remove totalCounts artifacts * fix: add aria-label where needed * fix: rename prop to match changes * test: when matching Doc Type label text, make string matcher more permissive * test: Vitest tweaks (linting, alias) and one unit test * chore: linting * test: update counts fixture; begin e2e tests * chore: remove loading indicator from categories dropdown in order to match subjects dropdown's lack of loading indicator * test: first pass as Subjects DD E2E tests * feat: clear subjects button E2E test * chore: make subject selector li class more generic since it no longer exists only in the subjects page sidebar * style: add left margin to count span * chore: remove explicit height on subjects DD ul * chore: tweak subject selector styles to mitigate unnecessary scroll bars for those who see them * chore: further scrollbar refinements
- Loading branch information
Showing
17 changed files
with
373 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,36 @@ | ||
{ | ||
"internal_resource_count": 1, | ||
"public_resource_count": 2, | ||
"regulation_text_count": 3 | ||
"regulation_text_count": 3, | ||
"subjects": [ | ||
{ | ||
"subject": 2, | ||
"count": 41 | ||
}, | ||
{ | ||
"subject": 3, | ||
"count": 15 | ||
}, | ||
{ | ||
"subject": 4, | ||
"count": 6 | ||
} | ||
], | ||
"categories": [ | ||
{ | ||
"category": 2, | ||
"parent": null, | ||
"count": 100 | ||
}, | ||
{ | ||
"category": 4, | ||
"parent": 3, | ||
"count": 20 | ||
}, | ||
{ | ||
"category": 5, | ||
"parent": 3, | ||
"count": 13 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.