Repository navigation
payload-plugin-widgets: figures, lists and charts for the modular dashboard, read from your collections #18668
m-grgic
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've published a plugin for the modular dashboard: payload-plugin-widgets. It adds figures, lists and charts that read from your collections.
Then regenerate the import map.
What it does
figure(…),list(…)andchart(…)put widgets there ready-made. They are typed against your generated types and checked as the config is built, with a "did you mean" where a name is off.readFigure,readList,readChart), widgets that are entirely your own component, and a stylesheet made to be overridden. The same three components can stand on any other admin page.A figure can also be set against the previous period or a goal, and filters can name a moment such as
'today'where a fixed date would go stale.Where it stands
It's 0.1.0. It needs Payload 3.90 or later and React 19, and was developed on Payload 3.90.2, Next.js 16.3 and Postgres. Next.js 15 is allowed by the peer range but untried, and I haven't run it on the other database adapters. The README has a Limits section with the rest.
Feedback and issues are welcome, especially from setups unlike mine.
All reactions