-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Next theme] Add modal to notify users of theme updates #4715
[Next theme] Add modal to notify users of theme updates #4715
Conversation
Copy and images provisional, for demo purposes only. Signed-off-by: Josh Romero <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #4715 +/- ##
==========================================
- Coverage 66.46% 66.46% -0.01%
==========================================
Files 3390 3391 +1
Lines 64742 64753 +11
Branches 10312 10312
==========================================
+ Hits 43030 43036 +6
- Misses 19169 19174 +5
Partials 2543 2543
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Josh Romero <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
WIP demo of this PR + #4845 + additional changes |
@joshuarrrr marking this as draft until its ready for review. Feel free to unmark it if thats not correct. |
and hide modal if v7 theme is in use Signed-off-by: Josh Romero <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
…Search-Dashboards into feat/next-preview-notify
<EuiText> | ||
<FormattedMessage | ||
id="home.newThemeModal.previewDescription.previewDetail" | ||
defaultMessage="You are now previewing the newest OpenSearch Dashboards theme with improved light and dark |
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.
"newest" sounds odd to me; it reads as "previewing the latest new theme". why not just "latest" or just "new"?
* Feat (home): Add modal to introduce `next` theme changes Copy and images provisional, for demo purposes only. Signed-off-by: Josh Romero <[email protected]> * revert unintended config change Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> * Disable new theme modal for functional tests Signed-off-by: Josh Romero <[email protected]> * add deep link to settings and hide modal if v7 theme is in use Signed-off-by: Josh Romero <[email protected]> * add unit tests and fix imports Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> (cherry picked from commit b846e80) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* Feat (home): Add modal to introduce `next` theme changes Copy and images provisional, for demo purposes only. Signed-off-by: Josh Romero <[email protected]> * revert unintended config change Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> * Disable new theme modal for functional tests Signed-off-by: Josh Romero <[email protected]> * add deep link to settings and hide modal if v7 theme is in use Signed-off-by: Josh Romero <[email protected]> * add unit tests and fix imports Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> (cherry picked from commit b846e80) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Copy and images provisional, for demo purposes only.
Add a new modal to the home page that provides explanation of theme changes and a link to advanced settings where themes can be managed.
On close or dismissal, set a
localstorage
value that will hide the modal on future visits tohome
.Also provide a config value that can be used to permanently disable the modal.
Issues Resolved
fixes #4676
Screenshot
Testing the changes
home
or first loading the applicationCheck List
yarn test:jest
yarn test:jest_integration
yarn test:ftr