New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Hide Alert Checks from localStorage to user settings #7282
Convert Hide Alert Checks from localStorage to user settings #7282
Conversation
07e7f7a
to
ce3e025
Compare
frontend/packages/console-shared/src/components/health-checks/HealthChecksAlert.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/console-shared/src/components/health-checks/HealthChecksAlert.tsx
Outdated
Show resolved
Hide resolved
7b4062a
to
f06d66e
Compare
@@ -30,6 +30,8 @@ export const UNASSIGNED_APPLICATIONS_KEY = '#UNASSIGNED_APP#'; | |||
// Prefix our localStorage items to avoid conflicts if another app ever runs on the same domain. | |||
export const STORAGE_PREFIX = 'bridge'; | |||
|
|||
export const CONFIGMAP_PREFIX = 'console'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rottencandy @invincibleJai Can / should we call this USERSETTINGS_PREFIX
? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
}); | ||
[settings, callback] = useUserSettings('devconsole.topology.key', 'list'); | ||
expect(callback).toBeDefined(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New tests looks easier 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of Sahil's PR
f06d66e
to
39e9f53
Compare
39e9f53
to
67e842b
Compare
/lgtm Verified the changes , works as expected |
/assign @christianvogt |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, invincibleJai, rottencandy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Story:
https://issues.redhat.com/browse/ODC-5106
Description:
Use
useUserSettings
hook to store the local storage data into a config map.Browser conformance: