Skip to content

feat(client-web-kit): confirm entity deletion via AlertDialog + upgrade @vuecs/* to latest - #3173

Merged
tada5hi merged 4 commits into
masterfrom
feat/delete-confirmation-alert-dialog
Jul 1, 2026
Merged

tada5hi merged 4 commits into
masterfrom
feat/delete-confirmation-alert-dialog

Conversation

@tada5hi

@tada5hi tada5hi commented Jul 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Upgrades every @vuecs/* dependency to the latest published versions and uses the new AlertDialog feature (from @vuecs/[email protected]) to add confirmation dialogs to destructive UI actions — entity deletion (always) and role/permission assignment removal (opt-in).

Version bumps

  • Every @vuecs/* dep bumped to latest across the 6 manifests (client-web, server-core, client-web-kit deps+peers, both themes deps+peers) and the root overrides (@vuecs/core → 3.4.0). Notable: @vuecs/overlays 1.1.3 → 1.2.0 (AlertDialog compound + useAlertDialog()), plus elements 1.4, table 1.5, button 1.3, navigation 4.3, forms 5.3.2, core 3.4, etc.
  • Root vue override 3.5.38 → 3.5.39 — required side-effect: the newer @vuecs/* resolve the individual @vue/* subpackages to 3.5.39, which npm otherwise nests as a second copy in each workspace. Two @vue/reactivity copies split the Ref type identity and break vue-tsc with duplicate-RefSymbol errors. Realigning the pin dedupes everything to a single @vue/* copy.

Delete confirmation (AEntityDelete)

  • Routes the (irreversible) delete through useAlertDialog({ tone: 'error', … }), gated by a new withPrompt prop — on by default, opt out per call site with :with-prompt="false". The nine entity index pages inherit the confirmation with no call-site changes.
  • A single <VCAlertDialogProvider> is mounted at the client-web default.vue layout root. The app-level AlertDialogManager is auto-provided by the existing app.use(installOverlays), so one host drains confirmations from every authenticated page (not per-page, not Reka-context-scoped like <VCToastProvider>).

Assignment-removal confirmation (AToggleButton)

  • The shared assignment toggle gains an opt-in withPrompt prop (off by default). When set, only the removal transition (assigned → un-assign) is confirmed; adding never prompts, and un-assigning stays reversible — so this is deliberately opt-in rather than always-on like delete.
  • Enabled on the eight role/permission grant assignments: role-permission, user/client/robot-role, user/client/robot-permission, and the identity-provider role-mapping (whose custom delete button is gated directly). Scopes and policy-bindings stay promptless. The reverse assignment lists (role-user, permission-client, …) reuse the singular components, so both directions are covered by one edit each.

i18n

  • Confirmation copy authored in all four locales: authupApp deleteConfirmTitle/deleteConfirmDescription (delete; entity noun interpolated from authupEntity, count: 1) and removeConfirmTitle/removeConfirmDescription (removal; reversible framing, no interpolation). Both reuse existing authupAction labels — DELETE/ABORT for delete, REMOVE/ABORT for removal.
  • AlertDialog styling comes from @vuecs/theme-tailwind's alertDialog element — both authup themes extend(tailwindTheme()), so no theme override was needed.

Scope decisions

  • Skipped app-wide alertDialog defaults wiring — the consumers pass all options explicitly and are fully localized; wiring generic-confirm defaults would invent unused vocabulary in 4 locales (vuecs already ships an English fallback).
  • No component unit tests — the client packages have no Vue component test harness (@vue/test-utils/vitest) to build on; standing one up for these specs is out of scope. The i18n locale-parity suite covers the new keys.

Testing

  • ✅ Full builds pass: i18n, client-web-kit, both themes, client-web-nuxt, server-core (incl. embedded Vite UI), client-web (Nuxt).
  • ✅ eslint --fix clean; vue-tsc type-check passes.
  • ✅ @authup/i18n tests: 77 pass (locale parity across en/de/fr/es).
  • ⚠️ Not yet click-tested live (needs the full stack + seeded, logged-in pages); relying on CI + a manual smoke test.

…de @vuecs/* to latest

Bump every @vuecs/* dependency to the latest published versions; overlays
1.1.3 -> 1.2.0 brings the new AlertDialog compound + useAlertDialog(). Realign
the root `vue` override 3.5.38 -> 3.5.39 so the newer @vuecs no longer nest a
second @vue/* copy (which split the Ref type identity and broke vue-tsc with
duplicate-RefSymbol errors).

AEntityDelete now routes its destructive delete through useAlertDialog()
(tone: error), gated by a new `withPrompt` prop (default on; opt out per call
site with :with-prompt="false"). A single <VCAlertDialogProvider> is mounted at
the client-web default layout root -- the AlertDialogManager is auto-provided
app-wide by app.use(installOverlays), so one host serves every page.

Confirmation copy is authored in all four locales (authupApp
deleteConfirmTitle / deleteConfirmDescription, entity noun interpolated from the
authupEntity namespace), reusing the existing DELETE / ABORT action labels.
Copilot AI review requested due to automatic review settings July 1, 2026 14:31
@coderabbitai

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@tada5hi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 24 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: be517054-13df-41b3-9e95-d6e27ef564be

📥 Commits

Reviewing files that changed from the base of the PR and between ef38818 and 2c7bea6.

📒 Files selected for processing (16)
  • apps/server-core/ui/src/app.ts
  • packages/client-web-kit/src/components/entities/client-permission/AClientPermissionAssignment.vue
  • packages/client-web-kit/src/components/entities/client-role/AClientRoleAssignment.vue
  • packages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vue
  • packages/client-web-kit/src/components/entities/robot-permission/ARobotPermissionAssignment.vue
  • packages/client-web-kit/src/components/entities/robot-role/ARobotRoleAssignment.vue
  • packages/client-web-kit/src/components/entities/role-permission/ARolePermissionAssignment.vue
  • packages/client-web-kit/src/components/entities/user-permission/AUserPermissionAssignment.vue
  • packages/client-web-kit/src/components/entities/user-role/AUserRoleAssignment.vue
  • packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
  • packages/client-web-kit/src/components/utility/toggle-button/AToggleButton.vue
  • packages/i18n/src/catalogs/de/app.ts
  • packages/i18n/src/catalogs/en/app.ts
  • packages/i18n/src/catalogs/es/app.ts
  • packages/i18n/src/catalogs/fr/app.ts
  • packages/i18n/src/constants.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/delete-confirmation-alert-dialog

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Authup client UI stack to the latest @vuecs/* releases (plus a Vue override alignment) and introduces an app-wide, localized confirmation dialog for destructive entity deletes via @vuecs/overlays AlertDialog.

Changes:

  • Bumped @vuecs/* dependencies across apps/packages/themes and aligned root overrides (vue → 3.5.39, @vuecs/core → 3.4.0) to avoid nested @vue/* duplicates.
  • Added localized delete-confirmation strings (title + description) to the i18n app namespace in all supported locales.
  • Routed AEntityDelete through an useAlertDialog() confirmation (default-on, opt-out via withPrompt) and mounted a single <VCAlertDialogProvider> at the Nuxt layout root.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/i18n/src/constants.ts Adds new app translation keys for delete confirmation copy.
packages/i18n/src/catalogs/en/app.ts Adds English delete confirmation title/description strings.
packages/i18n/src/catalogs/de/app.ts Adds German delete confirmation title/description strings.
packages/i18n/src/catalogs/fr/app.ts Adds French delete confirmation title/description strings.
packages/i18n/src/catalogs/es/app.ts Adds Spanish delete confirmation title/description strings.
packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts Introduces AlertDialog-based confirmation gating for entity deletion.
apps/client-web/layouts/default.vue Mounts <VCAlertDialogProvider> to host app-wide confirmations.
apps/client-web/package.json Upgrades @vuecs/* dependencies used by the Nuxt client app.
apps/server-core/package.json Upgrades @vuecs/* dependencies used by the embedded UI in server-core.
packages/client-web-kit/package.json Upgrades @vuecs/* dependencies for the shared client kit.
packages/client-web-theme/package.json Upgrades @vuecs/* theme-related peer/dev dependencies.
packages/client-web-kit-theme/package.json Upgrades @vuecs/* theme-related peer/dev dependencies.
package.json Aligns root overrides (vue, @vuecs/core) for deduplication/type-identity stability.
package-lock.json Updates lockfile to reflect new dependency versions and deduped Vue tree.
.agents/structure.md Documents AlertDialog confirmation pattern and provider placement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

authup

npm i https://pkg.pr.new/authup@3173

@authup/client-web

npm i https://pkg.pr.new/@authup/client-web@3173

@authup/server-core

npm i https://pkg.pr.new/@authup/server-core@3173

@authup/access

npm i https://pkg.pr.new/@authup/access@3173

@authup/client-web-kit

npm i https://pkg.pr.new/@authup/client-web-kit@3173

@authup/client-web-kit-theme

npm i https://pkg.pr.new/@authup/client-web-kit-theme@3173

@authup/client-web-nuxt

npm i https://pkg.pr.new/@authup/client-web-nuxt@3173

@authup/client-web-theme

npm i https://pkg.pr.new/@authup/client-web-theme@3173

@authup/core-http-kit

npm i https://pkg.pr.new/@authup/core-http-kit@3173

@authup/core-kit

npm i https://pkg.pr.new/@authup/core-kit@3173

@authup/core-realtime-kit

npm i https://pkg.pr.new/@authup/core-realtime-kit@3173

@authup/errors

npm i https://pkg.pr.new/@authup/errors@3173

@authup/i18n

npm i https://pkg.pr.new/@authup/i18n@3173

@authup/kit

npm i https://pkg.pr.new/@authup/kit@3173

@authup/server-adapter-kit

npm i https://pkg.pr.new/@authup/server-adapter-kit@3173

@authup/server-adapter-node

npm i https://pkg.pr.new/@authup/server-adapter-node@3173

@authup/server-adapter-socket-io

npm i https://pkg.pr.new/@authup/server-adapter-socket-io@3173

@authup/server-adapter-web

npm i https://pkg.pr.new/@authup/server-adapter-web@3173

@authup/server-kit

npm i https://pkg.pr.new/@authup/server-kit@3173

@authup/server-test-kit

npm i https://pkg.pr.new/@authup/server-test-kit@3173

@authup/specs

npm i https://pkg.pr.new/@authup/specs@3173

commit: 2c7bea6

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/client-web/package.json (1)

49-66: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

vue devDependency range not bumped alongside the override.

The root override now pins vue to 3.5.39, but this file's vue devDependency (Line 75) still declares ^3.5.38. Since ^3.5.38 already satisfies 3.5.39, the override still resolves correctly and nothing breaks — but the declared minimum is now stale relative to the intent stated in the PR objective ("vue override bump ... to avoid duplicated @vue/* packages"). Consider bumping the local range to ^3.5.39 for consistency across manifests. The same staleness exists in apps/server-core/package.json and packages/client-web-kit/package.json.

The @vuecs/* bumps themselves (Lines 49-66) look consistent with the root override and other manifests.

📦 Optional alignment fix
-        "vue": "^3.5.38",
+        "vue": "^3.5.39",

Also applies to: 75-75

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/client-web/package.json` around lines 49 - 66, The `vue` devDependency
in this manifest is still pinned to the older `^3.5.38` range, which is stale
now that the root override targets `3.5.39`. Update the `vue` entry in
`apps/client-web/package.json` to match the new override version for
consistency, and apply the same range bump in the other affected package
manifests (`apps/server-core/package.json` and
`packages/client-web-kit/package.json`) so all workspace declarations stay
aligned.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts`:
- Around line 125-130: `AEntityDelete` still calls `useAlertDialog()` during
`setup()`, so the overlay dependency is required even when `withPrompt` is
false. Move the `useAlertDialog` usage into the `withPrompt`/delete-confirmation
branch inside `AEntityDelete`’s click flow, or add a guard/fallback so the
dialog composable is only resolved when prompting is actually enabled.

---

Nitpick comments:
In `@apps/client-web/package.json`:
- Around line 49-66: The `vue` devDependency in this manifest is still pinned to
the older `^3.5.38` range, which is stale now that the root override targets
`3.5.39`. Update the `vue` entry in `apps/client-web/package.json` to match the
new override version for consistency, and apply the same range bump in the other
affected package manifests (`apps/server-core/package.json` and
`packages/client-web-kit/package.json`) so all workspace declarations stay
aligned.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 50bf5c50-b1f0-4b73-a499-d14b88911883

📥 Commits

Reviewing files that changed from the base of the PR and between c09f383 and ef38818.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (14)
  • .agents/structure.md
  • apps/client-web/layouts/default.vue
  • apps/client-web/package.json
  • apps/server-core/package.json
  • package.json
  • packages/client-web-kit-theme/package.json
  • packages/client-web-kit/package.json
  • packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
  • packages/client-web-theme/package.json
  • packages/i18n/src/catalogs/de/app.ts
  • packages/i18n/src/catalogs/en/app.ts
  • packages/i18n/src/catalogs/es/app.ts
  • packages/i18n/src/catalogs/fr/app.ts
  • packages/i18n/src/constants.ts

tada5hi added 3 commits July 1, 2026 16:54
…AlertDialog

AToggleButton gains an opt-in `withPrompt` prop (default off). When set, only the
removal transition (assigned -> un-assign) is gated behind useAlertDialog()
(tone: error); adding never prompts, and un-assigning stays reversible. Enabled on
the eight role/permission grant assignments (role-permission, user/client/robot-role,
user/client/robot-permission, and the identity-provider role-mapping, whose custom
delete button is gated directly). Scopes and policy-bindings stay promptless.

Localized removal-confirm copy (authupApp removeConfirmTitle / removeConfirmDescription)
is authored in all four locales, reusing the existing REMOVE / ABORT action labels.
…hPrompt

Address PR review: useAlertDialog() ran in setup() unconditionally, so
<AEntityDelete :with-prompt="false"> (and every non-prompting <AToggleButton>,
where withPrompt defaults off) injected the AlertDialogManager and thus required
app.use(installOverlays) even when no dialog is ever shown — breaking consumers
and tests that don't install @vuecs/overlays. Resolve the composable only when
withPrompt is set (props.withPrompt ? useAlertDialog() : undefined); it only
calls inject() with no lifecycle hooks, so the one-time conditional resolution
in setup is safe. AIdentityProviderRoleAssignment always confirms, so its eager
call is intentionally kept.

Also call submit() directly instead of submit.apply(null) in AEntityDelete.
…dered article

The interpolated `diese(s)/ce(tte)/este(a) {{entity}}` produced ungrammatical
DE/FR/ES copy ("Möchten Sie diese(s) Benutzer wirklich löschen?") — a gendered
demonstrative can't agree with an interpolated noun whose gender/case varies per
entity. Move the entity noun into the title as an article-free infinitive
("{{entity}} wirklich löschen?" / "Supprimer {{entity}} ?" / "¿Eliminar {{entity}}?"
/ "Delete {{entity}}?") and make the description a generic "cannot be undone" line.
The removal-confirm keys use fixed nouns (Zuordnung / attribution / asignación),
so they were already grammatical and are unchanged.
@tada5hi tada5hi closed this Jul 1, 2026
@tada5hi tada5hi reopened this Jul 1, 2026
@tada5hi
tada5hi merged commit f48cdbf into master Jul 1, 2026
7 checks passed
@tada5hi
tada5hi deleted the feat/delete-confirmation-alert-dialog branch July 1, 2026 15:10
@github-actions github-actions Bot mentioned this pull request Jul 1, 2026
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