Skip to content

NOISSUE - Reconcile IDs to names in tables and inspect panels#4

Merged
ianmuchyri merged 1 commit into
mainfrom
reconcile-ids
May 18, 2026
Merged

NOISSUE - Reconcile IDs to names in tables and inspect panels#4
ianmuchyri merged 1 commit into
mainfrom
reconcile-ids

Conversation

@ianmuchyri

Copy link
Copy Markdown
Contributor

What type of PR is this?

This is a feature because it improves readability across all admin tables and inspect panels by resolving UUIDs
to human-readable names.

What does this do?

  • Adds a useNameMap hook (lib/reconcile/use-name-map.ts) that resolves IDs to names in parallel, with
    silent fallback to the raw ID on failure and 60s React Query caching
  • Wires name resolution into CrudTable and renderCell for the following fields:
    • Entities: profile ID → profile display name, tenant ID → tenant name
    • Profiles: tenant ID → tenant name (also adds the Scope column, previously missing)
    • Groups / Roles: tenant ID → tenant name
    • Resources: tenant ID → tenant name, owner ID → entity name
    • Policies: subject ID → entity/group name, grant ID → role/capability name, scope ref → tenant name
      (when scope kind is tenant)
    • Audit logs: entity ID → entity name in the table column
  • Fixes the policy inspect panel's Scope field, which previously showed a raw UUID for tenant-scoped policies

Which issue(s) does this PR fix/relate to?

N/A

Have you included tests for your changes?

No

Did you document any new/modified features?

No

Notes

All resolution is best-effort — if a lookup fails (deleted record, permission error), the raw ID is shown as
fallback. Requests for unique IDs on a page are fired in parallel so there is no sequential waterfall.

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
@ianmuchyri ianmuchyri merged commit 1b324cb into main May 18, 2026
3 checks passed
@ianmuchyri ianmuchyri deleted the reconcile-ids branch May 18, 2026 13:16
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