Skip to content

feat!: migrate to vuecs 1.x packages, drop bootstrap-vue-next - #3069

Merged
tada5hi merged 3 commits into
masterfrom
feat/migrate-to-vuecs-1.0
May 22, 2026
Merged

tada5hi merged 3 commits into
masterfrom
feat/migrate-to-vuecs-1.0

Conversation

@tada5hi

@tada5hi tada5hi commented May 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Migrates @authup/client-web-kit, apps/client-web, and the embedded apps/server-core/ui consent UI off the pre-1.x vuecs packages and onto the released @vuecs/* 1.x line. Drops bootstrap-vue-next entirely.

  • Package renames + bumps: @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}. Bump countdown@2, navigation@3, timeago@2, pagination@2.
  • bvnext removal: <BTable> → new <ATable> wrapper (kit) → <VCTable>; useToast + BOrchestrator → @vuecs/overlays useToast() + <VCToaster position="top-center" />; BDropdownItem opportunistic fallback in <AEntityDelete> → <VCDropdownMenuItem>. plugins/bootstrap.ts deleted.
  • Compat shims (intentional tactical layer to keep ~150 builder call sites + 4 collection consumers unchanged):
    • packages/client-web-kit/src/core/form/builders.ts — buildFormGroup/Input/Textarea/Checkbox/Select/Submit over the new SFCs
    • packages/client-web-kit/src/components/utility/pagination/module.ts — buildPagination over <VCPagination>'s update:page
    • defineEntityCollectionManager.render() rewritten to compose <VCList> directly
  • SlotName enum — re-introduced locally in core/slot.ts (removed by @vuecs/list 1.0's compound rewrite)
  • Plugin install order — @vuecs/core's installThemeManager is 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.ts uses enforce: 'pre'.
  • Pre-existing fix: #cell-updated_at was rendering row.created_at on 9 entity index pages — fixed in passing.
  • Docs: .agents/structure.md + .agents/architecture.md updated with the new UI stack, shim layers, and install-order contract.

Why the shims

@vuecs/forms 4.0, @vuecs/list 1.0, and @vuecs/pagination 2.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 pass
  • npm run lint — pre-commit hook clean
  • apps/client-web Nuxt build produces output
  • apps/server-core Vite SSR + client builds produce output
  • Smoke-test login + each entity list/edit page in browser
  • Smoke-test consent UI under /authorize (server-core)
  • Verify toast position is top-center (parity with old default)
  • Verify submit-button create / update icons render via FA

Breaking changes

Consumers of @authup/client-web-kit must:

  1. Install @vuecs/{core,button,elements,forms,icon,list,overlays,pagination,table} 1.x as peer deps (the kit's peerDependencies are widened to ^X.x — pick the latest 1.x major).
  2. Call 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

    • New table wrapper for backward-compatible table slots.
    • Form builder shims to preserve legacy form behaviors.
  • Bug Fixes

    • Corrected displayed "updated at" timestamps across lists/tables.
  • Refactor

    • Migrated UI from Bootstrap-Vue to VueCS components and updated toast/notification plumbing.
    • Standardized form controls, checkboxes, and list/pagination rendering.
  • Documentation

    • Added UI stack and architecture docs explaining compatibility and plugin ordering.

Review Change Stack

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).
Copilot AI review requested due to automatic review settings May 21, 2026 08:30
@coderabbitai

coderabbitai Bot commented May 21, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@tada5hi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 57 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 89705ea6-f830-4f19-b2cf-957a5960fd8f

📥 Commits

Reviewing files that changed from the base of the PR and between b33669f and 9f3dd7c.

📒 Files selected for processing (3)
  • apps/client-web/components/footer.vue
  • apps/client-web/layouts/default.vue
  • packages/client-web-kit/src/components/utility/ATable.vue
📝 Walkthrough

Walkthrough

Migrates the UI from bootstrap-vue-next and legacy @vuecs presets to VueCS 1.x SFC components: adds compat builder shims, introduces ATable wrapper, rewrites entity collection and pagination rendering, updates toast/overlay integration, consolidates imports, and updates plugin installation and package dependencies.

Changes

VueCS 1.x Migration to Component-Based Architecture

Layer / File(s) Summary
Architecture docs & package updates
.agents/architecture.md, .agents/structure.md, apps/client-web/package.json, apps/server-core/package.json, packages/client-web-kit/package.json
Adds UI-layer architecture docs and updates dev/peer dependencies to new @vuecs/* component packages.
Plugin setup & toast migration
apps/client-web/plugins/vuecs.ts, apps/client-web/plugins/vuecs-navigation.ts, apps/client-web/composables/toast.ts, apps/client-web/components/footer.vue, apps/server-core/ui/src/App.vue, apps/client-web/nuxt.config.ts, apps/client-web/plugins/bootstrap.ts
Installs @vuecs/core with explicit theme/icon configuration, enforces plugin order (dependsOn), migrates toast composable to @vuecs/overlays, and updates footer/toaster wiring and stylesheet cascade.
Core form builders & SlotName
packages/client-web-kit/src/core/form/builders.ts, packages/client-web-kit/src/core/slot.ts, packages/client-web-kit/src/core/form/index.ts, packages/client-web-kit/src/core/form/submit.ts
Adds compatibility builder shims (buildFormGroup/Input/Textarea/Checkbox/Select/Submit) that adapt legacy render-function shapes to @vuecs/forms SFCs and introduces a local SlotName enum.
ATable wrapper & exports
packages/client-web-kit/src/components/utility/ATable.vue, packages/client-web-kit/src/components/utility/index.ts, packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
New ATable wraps @vuecs/table VCTable and preserves legacy items/fields + dynamic cell-<key> slots; re-exported from utility index; AEntityDelete resolves VCDropdownMenuItem.
Page table migrations
apps/client-web/pages/*/index.vue (clients, identity-providers, permissions, policies, realms, robots, roles, scopes, users)
Migrates pages from BTable to ATable, updates fields metadata (thClass/tdClass → headerClass/cellClass), converts slot APIs to #cell-<field> with { row }, and fixes timestamp slot sources.
Entity collection & types rewrite
packages/client-web-kit/src/components/utility/entity/collection/module.ts, packages/client-web-kit/src/components/utility/entity/collection/types.ts, packages/client-web-kit/src/components/utility/entity/collection/constants.ts, packages/client-web-kit/src/components/utility/entity/picker/module.ts
Replaces @vuecs/list-controls buildList with manual @vuecs/list vnode composition; introduces local list types (ListLoadFn, ListSlotProps, etc.), uses local SlotName, and makes header slot load async/await.
Pagination reimplementation
packages/client-web-kit/src/components/utility/pagination/module.ts
Reimplements buildPagination to render VCPagination directly and call ctx.load with recalculated offsets on page updates.
Checkbox & option type updates
multiple packages/client-web-kit/src/components/entities/* files
Replaces VCFormInputCheckbox/buildFormInputCheckbox with VCFormCheckbox/buildFormCheckbox and switches select option shapes from FormSelectOption to FormOption (label/value).
Imports consolidation & VCForm SFC updates
many packages/client-web-kit/src/components/* files
Consolidates mixed @vuecs/* and local imports into single ../../../core barrels and updates some SFC imports from @vuecs/form-controls to @vuecs/forms.
Search, translation, and utility updates
packages/client-web-kit/src/components/utility/search/*, packages/client-web-kit/src/components/utility/translation/*, packages/client-web-kit/src/components/utility/form-input-list/*
Refactors search/translation/util modules to use local core builders and slot helpers.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related issues

Possibly related PRs

  • authup/authup#2934: Overlaps with toast composable changes; both refactor apps/client-web/composables/toast.ts.

Poem

🐰 From Bootstrap vines to VueCS views so bright,
Where builders bend and tables slot just right,
Local SlotName whispers, lists render anew—
A rabbit hops in, "The UI's reborn!" 🌷

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/migrate-to-vuecs-1.0

@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: 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

📥 Commits

Reviewing files that changed from the base of the PR and between 5159a23 and f3c1776.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (65)
  • .agents/architecture.md
  • .agents/structure.md
  • apps/client-web/components/footer.vue
  • apps/client-web/composables/toast.ts
  • apps/client-web/nuxt.config.ts
  • apps/client-web/package.json
  • apps/client-web/pages/clients/[id]/url.vue
  • apps/client-web/pages/clients/index/index.vue
  • apps/client-web/pages/identity-providers/index/index.vue
  • apps/client-web/pages/permissions/index/index.vue
  • apps/client-web/pages/policies/index/index.vue
  • apps/client-web/pages/realms/index/index.vue
  • apps/client-web/pages/robots/index/index.vue
  • apps/client-web/pages/roles/index/index.vue
  • apps/client-web/pages/scopes/index/index.vue
  • apps/client-web/pages/users/index/index.vue
  • apps/client-web/plugins/bootstrap.ts
  • apps/client-web/plugins/vuecs.ts
  • apps/server-core/package.json
  • apps/server-core/ui/src/app.ts
  • packages/client-web-kit/package.json
  • packages/client-web-kit/src/components/entities/client/AClientForm.vue
  • packages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vue
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderBasicFields.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.ts
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2EndpointFields.vue
  • packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.ts
  • packages/client-web-kit/src/components/entities/permission-policy-binding/APermissionPolicyBindingButton.ts
  • packages/client-web-kit/src/components/entities/permission/APermissionCheck.ts
  • packages/client-web-kit/src/components/entities/permission/APermissionForm.ts
  • packages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vue
  • packages/client-web-kit/src/components/entities/policy/APolicyPicker.vue
  • packages/client-web-kit/src/components/entities/policy/APolicyTypePicker.vue
  • packages/client-web-kit/src/components/entities/policy/composite/ACompositePolicyForm.vue
  • packages/client-web-kit/src/components/entities/policy/date/ADatePolicyForm.vue
  • packages/client-web-kit/src/components/entities/policy/realm-match/ARealmMatchPolicyForm.vue
  • packages/client-web-kit/src/components/entities/policy/time/ATimePolicyForm.vue
  • packages/client-web-kit/src/components/entities/realm/ARealmForm.ts
  • packages/client-web-kit/src/components/entities/robot/ARobotForm.ts
  • packages/client-web-kit/src/components/entities/role/ARoleForm.ts
  • packages/client-web-kit/src/components/entities/scope/AScopeForm.ts
  • packages/client-web-kit/src/components/entities/user/AUserForm.ts
  • packages/client-web-kit/src/components/entities/user/AUserPasswordForm.ts
  • packages/client-web-kit/src/components/utility/ATable.vue
  • packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
  • packages/client-web-kit/src/components/utility/entity/collection/constants.ts
  • packages/client-web-kit/src/components/utility/entity/collection/module.ts
  • packages/client-web-kit/src/components/utility/entity/collection/types.ts
  • packages/client-web-kit/src/components/utility/entity/picker/module.ts
  • packages/client-web-kit/src/components/utility/form-input-list/AFormInputListItem.vue
  • packages/client-web-kit/src/components/utility/index.ts
  • packages/client-web-kit/src/components/utility/pagination/module.ts
  • packages/client-web-kit/src/components/utility/search/ASearch.ts
  • packages/client-web-kit/src/components/utility/search/module.ts
  • packages/client-web-kit/src/components/utility/translation/ATranslation.ts
  • packages/client-web-kit/src/core/form/builders.ts
  • packages/client-web-kit/src/core/form/index.ts
  • packages/client-web-kit/src/core/form/submit.ts
  • packages/client-web-kit/src/core/slot.ts
  • packages/client-web-kit/src/module.ts
💤 Files with no reviewable changes (1)
  • apps/client-web/plugins/bootstrap.ts

Comment on lines 111 to 115
<NuxtLink
:to="'/robots/'+ data.item.id"
:to="'/robots/'+ row.id"
class="btn btn-xs btn-outline-primary me-1"
:disabled="!hasEditPermission"
>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

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.

Comment on lines +16 to +18
const total = ctx.meta?.total ?? ctx.total ?? 0;
const limit = ctx.meta?.pagination?.limit ?? 0;
const offset = ctx.meta?.pagination?.offset ?? 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

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.

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

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/*-controls builder APIs with local shim layers (buildForm*, buildPagination, and VCList composition) while preserving existing call-site shapes.
  • Removes bootstrap-vue-next usage (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/core first 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.

@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.

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 win

Guard submit() with validation and busy state.

submitButton now depends on busy/$invalid, but submit() never sets busy and never validates before calling store.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 :disabled still doesn’t block navigation

Line 114 still uses :disabled on NuxtLink, so users can navigate even when hasEditPermission is 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

📥 Commits

Reviewing files that changed from the base of the PR and between f3c1776 and b33669f.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (27)
  • .agents/structure.md
  • apps/client-web/assets/css/vue-layout-navigation.css
  • apps/client-web/components/footer.vue
  • apps/client-web/components/sidebar.vue
  • apps/client-web/nuxt.config.ts
  • apps/client-web/pages/clients/[id]/url.vue
  • apps/client-web/pages/clients/index/index.vue
  • apps/client-web/pages/identity-providers/index/index.vue
  • apps/client-web/pages/permissions/index/index.vue
  • apps/client-web/pages/policies/index/index.vue
  • apps/client-web/pages/realms/index/index.vue
  • apps/client-web/pages/robots/index/index.vue
  • apps/client-web/pages/roles/index/index.vue
  • apps/client-web/pages/scopes/index/index.vue
  • apps/client-web/pages/users/index/index.vue
  • apps/client-web/plugins/vuecs-navigation.ts
  • apps/client-web/plugins/vuecs.ts
  • apps/server-core/package.json
  • apps/server-core/ui/src/App.vue
  • apps/server-core/ui/src/app.ts
  • packages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vue
  • packages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vue
  • packages/client-web-kit/src/components/entities/policy/time/ATimePolicyForm.vue
  • packages/client-web-kit/src/components/utility/ATable.vue
  • packages/client-web-kit/src/components/utility/entity/collection/module.ts
  • packages/client-web-kit/src/components/workflows/Login.vue
  • packages/client-web-kit/src/core/form/builders.ts

@tada5hi

tada5hi commented May 21, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 21, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

… 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.
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