Skip to content

Allow overview-page components to use appBookmarkInfoContext to automatically load public user saved searches#1329

Merged
jcscottiii merged 1 commit intomainfrom
jcscottiii/ui-searches-v4.8.3
Mar 27, 2025
Merged

Allow overview-page components to use appBookmarkInfoContext to automatically load public user saved searches#1329
jcscottiii merged 1 commit intomainfrom
jcscottiii/ui-searches-v4.8.3

Conversation

@jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Mar 26, 2025

Depends on #1328

This change subscribes various overview page components to appBookmarkInfoContext so that it can get bookmark info.

I also introduced a new Error for TaskTracker: TaskNotReadyError We need this error so that the call to getFeatures waits until we have gotten the information from user saved searches API.

You will see the changes in webstatus-overview-page.ts that use that new error.

Future PR TODO:

  • When it comes to editing and creating these bookmarks, we will probably move around some of these components (Which might simplify the number of components subscribed to appBookmarkInfoContext). In the meantime, I did not add too many unit tests but instead added some e2e tests in playwright to help give some coverage. The playwright tests use the fake data populated here.

@jcscottiii jcscottiii changed the title Subscribe overview-page components to appBookmarkInfoContext Allow overview-page components to use appBookmarkInfoContext to automatically load public user saved searches Mar 26, 2025
@jcscottiii jcscottiii requested review from KyleJu and jrobbins March 26, 2025 15:33
@jcscottiii jcscottiii force-pushed the jcscottiii/ui-searches-v4.8.2 branch from b0bd7df to 43cdf54 Compare March 26, 2025 23:03
@jcscottiii jcscottiii force-pushed the jcscottiii/ui-searches-v4.8.3 branch from ca15e14 to 45db461 Compare March 26, 2025 23:03
Base automatically changed from jcscottiii/ui-searches-v4.8.2 to main March 26, 2025 23:38
This change subscribes various overview page components to appBookmarkInfoContext
so that it can get bookmark info.

I also introduced a new Error for TaskTracker: TaskNotReadyError
We need this error so that the call to getFeatures waits until we have gotten the information from user saved searches API.

You will see the changes in webstatus-overview-page.ts that use that new error.

TODO:
- When it comes to editing and creating these bookmarks, we will probably move around some of these components (Which might simplify the number of components subscribed to appBookmarkInfoContext).
  In the meantime, I did not add too many unit tests but instead added some e2e tests in playwright to help give some coverage.
@jcscottiii jcscottiii force-pushed the jcscottiii/ui-searches-v4.8.3 branch from 45db461 to 6353021 Compare March 26, 2025 23:48
@jcscottiii jcscottiii enabled auto-merge March 26, 2025 23:48
@jcscottiii jcscottiii added this pull request to the merge queue Mar 27, 2025
Merged via the queue into main with commit d30d92f Mar 27, 2025
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/ui-searches-v4.8.3 branch March 27, 2025 00:21
@jrobbins jrobbins mentioned this pull request Apr 2, 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 can retrieve user saved searches from the backend and display them

2 participants