Skip to content

feat(ui): add entity icons to dialog titles#52

Merged
fdaugan merged 1 commit into
feature/vuejsfrom
norman/feat-dialog-title-icons
Jun 1, 2026
Merged

feat(ui): add entity icons to dialog titles#52
fdaugan merged 1 commit into
feature/vuejsfrom
norman/feat-dialog-title-icons

Conversation

@Terracosmos
Copy link
Copy Markdown
Collaborator

Context

Issue #51 asks to prepend every dialog title with an icon representing the edited entity, and to generalize the concept across the application. Some dialogs (group/company details, group members) already followed this pattern; this PR brings the rest in line.

Change

  • Raw v-dialog titles (container-scope edit/delete, group/company/delegate delete and bulk-delete confirmations, delegate edit) get a leading v-icon.
  • LigojConfirmDialog call sites pass the new :icon prop (user delete/bulk/action, group/company/member removal, delegate delete).
  • Unsaved-changes guards use a mdi-content-save-alert icon.
  • Icons reuse the shared TYPE_ICONS map, extended with SCOPE and DELEGATE.

Dependency

The LigojConfirmDialog :icon prop is added in ligoj/ligoj#104. Unknown attributes fall through harmlessly until that lands, so this PR is safe to merge independently, but the confirm-dialog icons only render once #104 is deployed.

Test plan

  • npm run build : OK
  • npx vitest run : OK (14 tests)
  • mvn install -DskipTests : OK

Closes #51

Prepend each dialog title with an icon representing the entity it concerns,
generalizing the pattern already used by the group/company detail dialogs:
- raw v-dialog titles (container-scope, delete and bulk-delete confirms)
  get a leading v-icon;
- LigojConfirmDialog call sites pass the new :icon prop;
- unsaved-changes guards use a save-alert icon.
Icons reuse the shared TYPE_ICONS map (extended with SCOPE and DELEGATE).

Closes #51
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

@Terracosmos Terracosmos requested a review from fdaugan June 1, 2026 14:36
@fdaugan fdaugan merged commit a038d95 into feature/vuejs Jun 1, 2026
4 of 5 checks passed
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