Skip to content

My Site Dashboard: Refactor dashboard architecture and data source - #18405

Merged
hassaanelgarem merged 86 commits into
trunkfrom
feature/dashboard-arch-refactor/base
Apr 21, 2022
Merged

My Site Dashboard: Refactor dashboard architecture and data source#18405
hassaanelgarem merged 86 commits into
trunkfrom
feature/dashboard-arch-refactor/base

Conversation

@hassaanelgarem

@hassaanelgarem hassaanelgarem commented Apr 19, 2022

Copy link
Copy Markdown
Contributor

Fixes #18355
Fixes #18208
Closes #18308

Description

This PR refactors how the dashboard displays the returned cards. Posts cards are significantly affected, as we now use a cell for each card instead of one cell for all cards.
The PR combines work done in the following PRs:

Testing Instructions

Testing isn't really needed as all changes have been tested in their corresponding PRs.

Regression Notes

  1. Potential unintended areas of impact
    Dashboard, especially posts cards

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Manual and unit tests, when applicable

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

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • 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.

Instead of `DashboardItem` which is harder to deal with
…h-refactor/reduce-sections

My Site Dashboard: Reduce usage of sections in the dashboard
…h-refactor/snapshot-logic

My Site Dashboard: Refactor dashboard's data source
…h-refactor/snapshot-logic-tests

My Site Dashboard: Dashboard data source unit tests
@hassaanelgarem hassaanelgarem changed the title My Site Dashboard: Dashboard architecture and data source refactor My Site Dashboard: Refactor dashboard architecture and data source Apr 19, 2022
@wpmobilebot

wpmobilebot commented Apr 20, 2022

Copy link
Copy Markdown
Contributor
You can test the changes in Jetpack from this Pull Request by:
  • Clicking here or scanning the QR code below
  • Then installing the build number pr18405-2b86889 from App Center on your iPhone

The .ipa file can also be downloaded directly here.
If you need access to App Center, please ask a maintainer to add you.

@wpmobilebot

wpmobilebot commented Apr 20, 2022

Copy link
Copy Markdown
Contributor
You can test the changes in WordPress from this Pull Request by:
  • Clicking here or scanning the QR code below
  • Then installing the build number pr18405-2b86889 from App Center on your iPhone

The .ipa file can also be downloaded directly here.
If you need access to App Center, please ask a maintainer to add you.

@momo-ozawa momo-ozawa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@hassaanelgarem Thank you for tackling this refactor!

Comment thread RELEASE-NOTES.txt Outdated
19.8
-----

* [*] [internal] My Site Dashboard: Made some changes to the code architecture of the dashboard. The majority of the changes are related to the posts cards. It should have no visible changes but could cause regressions. [#18405]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it worth mentioning: "please test it by creating drafts and scheduled posts and testing that they appear on the dashboard".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added in 2b86889

@hassaanelgarem

Copy link
Copy Markdown
Contributor Author

@dvdchr FYI: This makes some changes to the dashboard's architecture. It shouldn't affect the blogging prompt card though.
It might be useful to take a look at the changes in DashboardCard for future reference.

@peril-wordpress-mobile

Copy link
Copy Markdown
Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS

@hassaanelgarem
hassaanelgarem merged commit 7ea0fb2 into trunk Apr 21, 2022
@hassaanelgarem
hassaanelgarem deleted the feature/dashboard-arch-refactor/base branch April 21, 2022 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants