Skip to content

Instrumentation Dashboard: rearrangeable panels with dupontbertrand:gridstack - #59

Merged
nachocodoner merged 2 commits into
meteor:upgrade-examples-3.6.1from
dupontbertrand:dashboard-gridstack
Nov 19, 2026
Merged

nachocodoner merged 2 commits into
meteor:upgrade-examples-3.6.1from
dupontbertrand:dashboard-gridstack

Conversation

@dupontbertrand

Copy link
Copy Markdown
Contributor

The admin page of the Instrumentation Dashboard becomes a grid of panels that people can rearrange, through dupontbertrand:gridstack, a Blaze component for gridstack.js.

What changes

  • The five panels (overview, chart, servers, methods, recent events) can be dragged by their title and resized from their corner. Reset layout puts them back
  • The layout is one admin_layouts document, published to the dashboard: a move made on one open dashboard shows up on the others at once
  • admin.saveLayout stores positions only, each panel once, within the 12 columns and no smaller than the panel allows. Titles and templates stay in the code (imports/admin/layout.js), so a client cannot inject a panel. Both Methods go through requireAdmin(), like the snapshot
  • On a narrow screen (under 700px) the panels stack in one column. That column is not saved, and back at full width the panels go where the saved layout says
  • gridstack.js comes from npm (gridstack@^14.1.0 in package.json), so npm audit sees it

Checks

  • npm run test:headless: 18 Mocha tests, 3 of them new (what the layout Method saves, what it refuses, the reset)
  • npm run e2e:headless: 4 Playwright tests, 2 of them new:
    • a panel moved on one dashboard moves on the others, until the layout is reset
    • a narrow screen neither saves its one column nor brings back an old layout when it widens
  • npm run lint: 0 errors, the same 3 warnings as before
  • README entry and examples.json regenerated with scripts/update-examples-json.mjs
  • Browsers, on Linux: the Playwright suite passes in Chrome 157, 3 runs in a row. Not run in Safari or Firefox.

The package is mine, on Atmosphere since this week (0.2.1).

…ridstack

The admin page becomes a grid of panels that can be dragged and resized.
The layout is one admin_layouts document, saved by admin.saveLayout
(positions only, checked against the known panels and the 12 columns) and
published, so every open dashboard follows a move. Reset layout puts the
panels back. On a narrow screen they stack in one column, which is not
saved.
@nachocodoner

Copy link
Copy Markdown
Member

Could you update this one to 3.6.1?

@nachocodoner
nachocodoner changed the base branch from main to upgrade-examples-3.6.1 November 19, 2026 16:10
@nachocodoner
nachocodoner merged commit 35a40ec into meteor:upgrade-examples-3.6.1 Nov 19, 2026
1 check passed
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