Skip to content

feat: resource view registries for IAM tables - #39

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

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

Conversation

@roncodes

Copy link
Copy Markdown
Member

Extensions can add columns, row actions, bulk actions and toolbar buttons to IAM tables through iam:table:<resource>:<slot>. They can add buttons and menu items to the edit dialogs through iam:details:<resource>:<slot>.

Resources: user, group, role, policy.

Changes

  • groups, roles, policies: moved from hand-written headers to Layout::Resource::Tabular, with actionButtons and bulkActions getters. Roles and policies keep their reload button via @onReload, and search still respects iam list ….
  • users: keeps its TabularActions header with @registry. Its columns merge in the controller (userActions.mergeRegisteredColumns), because the table renders separately from the header.
  • Edit dialogs: registered details buttons and menu items become footer actionButtons.
  • Stable ids on built-in items; index query params include registered filter params; registries declared in extension.js.
  • Fix: the delete-group confirm button read the misspelt key aim.groups.index.delete-group.

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. The groups, roles and policies pages now show the standard filter and column pickers, so give them a click-through.

Extensions can add columns, row actions, bulk actions and toolbar buttons
through iam:table:<resource>:<slot>, and buttons and menu items to the edit
dialogs through iam:details:<resource>:<slot>.

- groups, roles and policies move to Layout::Resource::Tabular with
  actionButtons/bulkActions getters (roles and policies keep their reload)
- users keeps its TabularActions header; its columns merge in the controller
- edit dialogs pass registered details buttons as footer actionButtons
- stable ids on built-in items, query params include registered filters
- fix the delete-group accept button reading the misspelt aim.* key

Requires @fleetbase/ember-core 0.3.25 and @fleetbase/ember-ui 0.4.5.
@roncodes roncodes mentioned this pull request Oct 3, 2026
@roncodes
roncodes changed the base branch from main to release/v0.1.13 October 3, 2026 02:19
@roncodes
roncodes merged commit 2da0331 into release/v0.1.13 Oct 3, 2026
6 checks passed
@roncodes
roncodes deleted the feature/resource-view-registries branch October 3, 2026 03:19
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