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

Domain transfer dashboard card #18852

Merged
merged 34 commits into from
Aug 6, 2023
Merged

Conversation

ravishanker
Copy link
Contributor

@ravishanker ravishanker commented Jul 28, 2023

Adds dashboard card for domain transfer

Fixes: See

Domain Transfer Card Domain Transfer Intro
Screenshot_20230802_133138 Screenshot_20230729_145335

To test:

Launch Jetpack app
Verify domains transfer card appears as shown above on dashboard
Tap on the Learn more or anywhere on the card
Verify it launches domain transfer page
Tap on overflow (three dots) menu on the card
Verify it pops up menu with Hide this option
Tap on Hide this
Verify, the card gets hidden

Check for the following tracks in AS
🔵 Tracked: dashboard_card_domain_transfer_shown
🔵 Tracked: dashboard_card_domain_transfer_more_menu_tapped
🔵 Tracked: dashboard_card_domain_transfer_hidden

Note
Copy on the card could change later

Regression Notes

  1. Potential unintended areas of impact
    None

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

  3. What automated tests I added (or what prevented me from doing so)
    Updated and added 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)

Create card layout

Create ViewHolder

Create and update card builder

Add preferences for hiding card

Add tracks

Add navigation to launch transfer page

Update MySiteViewModel.kt

Update MySiteTabFragment.kt
@ravishanker ravishanker added this to the 23.0 milestone Jul 28, 2023
@ravishanker ravishanker self-assigned this Jul 28, 2023
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jul 28, 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
Versionpr18852-d18fb69
Commitd18fb69
Direct Downloadwordpress-prototype-build-pr18852-d18fb69.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jul 28, 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
Versionpr18852-d18fb69
Commitd18fb69
Direct Downloadjetpack-prototype-build-pr18852-d18fb69.apk
Note: Google Login is not supported on these builds.

@ravishanker ravishanker requested a review from AjeshRPai July 29, 2023 04:59
@ravishanker ravishanker marked this pull request as ready for review July 29, 2023 05:00
Use ActivityNavigator in lieu of Activity Launcher
Copy link
Contributor

@AjeshRPai AjeshRPai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ravishanker

I have tested this PR according to the instructions in the PR description. Everything looks good to me. I have left a ❓ Question, 💡 Suggestion. They are not blocking, so approving but not merging so that you can address them in this PR if necessary. If you think, there is no changes necessary/can be taken up in another PR, feel free to merge 👍🏼

context: Context,
url: String
) {
WPWebViewActivity.openUrlByUsingGlobalWPCOMCredentials(context, url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏼 [praise] : Thanks for using this class

@AjeshRPai
Copy link
Contributor

Hey @ravishanker

I was getting some build errors, mostly due to the migration to the latest AGP. Hence I updated this branch with trunk. I was able to build and test it after that.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Aug 3, 2023

Warnings
⚠️ This PR is assigned to a milestone which is closing in less than 4 days Please, make sure to get it merged by then or assign it to a later expiring milestone
⚠️ PR has more than 300 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS

Copy link
Contributor

@AjeshRPai AjeshRPai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ravishanker

Reviewed it again, everything looks good to me 👍🏼 . Approved, enabling automerge

@AjeshRPai AjeshRPai enabled auto-merge August 3, 2023 10:03
@ravishanker ravishanker requested a review from a team as a code owner August 4, 2023 02:18
@AjeshRPai AjeshRPai merged commit 280dfa7 into trunk Aug 6, 2023
@AjeshRPai AjeshRPai deleted the Domain-Transfer-Dashboard-card branch August 6, 2023 23: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.

4 participants