Custom dashboards - #11
Merged
Merged
Conversation
Any number of named boards per project. Pin saved reports as widgets; count-shaped reports (event explorer / trend) render a 30-day headline number via WidgetMetric, funnels and retention link out to the full report. Dashboards and widgets are project-scoped end to end. - Dashboard has_many :dashboard_widgets (ordered), through to saved_reports - Dashboard#pin appends a report once, idempotent - WidgetMetric reduces a report to one figure or nil - DashboardsController + nested DashboardWidgetsController - Dashboards tab in the project nav
This was referenced Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Teams get more than the one fixed layout per project.
Model
Dashboardbelongs_to :project,has_many :dashboard_widgets(ordered by position),has_many :saved_reports, through:.#pin(report)appends a widget once (idempotent).DashboardWidgetbelongs_to :dashboard + :saved_report, delegatesproject.WidgetMetricreduces a saved report to a single 30-day headline number for the count-shaped types (event_explorer,trend); returns nil for funnel/retention so the card links out instead.Controllers / routes
DashboardsController— index / show / create / destroy, all@project-scoped.DashboardWidgetsController— create (pin) / destroy (unpin); pinning a report from another project 404s.resources :dashboards do resources :dashboard_widgets endunder:projects.UI
Tests — 17 new examples (model, service, request). Full suite 273 green, rubocop clean, brakeman 0 warnings. Migration adds
dashboards+dashboard_widgets;db/structure.sqlregenerated.Closes the last open item from the roadmap's build list; ROADMAP.md updated.