Skip to content

feat: an entity panel can be scoped to asset types and own profile fields - #90

Merged
mjanez merged 1 commit into
dgufrom
feature/entity-panel-scope
Oct 9, 2026
Merged

mjanez merged 1 commit into
dgufrom
feature/entity-panel-scope

Conversation

@mjanez

@mjanez mjanez commented Oct 9, 2026

Copy link
Copy Markdown
Member

Entity panels (the tabs and cards a distribution adds to asset pages) showed on every asset. Two optional keys on EntityPanel:

  • assetTypes: profile asset types the panel is for. A tab scoped to line_of_business only appears on lines of business. EntityRef now carries the asset's assetType.
  • fields: profile fields the panel edits itself. Where the panel shows, the metadata sheet leaves those fields out, and their incoming links out of "Linked from other assets", so the same thing is not edited in two places.

Panels without the keys behave as before. tests/entity-panels.test.ts covers both; Prettier passes and ESLint only reports the two pre-existing external-link errors.

…elds

A scoped tab shows only on assets of its types, and the fields it edits leave the metadata sheet there.
@mjanez
mjanez merged commit 7d5cb31 into dgu Oct 9, 2026
5 checks passed
@mjanez
mjanez deleted the feature/entity-panel-scope branch October 9, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant