Repository navigation
feat!: migrate to vuecs 1.x packages, drop bootstrap-vue-next - #3069
Conversation
Migrate `@authup/client-web-kit`, `apps/client-web`, and
`apps/server-core`'s UI off the legacy `@vuecs/{form-controls,
list-controls,preset-bootstrap-v5,preset-font-awesome}` packages
onto the released `@vuecs/{forms,list,theme-bootstrap,
icons-font-awesome}` 1.x line, and drop the bootstrap-vue-next
runtime dep in favour of `@vuecs/overlays`'s Toast + DropdownMenu
compounds and a new `@vuecs/table`-backed `<ATable>` wrapper.
Package surface:
* client-web-kit: form-controls → forms, list-controls → list,
add button/elements/icon/list/overlays/table peer deps
* client-web: + theme-bootstrap, icons-font-awesome, design,
countdown/navigation/timeago major bumps; remove
bootstrap-vue-next
* server-core: same vuecs deps as client-web-kit + theme
Form/list/pagination layers:
* `core/form/builders.ts` (new) — buildFormGroup/Input/Textarea/
Checkbox/Select/Submit shims over @vuecs/forms 4.x SFCs, so the
~148 existing render-fn call sites stay unchanged
* `defineEntityCollectionManager`'s renderer rewritten against the
`@vuecs/list` 1.x compound API (VCList/Body/Item/Loading/Empty);
refresh-loading overlay preserved when busy && data already loaded
* `buildPagination` rewritten against `<VCPagination>`'s
`update:page` event (vs. the old `load` callback)
bvnext replacements:
* `useToast()` wrapper now delegates to `@vuecs/overlays`'s
module-level `useToast()` singleton; `<VCToaster
position="top-center" />` mounted in the page footer (matches the
old per-toast default position)
* BTable usages across 9 entity index pages migrated via a new
`<ATable>` wrapper (kit) that bridges the legacy `:items`+`:fields`
shape and exposes `[key: string]` slot typing for `cell-<key>`
templates (works around a current @vuecs/table SlotsType gap)
* `BDropdownItem` opportunistic fallback in `<AEntityDelete>` now
resolves `<VCDropdownMenuItem>` instead
SlotName enum:
* `@vuecs/list` 1.0's compound rewrite removed the SlotName enum;
re-introduced locally in `core/slot.ts` so `EntityCollectionSlotName`
and the 6 consumer files keep compiling
Plugin install order (real runtime fix):
* `@vuecs/core`'s `installThemeManager` is first-install-wins
(early-return on existing inject). The kit's `install()` no longer
installs `@vuecs/forms` / `@vuecs/pagination` — both internally call
`installThemeManager(app, {})` and would have frozen the manager
with an empty theme list, silently dropping every theme override.
Forms + pagination installs moved to `apps/client-web/plugins/
vuecs.ts` (with `enforce: 'pre'`) and `apps/server-core/ui/src/
app.ts`, both of which install `vuecs` *first* so themes flow.
Misc:
* Pre-existing `#cell-updated_at` copy-paste bug fixed across all
9 index pages (`row.created_at` → `row.updated_at`)
* `FormOption` shape migrated from `{ id, value }` to
`{ label, value }` at the call sites that author it directly
* `installStoreManager` (removed in @vuecs/forms 4.0) no longer
referenced — Pinia store wiring continues through `injectStore`
from authup's own `core/store`
* `.agents/structure.md` + `.agents/architecture.md` updated with
the new UI stack, plugin-install-order contract, and shim layers
BREAKING CHANGE: consumers of `@authup/client-web-kit` must install
`@vuecs/{core,button,elements,forms,icon,list,overlays,pagination,
table}` 1.x as peer deps and pre-install `@vuecs/core` *before* any
per-package vuecs plugin (the kit no longer installs `@vuecs/forms`
/ `@vuecs/pagination` to avoid freezing the theme manager).
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughMigrates the UI from bootstrap-vue-next and legacy ChangesVueCS 1.x Migration to Component-Based Architecture
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
|
There was a problem hiding this comment.
Actionable comments posted: 9
🤖 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 `@apps/client-web/pages/clients/`[id]/url.vue:
- Line 4: The import specifiers from '`@vuecs/forms`' are not alphabetically
ordered; update the import statement to list VCFormCheckbox before VCFormInput
so the named imports read "VCFormCheckbox, VCFormInput" to satisfy the
sort-imports lint rule and preserve the same symbols.
In `@apps/client-web/pages/robots/index/index.vue`:
- Around line 111-115: NuxtLink does not honor a :disabled prop, so the current
link (NuxtLink with :to="'/robots/'+ row.id") remains clickable even when
hasEditPermission is false; update the template to either conditionally render a
non-link element (e.g., a span/button) when hasEditPermission is false or add a
click handler that prevents navigation when hasEditPermission is false, ensuring
the visual disabled state is preserved. Locate the NuxtLink instances (e.g.,
NuxtLink in pages/robots/index/index.vue using :to="'/robots/'+ row.id" and the
similar patterns in pages/roles/index/index.vue, pages/scopes/index/index.vue,
pages/users/index/index.vue) and replace them with a guarded pattern: render
NuxtLink only when hasEditPermission is true, otherwise render a
disabled-looking element or prevent default navigation in a `@click` that checks
hasEditPermission.
In
`@packages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vue`:
- Line 15: Reorder the named imports from the `@vuecs/forms` module so they are
alphabetized to satisfy the sort-imports rule: change the import list containing
VCFormGroup, VCFormInput, VCFormCheckbox to alphabetical order (VCFormCheckbox,
VCFormGroup, VCFormInput) in the import statement that currently imports from
'`@vuecs/forms`'.
In `@packages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vue`:
- Line 14: Import members from '`@vuecs/forms`' are not alphabetized; reorder the
named imports so they are sorted alphabetically (VCFormCheckbox, VCFormGroup,
VCFormInput) to satisfy the sort-imports lint rule. Update the import statement
that currently lists VCFormGroup, VCFormInput, VCFormCheckbox to use the
alphabetical order of the symbols mentioned above.
In
`@packages/client-web-kit/src/components/entities/policy/time/ATimePolicyForm.vue`:
- Around line 13-14: ATimePolicyForm.vue currently imports VCFormGroup and
VCFormInput but the template also uses VCFormSelect, causing failures in
isolated/unit mounts; update the top import to also import VCFormSelect from
'`@vuecs/forms`' and add VCFormSelect to the component's local registration (the
components object where VCFormGroup and VCFormInput are registered) so the SFC
no longer relies on global registration.
In `@packages/client-web-kit/src/components/utility/pagination/module.ts`:
- Around line 16-18: The code currently forces limit and offset to 0 when
ctx.meta is absent; change the assignments so limit and offset fall back to
ctx.limit and ctx.offset (like total does) before defaulting to 0 — i.e. use
ctx.meta?.pagination?.limit ?? ctx.limit ?? 0 and ctx.meta?.pagination?.offset
?? ctx.offset ?? 0 wherever limit/offset are computed (including the logic
around next offset in the block referenced at 26-34) so callers using the
flatter pagination shape render the correct page.
In `@packages/client-web-kit/src/core/form/builders.ts`:
- Around line 197-199: The fallback for the default option label is wrong:
update the defaultText assignment so it uses optionDefaultValue first, then
falls back to optionDefaultId, then empty string (i.e. defaultText should be
input.optionDefaultValue ?? input.optionDefaultId ?? ''). Keep defaultId as-is
(input.optionDefaultId ?? input.optionDefaultValue ?? '') and ensure the object
pushed via options.unshift still uses these defaultId/defaultText values.
- Around line 133-153: buildFormCheckbox currently drops legacy options label,
group, and props, causing callers to lose behavior; update the props passed to
VCFormCheckbox in buildFormCheckbox to forward these options (include label:
input.label, group: input.group, and spread input.props/LegacyAttrs into the
component props) while keeping existing modelValue, onUpdate:modelValue,
labelContent handling, and class resolution (input.class ?? input.groupClass);
ensure labelContent slot logic remains unchanged when labelContent is not a
string.
🪄 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: b5dcf2ae-e99f-484c-a6e4-2a377397cf91
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (65)
.agents/architecture.md.agents/structure.mdapps/client-web/components/footer.vueapps/client-web/composables/toast.tsapps/client-web/nuxt.config.tsapps/client-web/package.jsonapps/client-web/pages/clients/[id]/url.vueapps/client-web/pages/clients/index/index.vueapps/client-web/pages/identity-providers/index/index.vueapps/client-web/pages/permissions/index/index.vueapps/client-web/pages/policies/index/index.vueapps/client-web/pages/realms/index/index.vueapps/client-web/pages/robots/index/index.vueapps/client-web/pages/roles/index/index.vueapps/client-web/pages/scopes/index/index.vueapps/client-web/pages/users/index/index.vueapps/client-web/plugins/bootstrap.tsapps/client-web/plugins/vuecs.tsapps/server-core/package.jsonapps/server-core/ui/src/app.tspackages/client-web-kit/package.jsonpackages/client-web-kit/src/components/entities/client/AClientForm.vuepackages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderBasicFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2EndpointFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.tspackages/client-web-kit/src/components/entities/permission-policy-binding/APermissionPolicyBindingButton.tspackages/client-web-kit/src/components/entities/permission/APermissionCheck.tspackages/client-web-kit/src/components/entities/permission/APermissionForm.tspackages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vuepackages/client-web-kit/src/components/entities/policy/APolicyPicker.vuepackages/client-web-kit/src/components/entities/policy/APolicyTypePicker.vuepackages/client-web-kit/src/components/entities/policy/composite/ACompositePolicyForm.vuepackages/client-web-kit/src/components/entities/policy/date/ADatePolicyForm.vuepackages/client-web-kit/src/components/entities/policy/realm-match/ARealmMatchPolicyForm.vuepackages/client-web-kit/src/components/entities/policy/time/ATimePolicyForm.vuepackages/client-web-kit/src/components/entities/realm/ARealmForm.tspackages/client-web-kit/src/components/entities/robot/ARobotForm.tspackages/client-web-kit/src/components/entities/role/ARoleForm.tspackages/client-web-kit/src/components/entities/scope/AScopeForm.tspackages/client-web-kit/src/components/entities/user/AUserForm.tspackages/client-web-kit/src/components/entities/user/AUserPasswordForm.tspackages/client-web-kit/src/components/utility/ATable.vuepackages/client-web-kit/src/components/utility/entity/AEntityDelete.tspackages/client-web-kit/src/components/utility/entity/collection/constants.tspackages/client-web-kit/src/components/utility/entity/collection/module.tspackages/client-web-kit/src/components/utility/entity/collection/types.tspackages/client-web-kit/src/components/utility/entity/picker/module.tspackages/client-web-kit/src/components/utility/form-input-list/AFormInputListItem.vuepackages/client-web-kit/src/components/utility/index.tspackages/client-web-kit/src/components/utility/pagination/module.tspackages/client-web-kit/src/components/utility/search/ASearch.tspackages/client-web-kit/src/components/utility/search/module.tspackages/client-web-kit/src/components/utility/translation/ATranslation.tspackages/client-web-kit/src/core/form/builders.tspackages/client-web-kit/src/core/form/index.tspackages/client-web-kit/src/core/form/submit.tspackages/client-web-kit/src/core/slot.tspackages/client-web-kit/src/module.ts
💤 Files with no reviewable changes (1)
- apps/client-web/plugins/bootstrap.ts
| <NuxtLink | ||
| :to="'/robots/'+ data.item.id" | ||
| :to="'/robots/'+ row.id" | ||
| class="btn btn-xs btn-outline-primary me-1" | ||
| :disabled="!hasEditPermission" | ||
| > |
There was a problem hiding this comment.
NuxtLink isn’t actually disabled here, so unauthorized edit navigation remains clickable.
Line 114 uses :disabled on NuxtLink, which does not block routing. Please explicitly guard navigation (or render a non-link fallback).
Downstream impact: same pattern is present at apps/client-web/pages/roles/index/index.vue Line 145, apps/client-web/pages/scopes/index/index.vue Line 129, and apps/client-web/pages/users/index/index.vue Line 116.
Suggested patch pattern
<NuxtLink
:to="'/robots/'+ row.id"
class="btn btn-xs btn-outline-primary me-1"
- :disabled="!hasEditPermission"
+ :aria-disabled="!hasEditPermission"
+ :tabindex="!hasEditPermission ? -1 : undefined"
+ `@click`="!hasEditPermission && $event.preventDefault()"
>Does Nuxt 4 `NuxtLink` support a `disabled` prop that prevents navigation, or is click prevention/conditional rendering required?
🤖 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/pages/robots/index/index.vue` around lines 111 - 115,
NuxtLink does not honor a :disabled prop, so the current link (NuxtLink with
:to="'/robots/'+ row.id") remains clickable even when hasEditPermission is
false; update the template to either conditionally render a non-link element
(e.g., a span/button) when hasEditPermission is false or add a click handler
that prevents navigation when hasEditPermission is false, ensuring the visual
disabled state is preserved. Locate the NuxtLink instances (e.g., NuxtLink in
pages/robots/index/index.vue using :to="'/robots/'+ row.id" and the similar
patterns in pages/roles/index/index.vue, pages/scopes/index/index.vue,
pages/users/index/index.vue) and replace them with a guarded pattern: render
NuxtLink only when hasEditPermission is true, otherwise render a
disabled-looking element or prevent default navigation in a `@click` that checks
hasEditPermission.
| const total = ctx.meta?.total ?? ctx.total ?? 0; | ||
| const limit = ctx.meta?.pagination?.limit ?? 0; | ||
| const offset = ctx.meta?.pagination?.offset ?? 0; |
There was a problem hiding this comment.
Don’t zero out limit and offset when meta is absent.
Line 16 and Line 19 still preserve fallback behavior, but Lines 17-18 now hard-default limit and offset to 0. Any caller still using the flatter pagination shape will render the wrong current page, and Line 27 will compute the next offset from that zero state.
Also applies to: 26-34
🤖 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 `@packages/client-web-kit/src/components/utility/pagination/module.ts` around
lines 16 - 18, The code currently forces limit and offset to 0 when ctx.meta is
absent; change the assignments so limit and offset fall back to ctx.limit and
ctx.offset (like total does) before defaulting to 0 — i.e. use
ctx.meta?.pagination?.limit ?? ctx.limit ?? 0 and ctx.meta?.pagination?.offset
?? ctx.offset ?? 0 wherever limit/offset are computed (including the logic
around next offset in the block referenced at 26-34) so callers using the
flatter pagination shape render the correct page.
There was a problem hiding this comment.
Pull request overview
Migrates Authup’s Vue UI stack (@authup/client-web-kit, apps/client-web, and the embedded apps/server-core/ui) from the pre-1.x vuecs packages and bootstrap-vue-next to the released @vuecs/* 1.x+ packages, introducing compatibility shims to keep existing render-function builder call sites working and updating app-level plugin installation order to avoid theme-manager freezing.
Changes:
- Replaces
@vuecs/*-controlsbuilder APIs with local shim layers (buildForm*,buildPagination, and VCList composition) while preserving existing call-site shapes. - Removes
bootstrap-vue-nextusage (tables, toasts, dropdown items) and introduces wrappers/adapters (ATable, toast shim, dropdown menu item fallback). - Updates app bootstrap/plugin wiring (Nuxt + server-core UI) to install
@vuecs/corefirst and then per-package plugins; updates docs to codify the contract.
Reviewed changes
Copilot reviewed 65 out of 66 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/client-web-kit/src/module.ts | Stops auto-installing vuecs forms/pagination inside the kit; documents required consumer install order. |
| packages/client-web-kit/src/core/slot.ts | Reintroduces SlotName enum locally to replace removed @vuecs/list-controls export. |
| packages/client-web-kit/src/core/form/submit.ts | Switches submit builder imports to the new local builder shim module. |
| packages/client-web-kit/src/core/form/index.ts | Re-exports the new form builder shims from the form barrel. |
| packages/client-web-kit/src/core/form/builders.ts | Adds compatibility render-function builders over @vuecs/forms + @vuecs/button. |
| packages/client-web-kit/src/components/utility/translation/ATranslation.ts | Updates imports to use locally re-exported SlotName and core helpers. |
| packages/client-web-kit/src/components/utility/search/module.ts | Moves form input builder usage to the local core shim exports. |
| packages/client-web-kit/src/components/utility/search/ASearch.ts | Replaces @vuecs/list-controls types with local list types. |
| packages/client-web-kit/src/components/utility/pagination/module.ts | Reimplements pagination builder to render VCPagination and translate update:page into offset/limit. |
| packages/client-web-kit/src/components/utility/index.ts | Exports new ATable wrapper from the kit utility barrel. |
| packages/client-web-kit/src/components/utility/form-input-list/AFormInputListItem.vue | Updates form control imports from legacy package to @vuecs/forms. |
| packages/client-web-kit/src/components/utility/entity/picker/module.ts | Updates slot utilities/types and adjusts async loader plumbing for search header slot. |
| packages/client-web-kit/src/components/utility/entity/collection/types.ts | Replaces removed list-controls types with local minimal slot/load/meta typings. |
| packages/client-web-kit/src/components/utility/entity/collection/module.ts | Rewrites entity collection rendering to compose @vuecs/list compound SFC parts directly. |
| packages/client-web-kit/src/components/utility/entity/collection/constants.ts | Updates SlotName import to local core SlotName. |
| packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts | Replaces bvnext dropdown item fallback with VCDropdownMenuItem lookup. |
| packages/client-web-kit/src/components/utility/ATable.vue | Introduces ATable wrapper to bridge legacy <BTable> items/fields and dynamic slot typing onto @vuecs/table. |
| packages/client-web-kit/src/components/entities/user/AUserPasswordForm.ts | Switches checkbox builder usage to the new local buildFormCheckbox shim. |
| packages/client-web-kit/src/components/entities/user/AUserForm.ts | Migrates imports to local shims and replaces checkbox builder calls. |
| packages/client-web-kit/src/components/entities/scope/AScopeForm.ts | Migrates form builders to local shim exports and reorders imports. |
| packages/client-web-kit/src/components/entities/role/ARoleForm.ts | Migrates form builders to local shim exports and reorders imports. |
| packages/client-web-kit/src/components/entities/robot/ARobotForm.ts | Migrates builders + SlotName import to local shim exports. |
| packages/client-web-kit/src/components/entities/realm/ARealmForm.ts | Migrates form builders to local shim exports and reorders imports. |
| packages/client-web-kit/src/components/entities/policy/time/ATimePolicyForm.vue | Updates select option typing/shape to @vuecs/forms FormOption. |
| packages/client-web-kit/src/components/entities/policy/realm-match/ARealmMatchPolicyForm.vue | Migrates checkbox component tag from VCFormInputCheckbox to VCFormCheckbox and updates imports. |
| packages/client-web-kit/src/components/entities/policy/date/ADatePolicyForm.vue | Updates form control imports from legacy package to @vuecs/forms. |
| packages/client-web-kit/src/components/entities/policy/composite/ACompositePolicyForm.vue | Updates select option typing/shape to @vuecs/forms FormOption. |
| packages/client-web-kit/src/components/entities/policy/APolicyTypePicker.vue | Updates option typing and selection logic to new FormOption shape. |
| packages/client-web-kit/src/components/entities/policy/APolicyPicker.vue | Switches SlotName import to local core SlotName. |
| packages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vue | Migrates checkbox component and select option typing to @vuecs/forms. |
| packages/client-web-kit/src/components/entities/permission/APermissionForm.ts | Migrates builder imports to core shim exports and updates option typing to FormOption. |
| packages/client-web-kit/src/components/entities/permission/APermissionCheck.ts | Switches SlotName import to local core SlotName and consolidates core imports. |
| packages/client-web-kit/src/components/entities/permission-policy-binding/APermissionPolicyBindingButton.ts | Switches SlotName import to local core SlotName and consolidates core imports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.ts | Migrates builders to core shim exports and reorders composable imports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2EndpointFields.vue | Updates form control imports from legacy package to @vuecs/forms. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.ts | Migrates builders and validation helpers to core shim exports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.ts | Migrates builders/validation helpers to core shim exports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.ts | Migrates builders/validation helpers to core shim exports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.ts | Migrates builders/validation helpers to core shim exports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.ts | Migrates builders/validation helpers to core shim exports. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.ts | Migrates builders/validation helpers to core shim exports and swaps checkbox builder. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderBasicFields.ts | Migrates builders/validation helpers to core shim exports and swaps checkbox builder. |
| packages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vue | Migrates checkbox component tag/imports to @vuecs/forms. |
| packages/client-web-kit/src/components/entities/client/AClientForm.vue | Migrates checkbox component tag to VCFormCheckbox. |
| packages/client-web-kit/package.json | Replaces legacy vuecs deps with @vuecs/* 1.x+ packages and widens peers accordingly. |
| package-lock.json | Updates lockfile for new vuecs packages and removes bootstrap-vue-next. |
| apps/server-core/ui/src/app.ts | Updates consent UI bootstrap to install @vuecs/core + themes/icons and then forms/pagination. |
| apps/server-core/package.json | Updates devDependencies to new @vuecs/* packages used by the embedded UI. |
| apps/client-web/plugins/vuecs.ts | Replaces bvnext presets/store-manager flow with @vuecs/core theme/icons + per-package plugin installs; enforces pre-order. |
| apps/client-web/plugins/bootstrap.ts | Removes bvnext bootstrap plugin entirely. |
| apps/client-web/pages/users/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/scopes/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/roles/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/robots/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/realms/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/policies/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/permissions/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/identity-providers/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/clients/index/index.vue | Migrates entity index table from <BTable> to <ATable> and updates per-cell slot names + updated_at fix. |
| apps/client-web/pages/clients/[id]/url.vue | Migrates checkbox component tag/import to @vuecs/forms. |
| apps/client-web/package.json | Drops bootstrap-vue-next and adds the @vuecs/* 1.x+ dependency set. |
| apps/client-web/nuxt.config.ts | Updates vuecs stylesheet paths from dist/index.css to dist/style.css. |
| apps/client-web/composables/toast.ts | Replaces bvnext toast API with a compatibility wrapper around @vuecs/overlays useToast(). |
| apps/client-web/components/footer.vue | Replaces bvnext orchestrator with <VCToaster position=\"top-center\" />. |
| .agents/structure.md | Documents the new vuecs-based UI stack, shims, and plugin install order contract. |
| .agents/architecture.md | Adds architectural notes explaining shims, <ATable>, bvnext removal, and SlotName reintroduction. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Plugin install order:
* `apps/client-web/plugins/vuecs.ts` gets `name: 'vuecs'`; the
`vuecs-navigation` plugin now `dependsOn: ['authup', 'vuecs']`.
Every per-package install (`@vuecs/{button, countdown, elements,
forms, list, navigation, overlays, pagination, table, timeago}`)
internally calls `installThemeManager(app, {})` with no themes,
and that helper is first-install-wins. Without the ordering, the
`vuecs-navigation` plugin ran first, froze the theme manager
empty, and silently dropped every bootstrap theme override
(form-control / btn / nav-link classes were missing at render
time). Documented in `.agents/structure.md`.
CSS pipeline (Bootstrap variant):
* `apps/client-web/nuxt.config.ts` + `apps/server-core/ui/src/app.ts`
import the full cascade per `@vuecs/theme-bootstrap` doctrine —
bootstrap → `@vuecs/design/standalone` → theme-bootstrap bridge
→ per-component CSS (`@vuecs/{button, elements, forms,
navigation, pagination, table}`). Previously only navigation +
pagination CSS was loaded, so form / button / table elements
rendered with no borders / spacing.
* `apps/server-core/package.json` adds the missing deps
(`@vuecs/{button, design, elements, overlays, table}`).
Entity-collection renderer
(`packages/client-web-kit/src/components/utility/entity/collection/module.ts`):
* Pass `:data` / `:busy` / `:total` / `:meta` to `<VCList>` so the
context drives `<VCListBody>` / `<VCListEmpty>` — without it,
body short-circuits to `null` (broke every junction list:
client-roles, user-permissions, role-permissions, pickers).
* Add `BODY` slot bypass — 9 entity index pages render their
`<ATable>` via `<template #body>`; the new renderer was ignoring
the slot and forcing per-item rendering.
* Add `ITEM_ACTIONS` / `ITEM_ACTIONS_EXTRA` per-item dispatch in
a `ms-auto d-flex` wrapper so picker toggle buttons + extras
float to the row's right edge (matches legacy `buildList`).
* Add `DEFAULT` slot escape hatch — consumer can take over the
full list contents.
* Invert `noMore` semantics — `@vuecs/[email protected]`'s
`buildListNoMore` rendered ONLY when `total === 0` (empty-list
indicator), not on full-list. Fixed to match.
* Fix `renderChrome` to call `slot(undefined)` for `NO_MORE`,
matching its `EntityCollectionVSlots` typing.
`<ATable>` rewrite
(`packages/client-web-kit/src/components/utility/ATable.vue`):
* `<VCTable>`'s auto-render path (with `:columns`) doesn't
dispatch `#cell-<key>` slots to inner `<VCTableCell>` — falls
back to `String(row[key])`, which is why options columns were
blank and `<VCTimeago>` cells showed the raw ISO date.
* Wrapper now renders the body explicitly (`<VCTableHeader>`,
`<VCTableBody>` with row slot, per-cell `<VCTableCell>` with the
`#cell-<field.key>` slot inside) so the legacy bvnext shape
works as written.
Login form (`packages/client-web-kit/src/components/workflows/Login.vue`):
* `<VCFormSubmit>` was dropped in `@vuecs/[email protected]` — Login's
Submit button never rendered. Replaced with
`useSubmitButton()` composable + `<VCButton v-bind>`.
OAuth toast provider:
* `<VCToaster>` renders Reka's `<ToastViewport>` which requires a
`<VCToastProvider>` ancestor — without it, mounting throws
"Injection Symbol(ToastProviderContext) not found." Wrapped in
`apps/client-web/components/footer.vue` and (preventively) in
`apps/server-core/ui/src/App.vue`.
Theme overrides (`apps/client-web/plugins/vuecs.ts`):
* Drop `text-uppercase` from the bootstrap theme's `tableHeader`
classes; the rest of the muted-small look is preserved.
* Sidebar nav-link padding: vue-layout-navigation.css now sets
`--bs-nav-link-padding-y: 1rem` on `.page-sidebar .nav` so the
vertical padding matches Bootstrap's horizontal default of 1rem.
* `apps/client-web/components/sidebar.vue` swaps `navbar-nav` (a
Bootstrap navbar class that zeroes `--bs-nav-link-padding-x`)
for `nav flex-column` — provides the CSS-var scope `.nav-link`
reads its padding from while keeping the vertical layout. The
header navbar is unaffected.
`buildForm*` shim fixes (`packages/client-web-kit/src/core/form/builders.ts`):
* `buildFormCheckbox` now forwards `label`, `group`, and `props`
to `<VCFormCheckbox>` — they were silently dropped, so legacy
checkbox call sites lost behaviour.
* `buildFormSelect`'s `optionDefaultId`-only fallback now resolves
`defaultText` through `String(optionDefaultId)` instead of
defaulting to empty (matched the documented contract).
Pre-existing lint failures cleaned up so the build is green:
* sort-imports on url.vue / AIdentityProviderRoleAssignment.vue /
APolicyBasicForm.vue (CodeRabbit review on PR #3069).
* Local `<VCFormSelect>` registration in `ATimePolicyForm.vue`.
* Removed dangling `Component` imports from 9 entity index pages
(leftover from the `BTable as Component` drop in the migration).
* Inline `eslint-disable @typescript-eslint/no-explicit-any` on
`<ATable>` with rationale in the JSDoc; the permissive shape
is intentional for the wrapper.
* Type `fields` with `TableColumn<Entity>` in all 9 entity index
pages.
Pre-existing UX issue not addressed in this commit:
* `<NuxtLink :disabled>` doesn't block navigation; tracked as
issue #3071 since the same `master` pattern predates the
vuecs migration.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/client-web-kit/src/components/workflows/Login.vue (1)
114-127:⚠️ Potential issue | 🟠 Major | ⚡ Quick winGuard
submit()with validation and busy state.
submitButtonnow depends onbusy/$invalid, butsubmit()never setsbusyand never validates before callingstore.login(). This allows repeated submissions and attempts with invalid form state.Suggested fix
const submit = async () => { + if (busy.value) { + return; + } + + const isValid = await vuelidate.value.$validate(); + if (!isValid) { + return; + } + + busy.value = true; try { await store.login({ name: form.name, password: form.password, realmId: form.realm_id, }); emit('done'); } catch (e: unknown) { emit('failed', e instanceof Error ? e.message : 'The login operation failed'); + } finally { + busy.value = false; } };Also applies to: 151-154, 230-234
🤖 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 `@packages/client-web-kit/src/components/workflows/Login.vue` around lines 114 - 127, The submit handler (submit) currently skips validation and never toggles a busy flag, allowing concurrent/invalid submissions; update submit to first check the form validation (e.g., use your validation object like v$ or $v and abort if invalid), then set busy = true before calling store.login and use try/finally to reset busy = false, emitting 'done' on success and 'failed' on error as before; apply the same pattern to the other submission handlers referenced (the blocks around the other submit-like functions at the same component: the ones noted at lines 151-154 and 230-234) so all submit paths validate first, prevent re-entry while busy, and always clear busy in finally.
♻️ Duplicate comments (1)
apps/client-web/pages/robots/index/index.vue (1)
111-115:⚠️ Potential issue | 🟠 Major | ⚡ Quick win
NuxtLink :disabledstill doesn’t block navigationLine 114 still uses
:disabledonNuxtLink, so users can navigate even whenhasEditPermissionis false. Guard click/navigation or conditionally render a non-link fallback.Suggested minimal patch
- <NuxtLink - :to="'/robots/'+ row.id" - class="btn btn-xs btn-outline-primary me-1" - :disabled="!hasEditPermission" - > + <NuxtLink + :to="'/robots/'+ row.id" + class="btn btn-xs btn-outline-primary me-1" + :aria-disabled="!hasEditPermission" + :tabindex="!hasEditPermission ? -1 : undefined" + `@click`="!hasEditPermission && $event.preventDefault()" + >Does Nuxt 4 NuxtLink support a disabled prop that prevents navigation, or is conditional rendering / click preventDefault required?🤖 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/pages/robots/index/index.vue` around lines 111 - 115, The NuxtLink still allows navigation because NuxtLink doesn't honor a :disabled prop; update the template around NuxtLink to prevent navigation when hasEditPermission is false by either (a) conditionally render a non-link fallback (e.g., render a <button> or <span> with the same classes when hasEditPermission is false) or (b) keep NuxtLink but add a guarded click handler that calls event.preventDefault() when !hasEditPermission; target the NuxtLink element and its surrounding template using the NuxtLink tag and the hasEditPermission and row.id symbols to implement the guard.
🤖 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.
Outside diff comments:
In `@packages/client-web-kit/src/components/workflows/Login.vue`:
- Around line 114-127: The submit handler (submit) currently skips validation
and never toggles a busy flag, allowing concurrent/invalid submissions; update
submit to first check the form validation (e.g., use your validation object like
v$ or $v and abort if invalid), then set busy = true before calling store.login
and use try/finally to reset busy = false, emitting 'done' on success and
'failed' on error as before; apply the same pattern to the other submission
handlers referenced (the blocks around the other submit-like functions at the
same component: the ones noted at lines 151-154 and 230-234) so all submit paths
validate first, prevent re-entry while busy, and always clear busy in finally.
---
Duplicate comments:
In `@apps/client-web/pages/robots/index/index.vue`:
- Around line 111-115: The NuxtLink still allows navigation because NuxtLink
doesn't honor a :disabled prop; update the template around NuxtLink to prevent
navigation when hasEditPermission is false by either (a) conditionally render a
non-link fallback (e.g., render a <button> or <span> with the same classes when
hasEditPermission is false) or (b) keep NuxtLink but add a guarded click handler
that calls event.preventDefault() when !hasEditPermission; target the NuxtLink
element and its surrounding template using the NuxtLink tag and the
hasEditPermission and row.id symbols to implement the guard.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e075f41c-0a6c-41fd-b31a-41d1f9846efe
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (27)
.agents/structure.mdapps/client-web/assets/css/vue-layout-navigation.cssapps/client-web/components/footer.vueapps/client-web/components/sidebar.vueapps/client-web/nuxt.config.tsapps/client-web/pages/clients/[id]/url.vueapps/client-web/pages/clients/index/index.vueapps/client-web/pages/identity-providers/index/index.vueapps/client-web/pages/permissions/index/index.vueapps/client-web/pages/policies/index/index.vueapps/client-web/pages/realms/index/index.vueapps/client-web/pages/robots/index/index.vueapps/client-web/pages/roles/index/index.vueapps/client-web/pages/scopes/index/index.vueapps/client-web/pages/users/index/index.vueapps/client-web/plugins/vuecs-navigation.tsapps/client-web/plugins/vuecs.tsapps/server-core/package.jsonapps/server-core/ui/src/App.vueapps/server-core/ui/src/app.tspackages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vuepackages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vuepackages/client-web-kit/src/components/entities/policy/time/ATimePolicyForm.vuepackages/client-web-kit/src/components/utility/ATable.vuepackages/client-web-kit/src/components/utility/entity/collection/module.tspackages/client-web-kit/src/components/workflows/Login.vuepackages/client-web-kit/src/core/form/builders.ts
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
… header slot * Move `<VCToastProvider>` from `components/footer.vue` to `layouts/default.vue`. The provider now wraps the whole layout rather than living next to the toaster — alternate layouts (or pages that don't include the footer) won't silently break the toast viewport, and any future `<VCToast>` use in kit components or pages already has the Reka `ToastProviderContext` injection. * Rename `<ATable>`'s header customisation slot from `#head-<columnKey>` to `#header-<columnKey>` so it matches the slot name `@vuecs/table`'s `TableColumn` JSDoc documents. No current authup consumer uses either form, so this is a pure forward-looking cleanup (all `<template #header=...>` sites in pages are on the entity-collection wrapper, not on `<ATable>`). Filed upstream issues against vuecs while at it: - tada5hi/vuecs#1591 — `installThemeManager` first-install-wins trap (root cause of the theme-freeze we hit during the 1.x migration). - tada5hi/vuecs#1592 — `TableColumn` JSDoc documents `#cell-<key>` / `#header-<key>` slots that `<VCTable>`'s auto-render path never dispatches.
Summary
Migrates
@authup/client-web-kit,apps/client-web, and the embeddedapps/server-core/uiconsent UI off the pre-1.x vuecs packages and onto the released@vuecs/*1.x line. Dropsbootstrap-vue-nextentirely.@vuecs/form-controls→@vuecs/forms@4,@vuecs/list-controls→@vuecs/list@1,@vuecs/preset-bootstrap-v5→@vuecs/theme-bootstrap@4,@vuecs/preset-font-awesome→@vuecs/icons-font-awesome@1. Add@vuecs/{core@3,button@1,elements@1,icon@1,overlays@1,table@1}. Bumpcountdown@2,navigation@3,timeago@2,pagination@2.<BTable>→ new<ATable>wrapper (kit) →<VCTable>;useToast+BOrchestrator→@vuecs/overlaysuseToast()+<VCToaster position="top-center" />;BDropdownItemopportunistic fallback in<AEntityDelete>→<VCDropdownMenuItem>.plugins/bootstrap.tsdeleted.packages/client-web-kit/src/core/form/builders.ts—buildFormGroup/Input/Textarea/Checkbox/Select/Submitover the new SFCspackages/client-web-kit/src/components/utility/pagination/module.ts—buildPaginationover<VCPagination>'supdate:pagedefineEntityCollectionManager.render()rewritten to compose<VCList>directlySlotNameenum — re-introduced locally incore/slot.ts(removed by@vuecs/list1.0's compound rewrite)@vuecs/core'sinstallThemeManageris first-install-wins; the kit no longer installs@vuecs/forms/@vuecs/pagination(both would freeze the manager). Apps now install vuecs FIRST then per-package plugins.apps/client-web/plugins/vuecs.tsusesenforce: 'pre'.#cell-updated_atwas renderingrow.created_aton 9 entity index pages — fixed in passing..agents/structure.md+.agents/architecture.mdupdated with the new UI stack, shim layers, and install-order contract.Why the shims
@vuecs/forms4.0,@vuecs/list1.0, and@vuecs/pagination2.0 dropped their pre-1.x render-function builder APIs in favor of compound SFCs. Authup has ~150 builder call sites across 19 entity form files. Shimming preserves them and lets this PR be one coherent migration step; entity-by-entity rewrites to native<VC*>template syntax can land later without further breaking changes.Test plan
npm run build— all 19 nx targets passnpm run lint— pre-commit hook cleanapps/client-webNuxt build produces outputapps/server-coreVite SSR + client builds produce output/authorize(server-core)Breaking changes
Consumers of
@authup/client-web-kitmust:@vuecs/{core,button,elements,forms,icon,list,overlays,pagination,table}1.x as peer deps (the kit'speerDependenciesare widened to^X.x— pick the latest 1.x major).app.use(vuecs, { themes: [...], icons: [...] })BEFORE any per-package plugin (installForms,installPagination, ...). The kit no longer installs forms / pagination because doing so would freeze the theme manager with no themes. See.agents/architecture.md→ "UI Layer" → "Plugin install order".Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation