-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be useful, particularly when sending evidence that a test is eligible to becoming required if we could provide an optional url query parameter that would pre-fill the search box. e.g. if I want to give evidence that the run-runk
tests are stable/have problems, I could link something like https://kata-containers.github.io/?search=run-runk
and it would pre-fill in the search with that string, and maybe even auto expand the results view? e.g.

Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
P0
Milestone
Relationships
Development
Select code repository
Activity
[-]Add search pre-fill via url[/-][+]dashboard: Add search pre-fill via url[/+]afinn12 commentedon Oct 9, 2024
URL search working-- example shows URL searching for "qemu" and table search looking for "coco."
(PR #15 in our repo)
stevenhorsman commentedon Oct 9, 2024
Thanks - the demo looks great, so I look forward to seeing this get merged :)
sprt commentedon Oct 9, 2024
@afinn12 Can we make it so that typing in the search bar updates the URL directly? Or provide some button to click to go to that search page? I want to avoid users having to manipulate the URL directly.
afinn12 commentedon Oct 18, 2024
When filters are applied using the menu, the URL is immediately updated and the page is reloaded.
If "Keep URL Search Terms" is selected, the search rules from the URL will be kept in future searches.
For instance, given this search:

If we add another rule:

It then loads:

Note that the operator changed appropriately (matches any vs. all, denoted as "and"/"or") as well.
Populating the filter menu with the rules from the URL didn't appear possible.
PR #20 in our repo
afinn12 commentedon Nov 1, 2024
PR #22
The filter box has been replaced with a form (with select/input).
Additionally, URL processing is done through URLSearchParams
Clear Search button added (will clear the search and reload page)
Moved "Total Rows" to the top of the table for visibility
It is also responsive:
afinn12 commentedon Nov 6, 2024
PR #22
sprt commentedon Nov 6, 2024
Ready to review
dashboard: Add search box and link to URL
dashboard: Add search box and link to URL
dashboard: Add search box and link to URL
dashboard: Add search box and link to URL
dashboard: Add search box and link to URL
dashboard: Add search box and link to URL
dashboard: Add search box and link to URL