Dashboard widgets: Getting started widget #859
+69
−121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
With #857 I hadn't realized that the modular dashboard widgets feature is always enabled now. Since we can't turn it off after version 3.69.0 we might as well convert our
beforeDashboardcustom component into a getting started widget.Key Changes
How to test
Load up the admin panel and test out the modular dashboard functionality. See here for a demo video and discussion on the feature.
Screenshots / Demo video
https://www.loom.com/share/11d40f3d264a4945bfcab3e8b47c0f57
Future enhancements / Questions
We should add additional widgets! Tracking that on #280. Got ideas? Comment there.
Some change in the modular dashboard feature changed the behavior of the collections widget (i.e. the collection cards with "create" quicklinks (i.e. the plus buttons in the bottom right hand corner if the user has create access). Previously, if you selected a tenant, this would allow create access (due to https://github.com/NWACus/web/blob/main/src/access/byTenantRole.ts#L65) but now the collection cards are not updated unless you refresh the page manually. I believe we'll need to open a bug with Payload for this so keep an eye out for that.