Open vaurdan opened 1 week ago
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
This PR introduces the dashboard provider, to facilitate the communication from the front-end with the WordPress REST API.
As a good way to test and understand the requirements for this provider, I also implemented an initial version of the main dashboard page, that contains a table listing all the recent posts.
I did try to implement some of the code with reusability in mind, however some components such as the PostsTable component, while technically reusable, is still too tied to the Dashboard page. We can make it more generic once we start working on the Traffic Boost UI.
Motivation and context
How has this been tested?
Tested locally.
Screenshots (if appropriate)
https://github.com/user-attachments/assets/e2d32834-3fc3-4b6a-b760-6fa970f1fb47
Summary by CodeRabbit
Release Notes
New Features
PostsTable
component for displaying posts within the dashboard.DashboardHeading
component for improved header display.DashboardProvider
class for managing dashboard-specific functionalities.Bug Fixes
Documentation
Chores