Skip to content
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

Conversation

AjeshRPai
Copy link
Contributor

@AjeshRPai AjeshRPai commented Sep 27, 2023

Part of ##19270

Description

This PR implements the personalization screen for shortcuts

📷 Screenshot

Light Dark
Screenshot_20230927_185104 Screenshot_20230927_185126

To test:

  1. Go to jetpack app
  2. Go to dashboard
  3. Click on personalize your home tab
  4. Go to shortcuts
  5. Verify that all the site items are shown in shortcuts

Regression Notes

  1. Potential unintended areas of impact
    Nothing as this is a new screen

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Manual testing

  3. What automated tests I added (or what prevented me from doing so)
    Unit tests

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes testing checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • Talkback.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • Large and small screen sizes. (Tablet and smaller phones)
  • Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)

@AjeshRPai AjeshRPai added this to the 23.4 milestone Sep 27, 2023
@AjeshRPai AjeshRPai requested a review from zwarm September 27, 2023 11:53
@AjeshRPai AjeshRPai self-assigned this Sep 27, 2023
@AjeshRPai AjeshRPai changed the title Issue/unified dashboard refactoring implement personalization quick links Implement personalization screen for quick links Sep 27, 2023
@AjeshRPai AjeshRPai changed the title Implement personalization screen for quick links UI - Implement personalization screen for quick links Sep 27, 2023
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Sep 27, 2023

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19271-315661a
Commit315661a
Direct Downloadwordpress-prototype-build-pr19271-315661a.apk
Note: Google Login is not supported on these builds.

* Renames: PersonalizationViewModelTest
to DashboardCardPersonalizationViewModelSliceTest
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Sep 27, 2023

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19271-315661a
Commit315661a
Direct Downloadjetpack-prototype-build-pr19271-315661a.apk
Note: Google Login is not supported on these builds.

Base automatically changed from issue/unified-dashboard-refactoring-part-2-site-header to UI-Modernization-Remove-tabs-and-update-quick-links-layout September 27, 2023 12:51
@AjeshRPai AjeshRPai marked this pull request as ready for review September 27, 2023 13:26
Copy link
Contributor

@zwarm zwarm left a 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()
Copy link
Contributor

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()
Copy link
Contributor

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>
Copy link
Contributor

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.

@zwarm zwarm merged commit 70f525c into UI-Modernization-Remove-tabs-and-update-quick-links-layout Sep 27, 2023
@zwarm zwarm deleted the issue/unified-dashboard-refactoring-implement-personalization-quick-links branch September 27, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants