Let a plugin add a widget to the dashboard #1236
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1236
Loading…
Reference in a new issue
No description provided.
Delete branch "f-1102"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1102: a plugin can add a widget to the dashboard.
DashboardWidget(key, label, blurb, template, context, width)on the plugin surface (postulo.plugins.api); a plugin of any kind declares its widgets inwidgets.context(user, connection)is handed the person and their connection, never a queryset (the issue's decision), once per enabled connection the policy allows, or once withNone.|safelet through. A widget that raises or returns something wrong is left out and logged.postulo.plugins.testinggainsassert_declares_usable_widgetsanddraw_widget.Tested: 22 new tests fail without the change; 10 browser tests with a plugin widget for two connections (axe light and dark, read and arrange, right to left, 320 px, target size, keyboard arranging, dragging); the dashboard's own browser tests; plugin surface and the usual guards. No migration, no new strings.
🤖 Generated with Claude Code
59531330bc435872066dSuperseded by #1237, which stacks this branch with two other features so they share one CI run (each merge here is fast-forward-only, so landing them one by one would mean a CI run each after every rebase). The commits are the same.
🤖 Generated with Claude Code
Pull request closed