Skip to content

Add stats to madmin dashboard and fix VersionJump index columns#374

Merged
etagwerker merged 2 commits into
mainfrom
feature/madmin-dashboard
Jul 20, 2026
Merged

Add stats to madmin dashboard and fix VersionJump index columns#374
etagwerker merged 2 commits into
mainfrom
feature/madmin-dashboard

Conversation

@JuanVqz

@JuanVqz JuanVqz commented Jul 20, 2026

Copy link
Copy Markdown
Member

Motivation / Context

The madmin dashboard only listed link cards to each resource, which duplicates the sidebar navigation. This replaces those links with useful at-a-glance content, and fixes the VersionJumps index that showed only record IDs.

Changes

  • Dashboard: removed the resource link grid (duplicated in the sidebar). Added stat tiles (active/archived projects, pending/approved/rejected stories, estimates, users, comments, version jumps) and recent-activity lists (latest stories, projects, estimates), each linking to its madmin show page.
  • Added Madmin::DashboardController#show to load the counts and recent records.
  • VersionJumps index: now shows technology, initial_version and target_version. madmin only renders id/title/name/created_at on index by default, so the list previously showed only IDs.
  • Added a Dashboard nav link to the sidebar and kept the sidebar visible on desktop.

BEFORE

Screenshot 2026-07-20 at 17 43 28

AFTER

Screenshot 2026-07-20 at 17 35 00 Screenshot 2026-07-20 at 17 31 58 Screenshot 2026-07-20 at 17 14 47

QA / Testing Instructions

  1. Sign in as an admin and go to /madmin.
  2. Confirm the dashboard shows stat tiles and recent stories/projects/estimates instead of the old link cards.
  3. Go to /madmin/version_jumps and confirm the list shows technology / initial version / target version, not just IDs.

I will abide by the code of conduct.

- Replace the dashboard's resource link grid (duplicated in the sidebar)
  with stat tiles and recent-activity lists (stories, projects, estimates).
- Add Madmin::DashboardController#show to load the counts and recent records.
- Show technology, initial_version and target_version on the VersionJumps
  index (madmin only renders id/title/name by default, so it showed only IDs).
- Add a Dashboard nav link and keep the sidebar visible on desktop.
@JuanVqz JuanVqz self-assigned this Jul 20, 2026
@JuanVqz
JuanVqz requested a review from etagwerker July 20, 2026 23:41
Strengthen the status-only smoke tests to guard the content this PR adds:
- dashboard: stat tiles, recent-activity sections and links, no old link grid,
  and the sidebar Dashboard link.
- version jumps index: technology and versions render, not just the id.

@etagwerker etagwerker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@etagwerker
etagwerker merged commit 8c404b1 into main Jul 20, 2026
2 checks passed
@etagwerker
etagwerker deleted the feature/madmin-dashboard branch July 20, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants