Repository navigation
feat(client-web-kit): confirm entity deletion via AlertDialog + upgrade @vuecs/* to latest - #3173
Conversation
…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.
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
AEntityDeletethrough anuseAlertDialog()confirmation (default-on, opt-out viawithPrompt) 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.
authup
@authup/client-web
@authup/server-core
@authup/access
@authup/client-web-kit
@authup/client-web-kit-theme
@authup/client-web-nuxt
@authup/client-web-theme
@authup/core-http-kit
@authup/core-kit
@authup/core-realtime-kit
@authup/errors
@authup/i18n
@authup/kit
@authup/server-adapter-kit
@authup/server-adapter-node
@authup/server-adapter-socket-io
@authup/server-adapter-web
@authup/server-kit
@authup/server-test-kit
@authup/specs
commit: |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/client-web/package.json (1)
49-66: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
vuedevDependency range not bumped alongside the override.The root override now pins
vueto3.5.39, but this file'svuedevDependency (Line 75) still declares^3.5.38. Since^3.5.38already satisfies3.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.39for consistency across manifests. The same staleness exists inapps/server-core/package.jsonandpackages/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
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (14)
.agents/structure.mdapps/client-web/layouts/default.vueapps/client-web/package.jsonapps/server-core/package.jsonpackage.jsonpackages/client-web-kit-theme/package.jsonpackages/client-web-kit/package.jsonpackages/client-web-kit/src/components/utility/entity/AEntityDelete.tspackages/client-web-theme/package.jsonpackages/i18n/src/catalogs/de/app.tspackages/i18n/src/catalogs/en/app.tspackages/i18n/src/catalogs/es/app.tspackages/i18n/src/catalogs/fr/app.tspackages/i18n/src/constants.ts
…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.
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
@vuecs/*dep bumped to latest across the 6 manifests (client-web, server-core, client-web-kit deps+peers, both themes deps+peers) and the rootoverrides(@vuecs/core→3.4.0). Notable:@vuecs/overlays 1.1.3 → 1.2.0(AlertDialog compound +useAlertDialog()), pluselements 1.4,table 1.5,button 1.3,navigation 4.3,forms 5.3.2,core 3.4, etc.vueoverride3.5.38 → 3.5.39— required side-effect: the newer@vuecs/*resolve the individual@vue/*subpackages to3.5.39, which npm otherwise nests as a second copy in each workspace. Two@vue/reactivitycopies split theReftype identity and breakvue-tscwith duplicate-RefSymbolerrors. Realigning the pin dedupes everything to a single@vue/*copy.Delete confirmation (
AEntityDelete)useAlertDialog({ tone: 'error', … }), gated by a newwithPromptprop — 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.<VCAlertDialogProvider>is mounted at the client-webdefault.vuelayout root. The app-levelAlertDialogManageris auto-provided by the existingapp.use(installOverlays), so one host drains confirmations from every authenticated page (not per-page, not Reka-context-scoped like<VCToastProvider>).Assignment-removal confirmation (
AToggleButton)withPromptprop (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.role-permission,user/client/robot-role,user/client/robot-permission, and theidentity-providerrole-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
authupAppdeleteConfirmTitle/deleteConfirmDescription(delete; entity noun interpolated fromauthupEntity,count: 1) andremoveConfirmTitle/removeConfirmDescription(removal; reversible framing, no interpolation). Both reuse existingauthupActionlabels —DELETE/ABORTfor delete,REMOVE/ABORTfor removal.@vuecs/theme-tailwind'salertDialogelement — both authup themesextend(tailwindTheme()), so no theme override was needed.Scope decisions
alertDialogdefaults 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).@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
i18n,client-web-kit, both themes,client-web-nuxt, server-core (incl. embedded Vite UI), client-web (Nuxt).eslint --fixclean;vue-tsctype-check passes.@authup/i18ntests: 77 pass (locale parity across en/de/fr/es).