Skip to content

Add saved search editor component#1411

Merged
jcscottiii merged 24 commits intomainfrom
jcscottiii/add-editor
Apr 22, 2025
Merged

Add saved search editor component#1411
jcscottiii merged 24 commits intomainfrom
jcscottiii/add-editor

Conversation

@jcscottiii
Copy link
Collaborator

This introduces a new form for the saved search component.

We currently are not rendering this shoelace dialog. That will happen in a future PR along with some playwright tests.

This dialog handles the creation, updating and deletion of the saved search.

This dialog re-uses the typeahead component with the vocabulary.

If a user is currently editing a query, it will be passed into the dialog so that they will not need to copy the query from the overview page typeahead to the dialog typeahead.

Other changes:

  • Add octagon svg icon
  • Expose label property typeahead.

This is a split up of #1364 but with tests added

@jcscottiii jcscottiii force-pushed the jcscottiii/add-editor branch 5 times, most recently from 83882a5 to 246f0a1 Compare April 21, 2025 16:15
This introduces a new form for the saved search component.

We currently are not rendering this shoelace dialog. That will happen in
a future PR along with some playwright tests.

This dialog handles the creation, updating and deletion of the saved search.
@jcscottiii jcscottiii force-pushed the jcscottiii/add-editor branch from 246f0a1 to b11c799 Compare April 21, 2025 16:59
jcscottiii added a commit that referenced this pull request Apr 21, 2025
This component will be entrypoint to controlling saved searches and
bookmark status on the overview page.

For creating/updating/deleting saved searches, this component will open the saved search editor component created in #1411

For bookmarking/unbookmarking, the controls component itself will handle the HTTP tasks to toggle the status.
This component will dispatch either `saved-search-bookmarked` or `saved-search-unbookmarked` which will be handled by webstatus-bookmarks-service
jcscottiii added a commit that referenced this pull request Apr 21, 2025
This component will be entrypoint to controlling saved searches and
bookmark status on the overview page.

For creating/updating/deleting saved searches, this component will open the saved search editor component created in #1411

For bookmarking/unbookmarking, the controls component itself will handle the HTTP tasks to toggle the status.
This component will dispatch either `saved-search-bookmarked` or `saved-search-unbookmarked` which will be handled by webstatus-bookmarks-service
jcscottiii added a commit that referenced this pull request Apr 21, 2025
This component will be entrypoint to controlling saved searches and
bookmark status on the overview page.

For creating/updating/deleting saved searches, this component will open the saved search editor component created in #1411

For bookmarking/unbookmarking, the controls component itself will handle the HTTP tasks to toggle the status.
This component will dispatch either `saved-search-bookmarked` or `saved-search-unbookmarked` which will be handled by webstatus-bookmarks-service
Copy link
Collaborator

@jrobbins jrobbins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after some questions.

@jcscottiii jcscottiii added this pull request to the merge queue Apr 22, 2025
Merged via the queue into main with commit e1ab334 Apr 22, 2025
7 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/add-editor branch April 22, 2025 18:27
jcscottiii added a commit that referenced this pull request Apr 22, 2025
This component will be entrypoint to controlling saved searches and
bookmark status on the overview page.

For creating/updating/deleting saved searches, this component will open the saved search editor component created in #1411

For bookmarking/unbookmarking, the controls component itself will handle the HTTP tasks to toggle the status.
This component will dispatch either `saved-search-bookmarked` or `saved-search-unbookmarked` which will be handled by webstatus-bookmarks-service
jcscottiii added a commit that referenced this pull request Apr 22, 2025
This component will be entrypoint to controlling saved searches and
bookmark status on the overview page.

For creating/updating/deleting saved searches, this component will open the saved search editor component created in #1411

For bookmarking/unbookmarking, the controls component itself will handle the HTTP tasks to toggle the status.
This component will dispatch either `saved-search-bookmarked` or `saved-search-unbookmarked` which will be handled by webstatus-bookmarks-service
github-merge-queue bot pushed a commit that referenced this pull request Apr 23, 2025
This component will be entrypoint to controlling saved searches and
bookmark status on the overview page.

For creating/updating/deleting saved searches, this component will open the saved search editor component created in #1411

For bookmarking/unbookmarking, the controls component itself will handle the HTTP tasks to toggle the status.
This component will dispatch either `saved-search-bookmarked` or `saved-search-unbookmarked` which will be handled by webstatus-bookmarks-service
@jcscottiii jcscottiii mentioned this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Frontend has UI to update saved search [ENHANCEMENT] Frontend has UI to create and delete saved searches

2 participants