Skip to content

Place ledger's widgets on the default dashboard - #25

Closed
roncodes wants to merge 2 commits into
mainfrom
feature/dashboard-widget-order
Closed

roncodes wants to merge 2 commits into
mainfrom
feature/dashboard-widget-order

Conversation

@roncodes

Copy link
Copy Markdown
Member

Why

The console's Default Dashboard mixes every extension's default widgets, and the grid auto-placed them in whatever order the extensions happened to boot. Ledger's widgets landed in odd spots between fleet-ops' widgets.

What changed

Ledger's widgets on the shared dashboard now declare an order, which the dashboard lays out by (see fleetbase/ember-ui#180):

  • Top KPI row: Revenue (20), beside fleet-ops' Radar (10), Active Orders (30) and Drivers Online (40).
  • Second KPI row: Expenses, Net Income, Outstanding AR and Overdue AR (41–44), directly under the first. Overdue AR is new on the default dashboard.
  • Lower left: Recent Financial Activity (150, 10 rows) with Cash Flow Summary (165, 9 rows) under it. Together they're as tall as the console's Blog and GitHub card on the right. Cash Flow is ordered after the Blog so the first-fit grid places it under Activity, not beside it.

Ledger's own ledger dashboard keeps its full widget set, unordered.

Depends on

Verification

Checked in the running console with fleet-ops, ledger and ember-ui linked. The grid positions match the intended rows exactly, and the bottoms of the two lower columns line up.

The default dashboard mixes every extension's default widgets, and the grid
placed them in whatever order the extensions booted. Ledger's widgets on it
now carry an `order` (see fleet-ops' registerWidgets for the whole layout):

- Revenue (20) joins the top KPI row beside fleet-ops' Radar and Active Orders.
- Expenses, Net Income, Outstanding AR and Overdue AR (110-140) form their own
  row of four; Overdue AR is new on the default dashboard.
- Recent Financial Activity (150) fills the left half, 19 rows high: the
  console's Blog and GitHub card stack on the right at 13 + 6 rows.

Ledger's own dashboard keeps its full widget set, unordered.
…hboard

- Expenses, Net Income, Outstanding AR and Overdue AR (41-44) now form the
  second row, directly under the top KPI row.
- Recent Financial Activity is 10 rows tall with Cash Flow Summary (165, 9
  rows) under it, together as tall as the console's Blog and GitHub card
  beside them. Cash Flow is ordered after the Blog so the grid places it
  under Activity rather than beside it.
@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d2e5de6) to head (c621ade).

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #25   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1249      1249           
===========================================
  Files             74        74           
  Lines           6981      6981           
===========================================
  Hits            6981      6981           
Flag Coverage Δ
backend 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes roncodes mentioned this pull request Sep 25, 2026
@roncodes roncodes closed this Sep 26, 2026
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.

1 participant