-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
UI - Implement personalization screen for quick links #19271
UI - Implement personalization screen for quick links #19271
Conversation
* Renames:PersonalizationShortcutsViewModelSlice to ShortcutsPersonalizationViewModelSlice
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
* Renames: PersonalizationViewModelTest to DashboardCardPersonalizationViewModelSliceTest
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
* Renames:PersonalizationShortcutsViewModelSlice to ShortcutsPersonalizationViewModelSlice
* Renames: PersonalizationViewModelTest to DashboardCardPersonalizationViewModelSliceTest
…ing-implement-personalization-quick-links' into issue/unified-dashboard-refactoring-implement-personalization-quick-links
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.
Nice work @AjeshRPai . I like that the "viewModelSlices" get their own data for this view. This is a great step forward, which we can eventually apply to MySIteViewModel.
bloggingRemindersStore.updateBloggingReminders(current.copy(isPromptsCardEnabled = isEnabled)) | ||
override fun onCleared() { | ||
super.onCleared() | ||
shortcutsPersonalizationViewModelSlice.onCleared() |
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.
❤️ Thanks for adding this. Now we can be sure that the scopes are canceled in the viewModel slices.
blazeFeatureUtils.isSiteBlazeEligible(site) | ||
|
||
fun onCleared() { | ||
this.scope.cancel() |
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.
More ❤️
<string name="personalization_screen_footer_cards"> Cards may show different content depending on what\'s happening with your site</string> | ||
<string name="personalization_screen_cards_tab_title">Cards</string> | ||
<string name="personalization_screen_shortcuts_tab_title">Shortcuts</string> | ||
<string name="personalization_screen_tab_cards_description">Add or hide Cards</string> |
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.
❔ Thinking out loud; could we have repurposed the original string and not done translation again, by updating all the string files. Not necessary, but just a thought.
70f525c
into
UI-Modernization-Remove-tabs-and-update-quick-links-layout
Part of ##19270
Description
This PR implements the personalization screen for shortcuts
📷 Screenshot
To test:
Regression Notes
Potential unintended areas of impact
Nothing as this is a new screen
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing
What automated tests I added (or what prevented me from doing so)
Unit tests
PR submission checklist:
RELEASE-NOTES.txt
if necessary.UI Changes testing checklist: