Skip to content

feat: resource view registries for ledger tables and panels - #28

Merged
roncodes merged 1 commit into
release/v0.0.12from
feature/resource-view-registries
Oct 3, 2026
Merged

roncodes merged 1 commit into
release/v0.0.12from
feature/resource-view-registries

Conversation

@roncodes

Copy link
Copy Markdown
Member

Extensions can add columns, row actions, bulk actions and toolbar buttons to ledger tables through ledger:table:<resource>:<slot>. They can add header buttons and "…" menu items to ledger's details panels through ledger:details:<resource>:<slot>.

Resources: account, gateway, invoice, invoice-template, journal, transaction, wallet.

Changes

  • @registry on every Layout::Resource::Tabular index view and every Layout::Resource::Panel details view.
  • Gateway::Hub renders its own column picker, so the gateways controller merges registered columns once via gatewayActions.mergeRegisteredColumns. The registry goes to the hub's TabularActions for buttons and bulk actions.
  • Stable ids on built-in columns, actions and buttons (a column's dasherized valuePath, an action's handler name), so registered items can anchor with before/after.
  • Index queryParams go through <x>Actions.queryParamsFor(), so registered filter columns work.
  • Registries declared in extension.js.

Depends on

Merge only after both are published. Before merging, bump @fleetbase/ember-core to ^0.3.25 and @fleetbase/ember-ui to ^0.4.5, and refresh the lockfile. Until then this branch builds against the old APIs and will not run.

Naming and API reference: docs/resource-view-registries.md in ember-core.

Testing

Lint and template-lint pass. No tests were run locally.

Extensions can add columns, row actions, bulk actions and toolbar buttons to
ledger tables, and buttons and menu items to its details panels, through
ledger:table:<resource>:<slot> and ledger:details:<resource>:<slot>.

- @registry on every Tabular index view and Panel details view
- Gateway::Hub merges registered columns once in the controller, and passes
  the registry to its TabularActions header
- stable ids on built-in columns, actions and buttons so registered items can
  anchor with before/after
- index query params include registered filter params
- registries declared in extension.js

Requires @fleetbase/ember-core 0.3.25 and @fleetbase/ember-ui 0.4.5.
@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #28   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1253      1253           
===========================================
  Files             74        74           
  Lines           6990      6990           
===========================================
  Hits            6990      6990           
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 Oct 3, 2026
@roncodes
roncodes changed the base branch from main to release/v0.0.12 October 3, 2026 02:19
@roncodes
roncodes merged commit 0716695 into release/v0.0.12 Oct 3, 2026
11 checks passed
@roncodes
roncodes deleted the feature/resource-view-registries branch October 3, 2026 03:18
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