Skip to content

Add] selected element summary card in Model Editor right panel; fixes #768#769

Merged
samatstariongroup merged 1 commit into
developmentfrom
GH768-model-editor-selected-ed-as-card
May 1, 2026
Merged

Add] selected element summary card in Model Editor right panel; fixes #768#769
samatstariongroup merged 1 commit into
developmentfrom
GH768-model-editor-selected-ed-as-card

Conversation

@samatstariongroup
Copy link
Copy Markdown
Member

@samatstariongroup samatstariongroup commented May 1, 2026

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the COMET-WEB code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

  • COMETwebapp/Components/ModelEditor/DetailsPanelEditor.razor: prepended a summary card showing Name, ShortName, Owner pill, category pills (when present), and Definition text (when present), gated by the existing SelectedSystemNode != null check; added @using COMET.Web.Common.Extensions for AsCommaSeparated(). The existing parameter CardView renders below it unchanged.
  • COMETwebapp.Tests/Components/ModelEditor/DetailsPanelEditorTestFixture.cs (new) — 5 tests: full-card render, null selection, no-categories edge case, no-definition edge case, ElementUsage inheriting categories from its ElementDefinition via GetAllCategories().

@samatstariongroup samatstariongroup requested a review from joao4all May 1, 2026 13:39
@samatstariongroup samatstariongroup merged commit be54211 into development May 1, 2026
8 checks passed
@samatstariongroup samatstariongroup deleted the GH768-model-editor-selected-ed-as-card branch May 1, 2026 15:25
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.

2 participants