Skip to content

feat(delegate): highlight name in delete confirmations (closes #37)#40

Merged
fdaugan merged 1 commit into
feature/vuejsfrom
norman/feat-delegate-delete-confirm-strong
May 27, 2026
Merged

feat(delegate): highlight name in delete confirmations (closes #37)#40
fdaugan merged 1 commit into
feature/vuejsfrom
norman/feat-delegate-delete-confirm-strong

Conversation

@Terracosmos
Copy link
Copy Markdown
Collaborator

Contexte

Issue #37 — sur l'écran Délégué, les deux dialogs de suppression affichaient le nom du destinataire en texte normal, alors que toutes les autres confirmations sensibles (User / Company / Group / GroupMembers, livrées par PR #39) le rendent en gras+rouge.

Mini-commit volontairement séparé de PR #39 : les fichiers DelegateEditDialog.vue / DelegateListView.vue (créés par PR #35) n'existaient pas encore sur feature/vuejs au moment du travail sur PR #39.

Changements

Vues

  • DelegateListView.vue : la dialog ouverte par l'icône 🗑️ de chaque ligne était un <v-dialog> inline avec :message=t('delegate.deleteConfirm', { name }). Convertie en LigojConfirmDialog avec slot par défaut + <strong class="text-error">{{ name }}</strong>. Ajout de l'import LigojConfirmDialog depuis @ligoj/host.
  • DelegateEditDialog.vue : la dialog ouverte par le bouton "Supprimer" intra-popup utilisait déjà LigojConfirmDialog mais via la prop :message=. Bascule sur le slot par défaut.

i18n (plugin-id, FR + EN)

  • Nouveau : delegate.deleteConfirmBefore / delegate.deleteConfirmAfter — fragments encadrant le nom du destinataire.
  • Textes alignés sur la formulation du host ("...la délégation pour {name} ?" → splitté avant/après le nom).
  • La clé monolithique du host delegate.deleteConfirm n'est pas touchée (out of scope) — elle reste disponible pour tout autre consumer.

Out of scope

Test plan

  • npm run build → 28 modules, 117 kB JS
  • vitest run → 14/14
  • mvn install -DskipTests → BUILD SUCCESS
  • Smoke test UI :
    • Icône 🗑️ depuis la liste des Délégués → nom du destinataire en gras+rouge
    • Bouton "Supprimer" depuis la popup d'édition → nom du destinataire en gras+rouge

Closes #37

Both delete dialogs of the Delegate screen now render the receiver
name in <strong class="text-error"> via the LigojConfirmDialog
default slot, matching the pattern of PR #39 for User / Company /
Group / GroupMembers:

- DelegateListView: the trash-icon dialog from each row (inline
  <v-dialog> converted to LigojConfirmDialog + slot)
- DelegateEditDialog: the "Delete" button inside the edit popup
  (existing LigojConfirmDialog with :message= switched to the slot)

The host's monolithic delegate.deleteConfirm key stays intact; two
plugin-local fragments (delegate.deleteConfirmBefore/After) are
added in FR + EN to wrap the name.

Mini-commit deliberately split from PR #39 because the Delegate
dialog files did not exist on feature/vuejs until PR #35 was merged.

Closes #37
@sonarqubecloud
Copy link
Copy Markdown

@Terracosmos Terracosmos requested a review from fdaugan May 27, 2026 15:13
@sonarqubecloud
Copy link
Copy Markdown

@fdaugan fdaugan merged commit 86637c1 into feature/vuejs May 27, 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