Repository navigation
feat!: migrate from Bootstrap to Tailwind v4 (+ vuecs theme-tailwind) - #3075
Conversation
Wires up the Tailwind v4 + vuecs theme pipeline as a checkpoint for the Bootstrap-to-Tailwind migration. The UI is intentionally unstyled at this stage — page-level Bootstrap utility classes (d-flex, ms-*, btn-*, ...) and authup CSS files still reference Bootstrap selectors and --bs-* variables. Subsequent commits sweep those. - new package: packages/client-web-theme/ — composes tailwindTheme() with authup-specific overrides and ships a single CSS entry that pulls in tailwindcss + @vuecs/design + @vuecs/theme-tailwind - apps/client-web + apps/server-core: add tailwindcss ^4.3 + @tailwindcss/vite + @authup/client-web-theme; remove bootstrap + @vuecs/theme-bootstrap - apps/client-web/nuxt.config.ts: wire @tailwindcss/vite into vite.plugins; replace the Bootstrap-cascade CSS array with a single @authup/client-web-theme entry - apps/server-core/ui/vite.config.ts: wire @tailwindcss/vite plugin - apps/server-core/ui/src/app.ts: import @authup/client-web-theme; themes: [authupTheme()] - apps/client-web/plugins/vuecs.ts: themes: [authupTheme()]; drop the list/listBody/listItem extend() overrides and tableHeader uppercase fix (theme-tailwind defaults already match the desired styling)
…ayer - Mechanical class sweep on ~37 .vue files: d-flex → flex, flex-column → flex-col, w-100 → w-full, fw-bold → font-bold, text-muted → text-fg-muted, bg-primary → bg-primary-600, etc. Spacing utilities (ms-/me-/mt-/mb-, p*, gap-*) carry over unchanged — Tailwind v4 uses the same naming as Bootstrap 5. - @authup/client-web-theme: move CSS into src/ so Nuxt's workspace alias resolves it, add @source directives for the workspace .vue/.ts surfaces (apps/client-web, apps/server-core/ui, packages/client-web-kit), and layer a transitional Bootstrap-compat block on top: .btn, .row/.col-N, .alert, .badge, .nav/.navbar, .modal-*, .fade — each rule @apply's Tailwind utilities under the legacy Bootstrap class names so authup's ~135 pre-Tailwind templates keep rendering. Phase out as call sites migrate to <VCButton>/<VCAlert>/<VCBadge>/Tailwind utilities. - apps/client-web/assets/css: delete bootstrap-override.css (bootstrap is gone), delete vue-toastification.css (vue-toastification was already removed); fix vue-layout-navigation.css to use direct padding instead of the dropped --bs-nav-link-padding-y CSS variable. - apps/client-web/nuxt.config.ts: drop vue-toastification from build.transpile (no longer a dep); remove vue-toastification.css from the CSS array. - .agents/structure.md + architecture.md: rewrite the UI Layer notes to reflect Tailwind v4 + @vuecs/theme-tailwind + @authup/client-web-theme; document the compat layer, mechanical sweep, semantic-color palette, and the @source scanning configuration. Verified: client-web Nuxt build, server-core (incl. UI SSR) build, full eslint pass.
- .btn / .btn-outline-* compat rules now declare a focus-visible ring
(outline-2, outline-offset-2, outline-primary-500). The previous rules
inherited no focus indicator, regressing keyboard-only access on every
button rendered with the legacy Bootstrap class names. Built CSS now
emits .btn:focus-visible with the outline rules; outline-color
resolves to --color-primary-500 (the theme-tailwind primary ring).
- Drop .fade and .fade.show from the compat layer. .fade { @apply
transition-opacity } without an opacity-0 baseline declared a
transition between two opacity:1 values — a no-op. The only consumer
is one modal in APermissionPolicyAssignments.vue which renders
correctly through the standalone .modal-* rules.
- Simplify authupTheme() to a clean pass-through over
@vuecs/theme-tailwind. The previous body spread base.elements and
reassigned classesMergeFn — both no-ops because base already has
them. Module is now `return tailwindTheme()` with a JSDoc-anchored
example of how to drop in per-element overrides when needed.
The Python sweep also mapped text-start/end and float-start/end to
text-left/right and float-left/right, but the codebase has no calls
to those logical-direction utilities (Tailwind v4 supports them
natively, so they would have carried over unchanged). No diff is
needed — flagging in the commit log for future migrations.
The .navbar-nav compat rule applied flex-col at every screen size, which stretched the header vertically because every nav item ended up on its own row. The .collapse hide-by-default rule was also missing, so the mobile-stacked menu remained visible on desktop (doubling up with the gadgets row). Mirror Bootstrap's actual cascade: - .navbar-nav stays flex-col by default (mobile drawer) - inside .navbar-expand-md, on md+, flips to flex-row - .collapse:not(.show) hides; .navbar-expand-md .navbar-collapse overrides with md:flex! so desktop ignores the collapse state Built CSS verified: 3× 48rem media queries emitted, .collapse:not(.show) declared, flex-direction:row in the md+ branch.
Tailwind v4's JIT scans only the @source globs declared in the CSS file. The previous declarations covered authup's apps + packages but missed node_modules, so the utility classes that live inside @vuecs/theme-tailwind's element class maps (e.g. formInput.classes.root = "block w-full rounded-md border border-border ...") never reached the compiled CSS. Result: every <VCFormInput>, <VCButton>, <VCTable>, etc. rendered with only its vc-* default class and zero Tailwind styling — the symptom the user reported ("no css is loaded for tailwind classes"). Add three @source directives covering the npm-workspace layout: - root node_modules (hoisted packages: theme-tailwind, button, core, design, elements, icon, overlays, table) - apps/client-web/node_modules (forms, navigation, pagination, timeago, countdown, list, icons-font-awesome) - packages/client-web-kit/node_modules (forms, list, pagination) Verified: client-web entry.css grew from 150KB → 191KB; server-core UI CSS grew from 142KB → 185KB. Spot-checks confirm .rounded-md, .border-border, .text-fg, .bg-bg, .bg-primary-600, .text-on-primary, .shadow-sm are now in the bundle. Pattern mirrors the canonical vuecs Nuxt example (examples/nuxt/assets/css/tailwind.css uses @source for its theme-tailwind src directory).
…ries Address two structural issues raised in code review: 1. Theme was importing/scanning consumer-app folders (apps/client-web, apps/server-core/ui). That's the wrong direction — the theme is a dependency, it shouldn't know about specific consumers. Move app-template @source declarations into per-app CSS entries. 2. Tailwind v4 doesn't resolve package names in @source (tried @source "@vuecs/forms" — produced 0 emitted utilities, CSS dropped from 184KB to 138KB). Stay with relative paths, but anchor them correctly. Theme (packages/client-web-theme/src/index.css): - Drops @source for apps/client-web and apps/server-core/ui. - Scans only its own dependencies: ../../client-web-kit/src and ../../../node_modules/@vuecs. New per-app CSS entries: - apps/client-web/assets/css/tailwind.css - apps/server-core/ui/src/tailwind.css Each imports the theme, anchors @source to the app's own template tree, and adds the per-app nested @vuecs node_modules (npm workspace hoisting leaves some vuecs packages there). Wired: - apps/client-web/nuxt.config.ts: css array now starts with the new ~/assets/css/tailwind.css instead of @authup/client-web-theme/index.css. - apps/server-core/ui/src/app.ts: imports './tailwind.css' instead of '@authup/client-web-theme/index.css'. Also includes two unrelated fixes in the same theme CSS edit: A. .row / .col-N rewritten from grid (display:grid; grid-template-columns: repeat(12,minmax(0,1fr))) back to flex (display:flex; flex-wrap:wrap; width: N/12). The grid-based shim broke layouts that relied on .row being a flex container with auto-spaced children. col-N now uses Tailwind fractional widths (w-N/12). B. .navbar-expand-md .navbar-nav at md+ adds `!` to the flex-row override. theme-tailwind ships `flex-col` on the navigation root via its element class map (lives in Tailwind's `utilities` layer); the compat rule was in `components`. Layer order makes utilities win regardless of specificity, so the desktop header was stacking vertically (~250px tall instead of ~56px). With `!`, the override sets !important and wins across layers. Verified: server-core UI CSS 184KB, client-web entry CSS 191KB. Both emit .rounded-md, .border-border, .text-fg, .bg-primary-600, .h-4, .w-4, data-state=checked, flex-direction:row at 48rem media query.
Three independent fixes bundled.
1. Replace <VCFormCheckbox :group-class="'form-switch'"> with <VCFormSwitch>
across 5 files (9 sites: AClientForm x3, ARealmMatchPolicyForm x3,
APolicyBasicForm, AIdentityProviderRoleAssignment, clients/[id]/url).
The Bootstrap-era pattern (a checkbox decorated with a `.form-switch`
wrapper class that turned it into a slider) doesn't carry over —
vuecs 1.x ships a dedicated <VCFormSwitch> component with the slider
styling baked into theme-tailwind's `formSwitch` element. Update
imports + components-map registrations to match; drop the now-dead
`group-class="form-switch"` props.
2. Fix buildPagination shim: VCPagination emits `load` with
{ page, offset, limit }, not `update:page`. The previous shim
listened to onUpdate:page which never fires — pagination buttons
rendered but clicks did nothing. Rewire to onLoad and forward
payload.offset into the legacy ctx.load() callback.
3. Add nav-pills + pagination compat-layer styling. Bootstrap's
.nav-pills (used by buildDomainEntityNav for entity sub-nav) and
theme-tailwind's pagination both needed authup-specific tweaks.
nav-pills: joined-tab look (border-radius only on first/last pill,
-1px margin overlap for shared borders), horizontal and vertical
(.flex-column) variants, active state via .active /
.router-link-active / .router-link-exact-active.
vc-pagination: override theme-tailwind's per-button rounded-md to
joined-tab look (only outer buttons get rounded corners). authup
historically used the Bootstrap-joined style; vuecs's default is
each button independently rounded (pill row).
The Python utility-class sweep only touched .vue files, so the lone .ts call site (apps/client-web/composables/domain/enity-nav.ts in buildDomainEntityNav) still pushed the Bootstrap-era 'flex-column' class onto the rendered <ul>. Tailwind has no flex-column utility (the equivalent is flex-col), so the class was inert — entity sub-navigation rendered horizontally even when caller passed direction: 'vertical'. Rename to flex-col, update the matching .nav-pills.flex-col selectors in the theme compat layer, fix the comment.
The LanguageSwitcherDropdown component (rendered inside the page header's
navbar-gadgets) emits Bootstrap-style markup:
<button class="dropdown-toggle">en</button>
<div class="dropdown-menu [show?]">
<button class="dropdown-item">de</button>
<button class="dropdown-item active">en</button>
</div>
The compat layer didn't include any .dropdown-menu / .dropdown-item /
.dropdown-toggle rules. Result: the menu rendered inline below the
toggle (default block flow), stacking the locale buttons vertically
inside the header — the page-header was ~100px+ tall even though
the visible content didn't fill it.
Add minimal Bootstrap-compat rules:
- .dropdown-menu: absolute, z-50, hidden by default (load-bearing),
shows with .show via the toggle click handler.
- .dropdown-item: block, full-width, hover bg-muted; .active gets
primary background.
- .dropdown-toggle: cursor-pointer.
Built CSS spot-check: 2 .dropdown-menu rules (base + .show), 4
.dropdown-item rules, 1 .dropdown-toggle, 1 .dropdown-item.active.
The sidebar uses <VCNavItems>, which renders `.vc-nav-link` (vuecs prefix) — not Bootstrap's `.nav-link`. The post-Tailwind padding override only targeted `.nav-link`, so sidebar items lost the previous 1rem vertical padding (regressed to theme-tailwind's default `py-2`). Cover both selectors. The legacy "API Docs" anchor at the bottom of the sidebar still uses plain `.nav-link`, so keep that branch too.
Tailwind v4 preflight resets every heading to inherit font-size / font-weight, so h1/h2/h3 rendered at body size — visually indistinguishable. Add a `@layer base` block that maps h1->text-4xl, h2->text-3xl, h3->text-2xl, h4->text-xl, h5->text-lg, h6->text-base. Font-family (Asap) + bold weight come from apps/client-web/assets/css/root.css.
The flex-col override used rounded-t-md + rounded-l-none. The horizontal rule already sets rounded-l-md on the first pill (which the user gets regardless of orientation); applying rounded-l-none then zeros out the top-left corner as well as the bottom-left. Visible symptom: every corner was rounded except top-left. Use per-corner utilities (rounded-tr-md + rounded-bl-none for the first pill; rounded-tr-none + rounded-bl-md for the last) to surgically cancel only the offending bottom-left (first) / top-right (last) without dropping top-left. Verified in built CSS: - first-child in flex-col: top-left=md (kept), top-right=md (added), bottom-left=0 (overridden), bottom-right=0 (default) - last-child in flex-col: top-left=0 (default), top-right=0 (overridden), bottom-left=md (added), bottom-right=md (kept)
<VCPagination> is `inline-flex`, so it aligns to the start of its parent. Every entity-collection footer in client-web rendered the pagination flush left. Wrap the shim's output in a `flex justify-center` div so all call sites get centered pagination without touching them individually.
theme-tailwind's default formGroup root is `flex flex-col gap-1` — gap between label/input/hint inside one group, but no bottom margin between consecutive groups. Authup's entity forms stack 5-10 form groups and they were rendering flush against each other (no breathing room top or bottom). Override formGroup.classes.root with `mb-3` in authupTheme. The theme manager merges with the base (twMerge dedups conflicts), so the final class becomes `flex flex-col gap-1 mb-3` per form group. This is the first non-pass-through use of authupTheme — sets the pattern for future per-element overrides.
… form sites
The earlier VCFormCheckbox->VCFormSwitch swap only touched .vue
templates. Render-function builder call sites in IdentityProvider +
User forms still called buildFormCheckbox({ groupClass: 'form-switch' }),
which renders <VCFormCheckbox> (no slider) with a now-dead form-switch
class on the wrapper.
Add buildFormSwitch — same shape as buildFormCheckbox but renders
<VCFormSwitch>. Migrate the 4 switch-intent call sites:
- AIdentityProviderBasicFields ('Enabled?' toggle)
- AIdentityProviderLdapConnectionFields ('Enable StartTLS process?')
- AUserForm x2 (name-lock + active toggles)
Leave AUserPasswordForm's 'show password' as buildFormCheckbox — it's
a genuine checkbox, not a switch.
Three small UI cleanups. 1. .row compat now applies gap-4 between cols. The grid->flex refactor dropped gutters; row > col elements rendered flush against each other. 2. ATable: VCTableHeadCell takes an `align` prop that feeds the theme's alignment variant. theme-tailwind's tableHeadCell root bakes `text-left` into the class string, so a column passing `headerClass: 'text-center'` was losing — Vue's mergeProps concatenates without conflict resolution, and Tailwind's emit order put text-left later in the cascade. ATable now sniffs the legacy headerClass for text-center/text-right/text-left/text-start/ text-end and forwards as :align. 3. Remove standalone <hr/> elements from entity forms (AClientForm, clients/[id]/url page). They visually fragmented the form layout without adding meaningful separation now that form-groups have their own mb-3 spacing.
The earlier hr cleanup only covered <hr> in .vue templates. Five
render-function entity forms still emitted h('hr') separators:
- AUserForm
- ARobotForm
- AIdentityProviderForm
- AIdentityProviderLdapForm (2 sites)
- AIdentityProviderOAuth2Form (2 sites)
Now that form-groups carry their own mb-3 spacing (theme override on
formGroup.classes.root), the hr lines visually fragmented the form
without adding structure.
@vuecs/core's mergeClasses REPLACES override values by default; the
only way to ADD to the base is to wrap the value in extend(). The
previous `root: 'mb-3'` override dropped theme-tailwind's
`flex flex-col gap-1`, which is what kept the label, control, and hint
stacked vertically inside one form group. Without it, label + control
rendered inline (e.g. "StartTLS <switch>" on one line in the LDAP
identity-provider form).
Wrap the override in extend('mb-3'). vuecs's mergeFn (twMerge) then
concatenates base + override: `flex flex-col gap-1 mb-3` — vertical
stacking preserved, bottom margin added between groups.
mb-3 (12px) was only 3x larger than the intra-group gap-1 (4px). The trailing hint visually drifted between groups — readers couldn't tell whether 'Something users will recognize and trust' belonged to the field above or the next field down. Bump to mb-6 (24px) for a 6x ratio. Hint now reads as part of its own group; next form group is clearly separated.
Two related fixes for hint placement / styling. 1. Tailwind JIT wasn't scanning the theme package's own src directory. Class strings declared inside authupTheme() (like the 'mb-6' on formGroup.classes.root via extend()) were never picked up — the element got the .mb-6 class but no .mb-6 CSS rule was emitted. Add @source "." to packages/client-web-theme/src/index.css so the theme's own src is in the scan path. 2. AClientForm.vue rendered hints as <small> elements OUTSIDE the <VCFormGroup>, so they sat in the inter-group gap with no relationship to their field. Move them into the group's `#hint` slot (VCFormGroup's render order is label / default / validation / hint, so hints now stack inside the group with gap-1 spacing). Three sites: nameHint, redirectURIHint, descriptionHint. AFormInputList gained a #hint slot at the bottom so the redirectURIHint can pass through it.
Now that hints live inside the form group (via the #hint slot), the trailing gap doesn't need to be visually large anymore — mb-3 reads fine again.
The shim was passing groupClass as `class`, which Vue's mergeProps concatenated onto the inner SwitchRoot (the button), not the outer wrapper div. With `mt-3` on the button, the button sat 12px below the label inside the wrapper's items-center — visibly misaligned. Route groupClass to themeClass.group, which targets the theme's `group` slot (the wrapper). Keep `class` for the switch root itself. Visible only on the identity-provider basic form's 'Enabled?' switch (only call site using groupClass on a naked buildFormSwitch). The connection-form switch lives inside a FormGroup with no groupClass so wasn't affected.
vuecs's applyOverrides REPLACES the targeted slot's classes unless the value is wrapped in extend(). My previous fix routed groupClass to themeClass.group but left it as a raw string — which obliterated theme-tailwind's `inline-flex items-center gap-2` on the wrapper. The visible symptom was the identity-provider basic form's 'Enabled?' switch collapsing flush against its label (no gap, no items-center alignment). The connection-form switch was fine because it doesn't pass groupClass. Wrap in extend() so the merge function concatenates: the wrapper class becomes `inline-flex items-center gap-2 mt-3`.
.row had `gap-4` (16px) which, combined with .col-7 + .col-5 (totaling 100% width), pushed the total past the row's width and forced wrap onto two lines. Visible symptom: AUserForm + AUserPasswordForm stacked vertically on users/[id] instead of side-by-side. Replace with Bootstrap 5's --bs-gutter-x pattern: negative inline margins on the row offset px-3 padding inside each col. With box-sizing: border-box, the col widths stay exact (w-N/12) while the interior padding carves out the gutter. Two adjacent cols get 24px combined breathing room (each col's px-3 = 12px), and the row's -0.75rem margins cancel the outermost cols' padding so the layout aligns flush with its parent.
Two related two-up-form fixes on users/[id]: 1. AUserPasswordForm rendered its form as a plain <form> with raw VNode children. buildFormCheckbox + buildFormSubmitWithTranslations both produce inline-flex elements, so the show-password toggle and the submit button sat on the same line. Add `flex flex-col gap-3` to the form and wrap the inline children in block divs so they stack. 2. .row gutter was 24px (px-3 + matching negative row margin). With the user basic form (col-7) sitting next to the password form (col-5), the inter-form gap looked too wide. Tighten to px-2 (16px combined gap, -0.5rem row margin offset). Keeps Bootstrap's pattern, just at a slightly tighter scale that suits authup's two-up forms better.
Was buildFormCheckbox + groupClass:'my-3'. Switch is the right control for a binary visibility toggle. Drop my-3 — the form's flex-col gap-3 now owns inter-row spacing.
The internal grid that lays out leftColumn + rightColumn inside AUserForm carried a 16px gap that visually doubled with the outer .row gutter, making the user-basic-form columns look further apart than the user-basic-vs-password split outside. Tighten to 8px for consistency.
The grid always rendered `md:grid-cols-2`, but the right column only populates when canManage && !isRealmLocked. With an empty right side (self-edit / locked-realm cases) the form inputs were squashed into half the available width because the empty grid track still claimed its share. Compute layout class from the actual right-column content. When empty, drop the grid entirely so leftColumn expands to full width.
The hyperscript form rendered VCFormSwitch via the buildFormSwitch shim, which threaded `value`/`onChange` through into modelValue+ 'onUpdate:modelValue' on the SFC root. Something in that chain wasn't propagating the toggle — clicking 'Password show' didn't flip passwordShow.value. Move to a real SFC. The switch now uses native v-model="passwordShow" which Vue runtime wires directly to modelValue/update:modelValue emit, removing the shim closure that may have been holding stale callbacks. Same surface (props, emits) so callers don't change. This is the proof-of-concept for the broader 'migrate forms from hyperscript builders to SFC templates' direction.
When passing label content via the #label slot (vs. labelContent prop), the consumer is responsible for rendering <label for=id> — VCFormSwitch passes { id, class } to the slot but doesn't wrap it. Without the wrapping label, clicking the text did nothing. IdentityProvider's switch worked because it uses labelContent (string prop), which the component wraps automatically.
…on) as SFCs Convert four single-entity forms from hyperscript builder VNodes to native <template> SFCs. Same exports / props / emits; the only externally visible difference is the loss of the buildFormGroup / buildFormInput / buildFormTextarea / buildFormSubmit shim chain. Each form: - Reads from useVuelidate and exposes the validation accessor as `vuelidate` on the setup return. - Wraps each field in <IVuelidate><VCFormGroup>...</VCFormGroup> matching the AClientForm.vue pattern. - Uses v-model on VCFormInput / VCFormTextarea / VCFormSelect for reactive binding (no more shim closure with stale onChange). - Submit via <AFormSubmit @submit="submit"/>. - Generate-name button and realm-picker fallback rendered with proper template conditionals. Forms migrated: ARealmForm, ARoleForm, AScopeForm, APermissionForm.
Convert the two-column entity forms (robot + user) from hyperscript to native SFCs. Both followed the same shape: a .row > .col left side for the form fields and an optional .col right side for the realm picker (ARealms with #itemActions slot). - ARobotForm.vue: id (read-only), name, display-name, secret (with hashed indicator), generate-secret button, submit; realm picker on the right when not realm-locked. - AUserForm.vue: name (cascades fake-email update), display-name, email, two VCFormSwitch toggles (active, name_locked) inside a nested .row when canManage; submit; realm picker on the right when canManage && !realmLocked. Both inline the renderToggleButton markup as native template syntax in the #itemActions slot — same visual contract, no shim call. VCFormSwitch uses native v-model with a slot-rendered <label for=id> so clicking the text toggles state (matches the IdentityProvider basic form behavior).
Final batch of the hyperscript->SFC migration. 9 files: Sub-field components (each is a column of fields bound to a child vuelidate via \$registerAs): - AIdentityProviderBasicFields (name, displayName, enabled switch) - AIdentityProviderLdapConnectionFields (URL, timeout, StartTLS, base DN) - AIdentityProviderLdapCredentialsFields (user, password) - AIdentityProviderLdapUserFields (5 user-mapping fields) - AIdentityProviderLdapGroupFields (6 group-mapping fields) - AIdentityProviderOAuth2ClientFields (client_id, client_secret) - AIdentityProviderOAuth2Discovery (URL + lookup button) Composite wrappers (combine sub-fields and submit): - AIdentityProviderLdapForm (2x2 grid + connection row) - AIdentityProviderOAuth2Form (basic + security row, optional endpoints) - AIdentityProviderForm (top-level picker + protocol-specific subform) All use native v-model on form controls, IVuelidate for validation display, and AFormSubmit for the submit button. The setup.expose hook on Basic carries the imperative 'assign' API needed by OAuth2's preset/protocol cascade. This completes the 14-form bulk migration started two batches ago. The hyperscript form builders (buildFormGroup/Input/Textarea/Submit) are no longer used in any entity form — only the legacy ARealms + some non-form helpers still need rewriting later.
1. AIdentityProviderForm.vue: localEntity wasn't syncing from props. Original used `toRef(props,'entity')` with side-effect mutation; my replacement initialized at mount only. Add an explicit watcher so parent-driven entity updates (e.g. load-after-mount) propagate to the rendered child form — otherwise edit-mode forms got `entity=undefined` and reverted to create mode. 2. buildFormCheckbox shim: mirror the buildFormSwitch fix — route groupClass to themeClass.group via extend() instead of class. The previous `class: input.class ?? input.groupClass` puts the class on the checkbox root via mergeProps, which offsets the checkbox from the label inside items-center. Dormant today (all live callers migrated), but defense in depth. 3. .is-valid compat rule. AIdentityProviderOAuth2Discovery uses the Bootstrap-era `.is-valid` to confirm a successful discovery URL lookup. Add a Tailwind-compat rule (border + ring on success) so the visual cue isn't lost. 4. AToggleButton.vue: extract the realm-picker toggle-button markup that was duplicated inline in ARobotForm + AUserForm. ~10-line tristate button (busy/add/remove); both forms now render a single <AToggleButton @Changed="...">. Doesn't touch the existing renderToggleButton render-function helper used by APolicyParentAssignment + entity/picker (those still need the render-fn API).
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 43 minutes and 46 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, 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 trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughReplaces Bootstrap-based theming with Tailwind v4 using new Authup themes, wires Tailwind into Nuxt/Vite, updates the vuecs plugin and form builders, migrates many entity forms to Vue SFCs, adds utility components, and sweeps templates/styles to Tailwind classes. ChangesTailwind v4 theming and SFC component migration
Estimated code review effort Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
|
The embedded consent UI's CSS imports were a strict subset of the
client-web Nuxt CSS array (root + form + generics only). The omitted
files (vue-layout-navigation.css, core/{header,navbar,body,sidebar,
footer}.css, domain.css, card.css) carry shared utility classes and
chrome rules; importing them gives the consent UI the same baseline
look as the main app.
Same for the vuecs install: client-web wires
`defaults.submitButton: buildSubmitButtonDefaults()` so
`useSubmitButton()` resolves locale-reactive labels. server-core/ui
was missing this — submit buttons rendered with the vuecs raw
defaults instead of the translator-driven 'Create' / 'Update' /
busy-spinner copy.
Match the Nuxt plugin's setup verbatim (modulo path differences
between Nuxt's `@/assets/css/*` and the relative `../../../` paths
from server-core/ui).
There was a problem hiding this comment.
Pull request overview
This PR migrates Authup’s web UI stack from Bootstrap 5 / @vuecs/theme-bootstrap to Tailwind v4 / @vuecs/theme-tailwind, introducing a new @authup/client-web-theme package to centralize theme composition + CSS entrypoints, and modernizing a large set of entity forms from render-function builders to SFC templates.
Changes:
- Added
@authup/client-web-themeand wired Tailwind v4 via@tailwindcss/vitefor bothapps/client-web(Nuxt) andapps/server-core/ui(SSR). - Updated
client-web-kitform infrastructure: submit-button defaults via vuecs DefaultsManager, fixed pagination event wiring, and added abuildFormSwitch()shim. - Swept many Vue templates away from Bootstrap utility classes toward Tailwind equivalents; extracted
AToggleButtonfor repeated picker toggle UI.
Reviewed changes
Copilot reviewed 110 out of 112 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Adds TS path alias for the new @authup/client-web-theme package. |
| packages/client-web-theme/tsdown.config.ts | Build config for the new theme package (ESM output). |
| packages/client-web-theme/tsconfig.json | Theme package TS config extending repo defaults. |
| packages/client-web-theme/tsconfig.build.json | Build TS config emitting declarations to dist/. |
| packages/client-web-theme/src/index.ts | Implements authupTheme() composing tailwindTheme() + element overrides. |
| packages/client-web-theme/README.md | Documents installation and usage of the new theme package. |
| packages/client-web-theme/package.json | Defines exports (JS + CSS entry), deps/peers, build scripts. |
| packages/client-web-kit/src/core/form/submit.ts | Deprecates translation helper/shim in favor of DefaultsManager-based labels. |
| packages/client-web-kit/src/core/form/index.ts | Re-exports new form defaults module. |
| packages/client-web-kit/src/core/form/defaults.ts | Adds buildSubmitButtonDefaults() wiring submit labels/icons to translator. |
| packages/client-web-kit/src/core/form/builders.ts | Adds buildFormSwitch(), fixes checkbox groupClass merge, updates submit-button wiring via useSubmitButton(). |
| packages/client-web-kit/src/components/workflows/Login.vue | Swaps Bootstrap utility classes for Tailwind equivalents in login workflow UI. |
| packages/client-web-kit/src/components/workflows/authorize/AuthorizeText.vue | Utility-class migration for authorize workflow text screen. |
| packages/client-web-kit/src/components/workflows/authorize/AuthorizeScopes.vue | Utility-class migration for scopes list layout. |
| packages/client-web-kit/src/components/workflows/authorize/AuthorizeScope.vue | Updates status colors to Tailwind semantic palette. |
| packages/client-web-kit/src/components/workflows/authorize/AuthorizeForm.vue | Utility-class and button layout migration for consent form. |
| packages/client-web-kit/src/components/workflows/authorize/Authorize.vue | Updates wrapper layout from Bootstrap flex helpers to Tailwind. |
| packages/client-web-kit/src/components/utility/pagination/module.ts | Fixes pagination event handling + centers pagination via wrapper. |
| packages/client-web-kit/src/components/utility/index.ts | Exports new AToggleButton component. |
| packages/client-web-kit/src/components/utility/form-input-list/AFormInputList.vue | Migrates layout utilities and adds hint slot passthrough. |
| packages/client-web-kit/src/components/utility/AToggleButton.vue | Adds reusable tri-state toggle button component. |
| packages/client-web-kit/src/components/utility/ATable.vue | Derives and forwards align prop to prevent header alignment conflicts under Tailwind. |
| packages/client-web-kit/src/components/entities/user/index.ts | Updates user form exports to point to .vue SFCs. |
| packages/client-web-kit/src/components/entities/user/AUserPasswordForm.vue | Rewrites user password form as SFC using vuecs form components + switch label slot. |
| packages/client-web-kit/src/components/entities/user/AUserPasswordForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/user/AUserForm.ts | Removes legacy render-function implementation (replaced by SFC). |
| packages/client-web-kit/src/components/entities/user-permission/AUserPermissionAssignment.vue | Switches layout helpers to Tailwind + uses AToggleButton. |
| packages/client-web-kit/src/components/entities/scope/index.ts | Updates scope form export to .vue SFC. |
| packages/client-web-kit/src/components/entities/scope/AScopeForm.vue | Rewrites scope form as SFC using VCFormGroup + IVuelidate. |
| packages/client-web-kit/src/components/entities/scope/AScopeForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/role/index.ts | Updates role form export to .vue SFC. |
| packages/client-web-kit/src/components/entities/role/ARoleForm.vue | Rewrites role form as SFC using VCFormGroup + IVuelidate. |
| packages/client-web-kit/src/components/entities/role/ARoleForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/role-permission/ARolePermissionAssignment.vue | Switches layout helpers to Tailwind + uses AToggleButton. |
| packages/client-web-kit/src/components/entities/robot/index.ts | Updates robot form export to .vue SFC. |
| packages/client-web-kit/src/components/entities/robot/ARobotForm.vue | Rewrites robot form as SFC; uses realm picker + extracted toggle button. |
| packages/client-web-kit/src/components/entities/robot/ARobotForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/robot-permission/ARobotPermissionAssignment.vue | Switches layout helpers to Tailwind + uses AToggleButton. |
| packages/client-web-kit/src/components/entities/realm/index.ts | Updates realm form export to .vue SFC. |
| packages/client-web-kit/src/components/entities/realm/ARealmForm.vue | Rewrites realm form as SFC; generates realm name on create. |
| packages/client-web-kit/src/components/entities/realm/ARealmForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/policy/realm-match/ARealmMatchPolicyForm.vue | Migrates checkbox toggles to VCFormSwitch. |
| packages/client-web-kit/src/components/entities/policy/APolicyTypePicker.vue | Utility-class migration for policy type picker layout. |
| packages/client-web-kit/src/components/entities/policy/APolicyTypeBadge.vue | Updates badge color class to Tailwind semantic palette. |
| packages/client-web-kit/src/components/entities/policy/APolicySummary.vue | Utility-class migration and badge color updates. |
| packages/client-web-kit/src/components/entities/policy/APolicyInlineInfo.vue | Updates inverted badge color class. |
| packages/client-web-kit/src/components/entities/policy/APolicyForm.vue | Utility-class migration for policy form wrapper. |
| packages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vue | Migrates checkbox toggle to VCFormSwitch. |
| packages/client-web-kit/src/components/entities/permission/index.ts | Updates permission form export to .vue SFC. |
| packages/client-web-kit/src/components/entities/permission/APermissionForm.ts | Removes legacy render-function implementation (replaced by SFC elsewhere in PR). |
| packages/client-web-kit/src/components/entities/permission-policy/APermissionPolicyAssignments.vue | Replaces d-block with Tailwind block in modal display. |
| packages/client-web-kit/src/components/entities/identity-provider/index.ts | Updates identity-provider form exports to .vue SFCs. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderPicker.vue | Utility-class migration for identity-provider picker UI. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.vue | Rewrites OAuth2 identity-provider form as SFC. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2EndpointFields.vue | Updates discovery component import to .vue SFC. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.vue | Adds SFC-based OAuth2/OIDC discovery lookup component. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.vue | Adds SFC-based OAuth2 client credential fields. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.vue | Adds SFC-based LDAP user attribute fields. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.vue | Adds SFC-based LDAP group attribute fields. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.vue | Adds SFC-based LDAP identity-provider form wrapper. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.vue | Adds SFC-based LDAP credential fields. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.vue | Adds SFC-based LDAP connection fields (including StartTLS switch). |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.vue | Rewrites top-level identity-provider form with localEntity syncing + picker routing. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderBasicFields.vue | Adds SFC-based shared “basic fields” sub-form with exposed assign(). |
| packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderBasicFields.ts | Removes legacy render-function implementation. |
| packages/client-web-kit/src/components/entities/identity-provider-role/AIdentityProviderRoleAssignment.vue | Migrates role-mapping UI to Tailwind utilities + switches. |
| packages/client-web-kit/src/components/entities/client/AClientForm.vue | Moves hint text into VCFormGroup hint slots and migrates switches/colors. |
| packages/client-web-kit/src/components/entities/client-permission/AClientPermissionAssignment.vue | Switches layout helpers to Tailwind + uses AToggleButton. |
| apps/server-core/ui/vite.config.ts | Adds Tailwind v4 Vite plugin + theme alias for embedded SSR UI build. |
| apps/server-core/ui/src/tailwind.css | Adds Tailwind entrypoint importing @authup/client-web-theme + @source scopes. |
| apps/server-core/ui/src/app.ts | Switches SSR consent UI from bootstrap theme to authupTheme() + Tailwind CSS entry. |
| apps/server-core/package.json | Adds Tailwind v4 deps and theme package; drops Bootstrap theme deps. |
| apps/client-web/plugins/vuecs.ts | Installs authupTheme() and wires submit-button defaults into vuecs DefaultsManager. |
| apps/client-web/pages/users/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/settings/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/scopes/index/index.vue | Updates status icon colors to Tailwind semantic palette. |
| apps/client-web/pages/scopes/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/roles/index/index.vue | Updates status icon colors to Tailwind semantic palette. |
| apps/client-web/pages/roles/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/robots/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/realms/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/policies/index/add.vue | Utility-class migration for add-policy picker flow. |
| apps/client-web/pages/policies/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/permissions/index/index.vue | Updates status icon colors to Tailwind semantic palette. |
| apps/client-web/pages/permissions/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/identity-providers/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/clients/index/index.vue | Updates status icon colors to Tailwind semantic palette. |
| apps/client-web/pages/clients/index.vue | Utility-class migration in sidebar layout wrapper. |
| apps/client-web/pages/clients/[id]/url.vue | Migrates scope toggles from checkbox to switch and removes extra separators. |
| apps/client-web/package.json | Adds Tailwind v4 deps and theme package; drops Bootstrap theme deps. |
| apps/client-web/nuxt.config.ts | Adds Tailwind v4 Vite plugin + switches CSS entry to app Tailwind entrypoint. |
| apps/client-web/composables/domain/enity-nav.ts | Utility-class migration (flex-column → flex-col). |
| apps/client-web/components/sidebar.vue | Migrates sidebar nav layout classes and status color to Tailwind palette. |
| apps/client-web/assets/css/vue-toastification.css | Removes Bootstrap-specific toastification overrides. |
| apps/client-web/assets/css/vue-layout-navigation.css | Restores sidebar nav link padding via .vc-nav-link/.nav-link rules. |
| apps/client-web/assets/css/tailwind.css | Adds Tailwind entrypoint importing theme + @source scopes for Nuxt app. |
| apps/client-web/assets/css/bootstrap-override.css | Removes Bootstrap override CSS (replaced by theme + compat layer). |
| .agents/structure.md | Updates internal agent docs to reflect Tailwind/theme-tailwind stack. |
| .agents/architecture.md | Documents Tailwind v4 migration approach, compat layer, scanning strategy. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…themes Restructures the theme package into two: - @authup/client-web-kit-theme (new) — kit-level concerns. Composes @vuecs/theme-tailwind, declares formGroup.classes.root mb-3 via extend(), bundles the kit-component stylesheets (list / pagination styles, form-validation states). Scans @authup/client-web-kit/src and root node_modules/@vuecs. - @authup/client-web-theme (existing, refactored) — app-level layer. Empty elements override today (extension point), heading-size scale in @layer base, Bootstrap-compat shims in @layer components, plus every authup-owned project stylesheet (root / navigation / core chrome / card / generics). Both themes are registered side-by-side; vuecs's mergeThemes flattens the chain so the runtime layout is identical to the previous single- theme setup: themes: [clientWebKitTheme(), clientWebTheme()], The app-level stylesheets that used to live under apps/client-web/assets/css/ (root.css, vue-layout-navigation.css, core/{header,navbar,body,sidebar,footer}.css, card.css, generics.css) moved into packages/client-web-theme/src/styles/. The kit-targeted ones (domain.css → list.css, form.css → form-validation.css) moved into packages/client-web-kit-theme/src/styles/. Result: apps/client-web/assets/css/ now holds only tailwind.css (the app-local Tailwind v4 entry with @source directives for the app's templates + per-app nested vuecs deps). The Nuxt css array shrank from 16 entries to 3 (tailwind.css + kit dist + Font Awesome); the server-core/ui/src/app.ts dropped 11 relative-path imports. Server-core's consent UI now inherits the same CSS cascade as the main app for free — both apps just consume the two theme packages.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Five PR-review findings from Copilot, all real: 1. AIdentityProviderOAuth2Discovery: `busy` was only set to false in the finally block — never to true at the start of lookup(). The `if (busy.value || ...) return` guard was inert and the disabled computation never reflected the in-flight request. Set busy=true at the top of lookup(), clear message + lookupValid alongside, and include busy in isDisabled. 2. ARobotForm: hashed-secret label used Bootstrap `text-danger` + `font-weight-bold` — neither exists in theme-tailwind / compat layer. Switch to `text-error-600 font-bold`. 3. AUserForm 'active' switch: Bootstrap `text-success` / `text-danger` → semantic `text-success-600` / `text-error-600`. 4. AUserForm 'name_locked' switch: Bootstrap `text-success` / `text-warning` → semantic `text-success-600` / `text-warning-600`. 5. AClientForm hashed-secret indicator: Bootstrap `font-weight-bold` (already had `text-error-600`) → `font-bold`.
c93eb58 to
35cc803
Compare
There was a problem hiding this comment.
Actionable comments posted: 19
♻️ Duplicate comments (3)
packages/client-web-kit/src/components/entities/scope/AScopeForm.vue (1)
58-58:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winVerify busy state handling.
The
busyref is defined but never mutated, identical to other forms. Please verify the manager's busy state handling.Also applies to: 133-139
🤖 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/entities/scope/AScopeForm.vue` at line 58, The busy ref (const busy = ref(false)) in AScopeForm.vue is declared but never updated; update the form to set busy.value = true before any async manager operations and set busy.value = false in finally blocks so the UI reflects in-flight state, or remove the local busy ref and delegate to the manager's busy flag if the manager already exposes and controls busy state (e.g., use manager.busy or the manager's start/stop methods inside submit/initialize functions referenced in this component); ensure the same fix is applied to the other similar block referenced (the form logic around the submit/init handlers).packages/client-web-kit/src/components/entities/role/ARoleForm.vue (1)
57-57:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winVerify busy state handling.
The
busyref is defined but never mutated, identical to the pattern in other forms. Please verify the manager's busy state handling.Also applies to: 120-126
🤖 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/entities/role/ARoleForm.vue` at line 57, The busy ref (const busy = ref(false)) is declared but never updated; either remove it and use the manager's busy state or update it around async operations—set busy.value = true before calling the manager save/submit method (e.g., when invoking manager.save or onSubmit) and set busy.value = false in both success and error paths (finally), or replace it with a computed that returns manager.busy; apply the same fix for the identical pattern around lines 120-126 so the form's UI reflects the manager's actual busy state.packages/client-web-kit/src/components/entities/realm/ARealmForm.vue (1)
55-55:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winVerify busy state handling.
The
busyref is defined but never mutated in the submit handler, identical to the pattern in APermissionForm. Please verify whether the manager handles busy state internally or if this is incomplete.See verification script in APermissionForm review.
Also applies to: 115-121
🤖 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/entities/realm/ARealmForm.vue` at line 55, The busy ref (const busy = ref(false)) is declared but never updated in the component submit flow; either remove it if the manager already exposes and drives a busy state, or update the submit handler (the method that performs the async create/update via the manager) to set busy.value = true at start and busy.value = false in finally (and also on error), mirroring APermissionForm's correct pattern; search for the component's submit handler and any manager call (e.g., manager.create/update or onSubmit) and wrap the async operation with busy state updates, or delete the unused busy ref if verification shows the manager handles it internally (also apply the same fix for the other occurrence around lines 115-121).
🧹 Nitpick comments (1)
packages/client-web-kit/src/components/entities/permission/APermissionForm.vue (1)
104-104: ⚡ Quick winConsider requiring realm_id when the picker is shown.
The
realm_idfield has empty validation rules{}, but the realm picker is conditionally rendered when!realmId && !isEditing. When the picker is shown, it seems the user should select a realm. Shouldrealm_idhave arequiredvalidator in this context?Also applies to: 262-282
🤖 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/entities/permission/APermissionForm.vue` at line 104, The realm_id validation is empty but the realm picker is shown when !realmId && !isEditing, so add a required validator for realm_id (or a conditional validator function) so the form enforces selection when the picker is visible; update the validation rules for realm_id in APermissionForm.vue (the validation rules object that contains realm_id) to either include a required rule or a function that returns an error when realmId is falsy and isEditing is false, and ensure the same change is applied in the other validation block referenced (lines ~262-282) to keep behavior consistent.
🤖 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 @.agents/architecture.md:
- Around line 850-910: The "Tailwind v4 migration" section is missing critical
breaking-change notes; add a short subsection (insert after the "`@source`
scanning" bullet inside the "Tailwind v4 migration" header) titled something
like "Tailwind v4 breaking changes" that enumerates the required edits
developers must make: important modifier moves to the suffix form (e.g.,
text-3xl!), opacity utilities removed in favor of slash syntax (bg-blue-500/20),
CSS variable usage requires parentheses (bg-(--brand-color)), outline-none no
longer fully removes outlines (use outline-hidden to fully remove), default ring
width is now 1px (use ring-3 to restore old behavior), and the new browser
minimums (Chrome 111+, Safari 16.4+, Firefox 128+); reference the existing
section headings "Tailwind v4 migration" and the "`@source`" scanning bullet so
the maintainer can place the new subsection correctly.
In `@packages/client-web-kit-theme/src/index.css`:
- Around line 36-38: The `@source` directives in src/index.css are using relative
paths that point at package src/ folders and a specific node_modules layout
(e.g. the lines "`@source` \"../../client-web-kit/src\";" and "`@source`
\"../../../node_modules/@vuecs\";"), which breaks for npm consumers because only
dist is published and node_modules layout may vary; update the `@source` entries
to point to the published package artifacts instead (reference the published
dist entry for `@authup/client-web-kit` such as its dist/ bundle) and reference
`@vuecs` via the package name (package-root) rather than a relative node_modules
path so Tailwind will scan the distributed files in consumer projects.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.vue`:
- Line 32: The wrapper component declares emits: ['created', 'deleted',
'updated', 'failed'] but never re-emits 'deleted' and 'failed' when its child
form components emit them; update the AIdentityProviderForm.vue template where
child forms are mounted (also around the block at lines ~107-123) to listen for
the child events and forward them via this.$emit('deleted', payload) and
this.$emit('failed', payload) (or using the setup/context.emit in composition
API) so the wrapper preserves the declared event contract.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.vue`:
- Around line 58-63: The onTimeoutChange handler currently leaves the previous
numeric timeout when the input is cleared or becomes invalid; update
onTimeoutChange to detect empty or non-numeric input (e.g., input.trim() === ''
or Number.isNaN(parsed)) and explicitly set $v.value.timeout.$model to null (or
another sentinel representing "no value") in that branch, otherwise parse and
set the integer as before to avoid submitting a stale timeout; reference the
onTimeoutChange function and $v.value.timeout.$model when making this change.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.vue`:
- Line 77: The password field currently renders as plain text; update the
VCFormInput instance bound to vuelidate.password.$model so it renders as a
password input (e.g., add type="password" on the VCFormInput component and
consider adding autocomplete="current-password" or "new-password" as
appropriate). Ensure you edit the VCFormInput usage that has
v-model="vuelidate.password.$model" so it passes the password input type and any
desired accessibility/autocomplete attributes.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.vue`:
- Around line 60-61: The local busy ref is never tied to the manager's busy flag
so the form remains clickable during async saves; change the declaration to
derive busy from manager.busy (e.g., replace const busy = ref(false) with a
computed/getter that returns manager.busy or sync it via watch) and update the
submit handler (the form submit/save method used in this component) to
early-return if manager.busy is true, then set manager.busy = true before
awaiting the async save and finally set manager.busy = false in a finally block
to prevent re-entrant submissions; apply the same pattern to the other
submit/save blocks referenced around lines 63–78 and 147–149.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.vue`:
- Around line 71-81: The Client Secret field currently binds to
vuelidate.client_secret.$model using VCFormInput and exposes the secret as plain
text; change the VCFormInput used for the client_secret field (the instance
inside the IVuelidate block that binds to vuelidate.client_secret.$model) to
render a password input by setting its input type to "password" (or the
equivalent prop supported by VCFormInput) so the value is masked during entry.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.vue`:
- Around line 39-59: The lookup function never sets busy.value = true so the
guard at the top is ineffective, and non-OpenID responses are silently ignored;
update the lookup function to set busy.value = true immediately after entering
(before the await), and after receiving response from apiClient.get(form.url)
check isOpenIDProviderMetadata(response.data) and if false set lookupValid.value
= false, set an explanatory message.value (e.g. "Invalid discovery document"),
and call setup.emit('failed', new Error(...)) so invalid responses are surfaced;
keep the existing catch/finally behavior to reset busy.value and reuse symbols:
lookup, busy, lookupValid, message, apiClient.get, isOpenIDProviderMetadata, and
setup.emit('failed').
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.vue`:
- Around line 84-85: The busy ref is never toggled during the form submit, so
concurrent clicks can trigger duplicate createOrUpdate calls; update the submit
handler (the function passed to AFormSubmit) to early-return if busy.value is
true, set busy.value = true at the start, await the createOrUpdate call, and set
busy.value = false in a finally block (also ensure errors are
propagated/handled) so AFormSubmit sees the lifecycle; apply the same guard to
any other submit/update handlers that call createOrUpdate.
- Around line 95-107: The watcher on presetEff in onChange currently overwrites
name/slug even when editing an existing provider; update the handler to skip
assigning preset values when editing by guarding with the entity load state
(e.g., check manager.data or an isEditing flag) or only assign when the current
basicFieldsRef.value.name/slug are empty; modify the onChange callback around
basicFieldsRef.value.assign(...) to return early if manager.data exists (edit
mode) or if name/slug are already present, so presets only populate fields for
new providers.
In
`@packages/client-web-kit/src/components/entities/permission/APermissionForm.vue`:
- Line 73: APermissionForm.vue defines a local const busy = ref(false) and
passes it to <AFormSubmit> but never toggles it; remove the local busy and
instead pass the entity manager's busy (manager.busy.value) into AFormSubmit (or
simply pass manager.busy directly if buildFormSubmit expects a ref) so the
submit button reflects the manager's createOrUpdate lifecycle; additionally
update the Vuelidate rules for realm_id (currently realm_id: {}) to include a
conditional required validator that runs when the realm picker is shown (i.e.
when !realmId && !isEditing) so realm selection is validated in create mode.
In `@packages/client-web-kit/src/components/entities/robot/ARobotForm.vue`:
- Around line 56-57: The submit flow doesn't use the busy ref to prevent
duplicate submissions; update the submit() function (and any similar handlers
around the create/update logic) to first check if busy.value is true and return
early, then set busy.value = true before awaiting create/update and ensure
busy.value = false in a finally block so it is always cleared after the request;
reference the busy ref and the submit/create/update functions to locate and
modify the gating logic.
- Around line 104-109: initForm currently assigns fixed props (props.name ->
form.name, props.realmId -> form.realm_id) before calling
assignFormProperties(form, manager.data.value), which can overwrite those fixed
values; change the order so assignFormProperties(form, manager.data.value) runs
first and then re-apply the fixed props (or explicitly set form.name and
form.realm_id after the assignFormProperties call) to ensure fixed-name and
locked-realm constraints remain intact; update the initForm function accordingly
(look for initForm, props.name, props.realmId, form.name, form.realm_id,
assignFormProperties, manager.data.value).
In `@packages/client-web-kit/src/components/entities/user/AUserForm.vue`:
- Around line 70-71: The bug is that the reactive flag busy passed to
AFormSubmit is never mutated, allowing duplicate submits; update the submit()
handler in this component to return early if busy.value is true, set busy.value
= true before starting the async work, and ensure busy.value = false in a
finally block after the await so the flag correctly reflects in-progress state
and prevents concurrent submissions (refer to the busy ref, the submit()
function, and the AFormSubmit usage).
- Around line 117-129: The current hydration sets form.realm_id from
props.realmId but then calls assignFormProperties(form, manager.data.value),
which can overwrite a locked realm_id; modify the hydration so
assignFormProperties does not overwrite an existing form.realm_id (e.g., only
copy realm_id from manager.data.value when form.realm_id is falsy, or remove
realm_id from the source object before calling assignFormProperties). Target the
block around form.realm_id, props.realmId, manager.data.value and the call
assignFormProperties(form, manager.data.value) and change the copy logic to
preserve an already-set form.realm_id.
In `@packages/client-web-kit/src/components/entities/user/AUserPasswordForm.vue`:
- Around line 66-81: In submit (the async wrapped function created with
wrapFnWithBusyState), add a Vuelidate guard that checks the validation result
(e.g., v$ or $v) before proceeding: if the validation object indicates $invalid,
return early (or emit 'failed' with validation info) instead of calling
apiClient.user.update; place this check at the top of submit right after the
props.id guard so invalid form data is never sent to the API.
In `@packages/client-web-kit/src/components/utility/AToggleButton.vue`:
- Around line 42-60: The icon-only button in AToggleButton.vue lacks an
accessible name; update the <button> element (the one with
`@click.prevent`="toggle") to include an appropriate accessible label and state
attributes—e.g., add aria-label (or aria-labelledby) that reflects the action
and aria-pressed set from the component state (use value and isBusy to derive
label like "Enable" / "Disable" or "Busy"), so screen readers get a meaningful
name and state while keeping the visual icon-only UI.
In
`@packages/client-web-kit/src/components/workflows/authorize/AuthorizeText.vue`:
- Line 21: The wrapper div in AuthorizeText.vue currently uses the utility class
"flex-col" but not "flex", so it never becomes a flex container; either make it
a flex container by changing the class to "flex flex-col" (if you intend to
arrange its children vertically) or remove "flex-col" and use appropriate
spacing/stacking utilities if you don't want flex behavior—update the div with
class="flex-col" accordingly.
In `@packages/client-web-theme/src/index.css`:
- Line 24: The Stylelint error is caused by the Tailwind v4 directive `@source`
being treated as an unknown at-rule; update the Stylelint config (the rule
`at-rule-no-unknown` or the plugin rule `scss/at-rule-no-unknown`) to ignore
`@source` by adding "source" to the `ignoreAtRules` array, or replace the
current config with a Tailwind-aware config (e.g.,
`stylelint-config-tailwindcss`) so that the `@source ".";` directive in
`index.css` is allowed; update the rule name (`at-rule-no-unknown` or
`scss/at-rule-no-unknown`) accordingly when making the change.
---
Duplicate comments:
In `@packages/client-web-kit/src/components/entities/realm/ARealmForm.vue`:
- Line 55: The busy ref (const busy = ref(false)) is declared but never updated
in the component submit flow; either remove it if the manager already exposes
and drives a busy state, or update the submit handler (the method that performs
the async create/update via the manager) to set busy.value = true at start and
busy.value = false in finally (and also on error), mirroring APermissionForm's
correct pattern; search for the component's submit handler and any manager call
(e.g., manager.create/update or onSubmit) and wrap the async operation with busy
state updates, or delete the unused busy ref if verification shows the manager
handles it internally (also apply the same fix for the other occurrence around
lines 115-121).
In `@packages/client-web-kit/src/components/entities/role/ARoleForm.vue`:
- Line 57: The busy ref (const busy = ref(false)) is declared but never updated;
either remove it and use the manager's busy state or update it around async
operations—set busy.value = true before calling the manager save/submit method
(e.g., when invoking manager.save or onSubmit) and set busy.value = false in
both success and error paths (finally), or replace it with a computed that
returns manager.busy; apply the same fix for the identical pattern around lines
120-126 so the form's UI reflects the manager's actual busy state.
In `@packages/client-web-kit/src/components/entities/scope/AScopeForm.vue`:
- Line 58: The busy ref (const busy = ref(false)) in AScopeForm.vue is declared
but never updated; update the form to set busy.value = true before any async
manager operations and set busy.value = false in finally blocks so the UI
reflects in-flight state, or remove the local busy ref and delegate to the
manager's busy flag if the manager already exposes and controls busy state
(e.g., use manager.busy or the manager's start/stop methods inside
submit/initialize functions referenced in this component); ensure the same fix
is applied to the other similar block referenced (the form logic around the
submit/init handlers).
---
Nitpick comments:
In
`@packages/client-web-kit/src/components/entities/permission/APermissionForm.vue`:
- Line 104: The realm_id validation is empty but the realm picker is shown when
!realmId && !isEditing, so add a required validator for realm_id (or a
conditional validator function) so the form enforces selection when the picker
is visible; update the validation rules for realm_id in APermissionForm.vue (the
validation rules object that contains realm_id) to either include a required
rule or a function that returns an error when realmId is falsy and isEditing is
false, and ensure the same change is applied in the other validation block
referenced (lines ~262-282) to keep behavior consistent.
🪄 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: 89b4c9e5-8514-412b-b240-4f5e7a8c9fc2
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (128)
.agents/architecture.md.agents/structure.mdapps/client-web/assets/css/bootstrap-override.cssapps/client-web/assets/css/tailwind.cssapps/client-web/assets/css/vue-toastification.cssapps/client-web/components/sidebar.vueapps/client-web/composables/domain/enity-nav.tsapps/client-web/nuxt.config.tsapps/client-web/package.jsonapps/client-web/pages/clients/[id]/url.vueapps/client-web/pages/clients/index.vueapps/client-web/pages/clients/index/index.vueapps/client-web/pages/identity-providers/index.vueapps/client-web/pages/permissions/index.vueapps/client-web/pages/permissions/index/index.vueapps/client-web/pages/policies/index.vueapps/client-web/pages/policies/index/add.vueapps/client-web/pages/realms/index.vueapps/client-web/pages/robots/index.vueapps/client-web/pages/roles/index.vueapps/client-web/pages/roles/index/index.vueapps/client-web/pages/scopes/index.vueapps/client-web/pages/scopes/index/index.vueapps/client-web/pages/settings/index.vueapps/client-web/pages/users/index.vueapps/client-web/plugins/vuecs.tsapps/server-core/package.jsonapps/server-core/ui/src/app.tsapps/server-core/ui/src/tailwind.cssapps/server-core/ui/vite.config.tspackages/client-web-kit-theme/README.mdpackages/client-web-kit-theme/package.jsonpackages/client-web-kit-theme/src/index.csspackages/client-web-kit-theme/src/index.tspackages/client-web-kit-theme/src/styles/form-validation.csspackages/client-web-kit-theme/src/styles/list.csspackages/client-web-kit-theme/tsconfig.build.jsonpackages/client-web-kit-theme/tsconfig.jsonpackages/client-web-kit-theme/tsdown.config.tspackages/client-web-kit/src/components/entities/client-permission/AClientPermissionAssignment.vuepackages/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/AIdentityProviderBasicFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.tspackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.vuepackages/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/identity-provider/AIdentityProviderOAuth2Form.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderPicker.vuepackages/client-web-kit/src/components/entities/identity-provider/index.tspackages/client-web-kit/src/components/entities/permission-policy/APermissionPolicyAssignments.vuepackages/client-web-kit/src/components/entities/permission/APermissionForm.tspackages/client-web-kit/src/components/entities/permission/APermissionForm.vuepackages/client-web-kit/src/components/entities/permission/index.tspackages/client-web-kit/src/components/entities/policy/APolicyBasicForm.vuepackages/client-web-kit/src/components/entities/policy/APolicyForm.vuepackages/client-web-kit/src/components/entities/policy/APolicyInlineInfo.vuepackages/client-web-kit/src/components/entities/policy/APolicySummary.vuepackages/client-web-kit/src/components/entities/policy/APolicyTypeBadge.vuepackages/client-web-kit/src/components/entities/policy/APolicyTypePicker.vuepackages/client-web-kit/src/components/entities/policy/realm-match/ARealmMatchPolicyForm.vuepackages/client-web-kit/src/components/entities/realm/ARealmForm.tspackages/client-web-kit/src/components/entities/realm/ARealmForm.vuepackages/client-web-kit/src/components/entities/realm/index.tspackages/client-web-kit/src/components/entities/robot-permission/ARobotPermissionAssignment.vuepackages/client-web-kit/src/components/entities/robot/ARobotForm.tspackages/client-web-kit/src/components/entities/robot/ARobotForm.vuepackages/client-web-kit/src/components/entities/robot/index.tspackages/client-web-kit/src/components/entities/role-permission/ARolePermissionAssignment.vuepackages/client-web-kit/src/components/entities/role/ARoleForm.tspackages/client-web-kit/src/components/entities/role/ARoleForm.vuepackages/client-web-kit/src/components/entities/role/index.tspackages/client-web-kit/src/components/entities/scope/AScopeForm.tspackages/client-web-kit/src/components/entities/scope/AScopeForm.vuepackages/client-web-kit/src/components/entities/scope/index.tspackages/client-web-kit/src/components/entities/user-permission/AUserPermissionAssignment.vuepackages/client-web-kit/src/components/entities/user/AUserForm.tspackages/client-web-kit/src/components/entities/user/AUserForm.vuepackages/client-web-kit/src/components/entities/user/AUserPasswordForm.tspackages/client-web-kit/src/components/entities/user/AUserPasswordForm.vuepackages/client-web-kit/src/components/entities/user/index.tspackages/client-web-kit/src/components/utility/ATable.vuepackages/client-web-kit/src/components/utility/AToggleButton.vuepackages/client-web-kit/src/components/utility/form-input-list/AFormInputList.vuepackages/client-web-kit/src/components/utility/index.tspackages/client-web-kit/src/components/utility/pagination/module.tspackages/client-web-kit/src/components/workflows/Login.vuepackages/client-web-kit/src/components/workflows/authorize/Authorize.vuepackages/client-web-kit/src/components/workflows/authorize/AuthorizeForm.vuepackages/client-web-kit/src/components/workflows/authorize/AuthorizeScope.vuepackages/client-web-kit/src/components/workflows/authorize/AuthorizeScopes.vuepackages/client-web-kit/src/components/workflows/authorize/AuthorizeText.vuepackages/client-web-kit/src/core/form/builders.tspackages/client-web-kit/src/core/form/defaults.tspackages/client-web-kit/src/core/form/index.tspackages/client-web-kit/src/core/form/submit.tspackages/client-web-theme/README.mdpackages/client-web-theme/package.jsonpackages/client-web-theme/src/index.csspackages/client-web-theme/src/index.tspackages/client-web-theme/src/styles/card.csspackages/client-web-theme/src/styles/core/body.csspackages/client-web-theme/src/styles/core/footer.csspackages/client-web-theme/src/styles/core/header.csspackages/client-web-theme/src/styles/core/navbar.csspackages/client-web-theme/src/styles/core/sidebar.csspackages/client-web-theme/src/styles/generics.csspackages/client-web-theme/src/styles/navigation.csspackages/client-web-theme/src/styles/root.csspackages/client-web-theme/tsconfig.build.jsonpackages/client-web-theme/tsconfig.jsonpackages/client-web-theme/tsdown.config.tstsconfig.json
💤 Files with no reviewable changes (19)
- apps/client-web/assets/css/vue-toastification.css
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.ts
- apps/client-web/assets/css/bootstrap-override.css
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Form.ts
- packages/client-web-kit/src/components/entities/permission/APermissionForm.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/entities/identity-provider/AIdentityProviderOAuth2Discovery.ts
- packages/client-web-kit/src/components/entities/robot/ARobotForm.ts
- packages/client-web-kit/src/components/entities/realm/ARealmForm.ts
- packages/client-web-kit/src/components/entities/scope/AScopeForm.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.ts
- packages/client-web-kit/src/components/entities/role/ARoleForm.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderBasicFields.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapUserFields.ts
- packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapGroupFields.ts
| * `clientWebTheme()` (none today, but a hook for future overrides) | ||
| * land in the JIT corpus. | ||
| */ | ||
| @source "."; |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify whether stylelint is configured to allow Tailwind v4 at-rules.
fd -i '.stylelintrc*' .
fd -i 'stylelint.config.*' .
rg -n 'ignoreAtRules|at-rule-no-unknown|scss/at-rule-no-unknown|source' $(fd -i '.stylelintrc*' .) $(fd -i 'stylelint.config.*' .)Repository: authup/authup
Length of output: 50370
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== stylelint config candidates (names) =="
fd -i 'stylelint.config.*' . || true
fd -i '.stylelintrc*' . || true
fd -i '*stylelint*config*' . || true
echo
echo "== package.json references to stylelint =="
rg -n '"stylelint"|stylelint' -S --glob 'package.json' .
echo
echo "== actual rules allowing/disallowing at-rules =="
rg -n 'at-rule-no-unknown|ignoreAtRules|allowlist|customSyntax|tailwind|`@source`' -S --glob '!**/node_modules/**' .
echo
echo "== confirm CSS line =="
rg -n '^`@source`\b|`@source`\b' packages/client-web-theme/src/index.css || true
sed -n '1,60p' packages/client-web-theme/src/index.css || trueRepository: authup/authup
Length of output: 459
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== stylelint config files (globs) =="
fd -t f --glob '.stylelintrc*' .
fd -t f --glob 'stylelint.config.*' .
echo
echo "== stylelint-related files (names) =="
fd -t f -i --glob '*stylelint*' .
echo
echo "== stylelint references in repo =="
rg -n --glob 'package.json' 'stylelint' .
rg -n 'stylelint' . --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' --max-count 50 || true
echo
echo "== at-rule rules allowing/ignoring unknown at-rules =="
# Search only likely config files to avoid noise
CONF_FILES="$( (fd -t f --glob '.stylelintrc*' . || true) ; (fd -t f --glob 'stylelint.config.*' . || true) )"
if [ -n "${CONF_FILES// }" ]; then
rg -n 'ignoreAtRules|at-rule-no-unknown|customSyntax|customAtRule|unknownAtRules' $CONF_FILES || true
rg -n '`@source`\b' $CONF_FILES || true
else
echo "No stylelint config files matched; skipping config-content search."
fi
echo
echo "== confirm CSS `@source` line =="
nl -ba packages/client-web-theme/src/index.css | sed -n '15,40p'Repository: authup/authup
Length of output: 320
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== stylelint config files (including hidden) =="
fd -t f -H --glob '.stylelintrc*' .
fd -t f -H --glob 'stylelint.config.*' .
echo
echo "== stylelint config filenames containing 'stylelint' (limited) =="
fd -t f -H -i --glob '*stylelint*' . --max-results 50 || true
echo
echo "== stylelint script/config references in package.json (limited) =="
rg -n --glob 'package.json' '"stylelint"|stylelint' . --max-count 50 || true
echo
echo "== show `@source` line in index.css =="
nl -ba packages/client-web-theme/src/index.css | sed -n '15,35p'
echo
echo "== inspect at-rule allowlists in any found stylelint config files =="
CONF_FILES="$( (fd -t f -H --glob '.stylelintrc*' . || true) ; (fd -t f -H --glob 'stylelint.config.*' . || true) )"
if [ -z "${CONF_FILES// }" ]; then
echo "No stylelint config files matched."
else
echo "Config files:"
printf '%s\n' $CONF_FILES
echo
rg -n 'ignoreAtRules|at-rule-no-unknown|customSyntax|customAtRule|unknownAtRules|allowlist' $CONF_FILES || true
echo
rg -n '`@source`\b' $CONF_FILES || true
fiRepository: authup/authup
Length of output: 380
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== .stylelintrc.json (relevant rules/keys) =="
rg -n 'ignoreAtRules|at-rule-no-unknown|atRule|customSyntax|allowlist|unknownAtRules|tailwind|`@source`|source' .stylelintrc.json || true
echo
sed -n '1,200p' .stylelintrc.json
echo
echo "== index.css around `@source` (line ~24) =="
sed -n '15,35p' packages/client-web-theme/src/index.css || true
rg -n '^`@source`\b|`@source`\b' packages/client-web-theme/src/index.css || true
echo
echo "== stylelint/tailwind stylelint config usage in package manifests =="
rg -n --glob 'package.json' 'stylelint|stylelint-config|stylelint-plugin|tailwindcss' . --max-count 200 || trueRepository: authup/authup
Length of output: 2916
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Other stylelint config files (hidden too) =="
fd -t f -H --glob '.stylelintrc*' . || true
fd -t f -H --glob 'stylelint.config.*' . || true
echo
echo "== repo-wide occurrences of at-rule-no-unknown / ignoreAtRules =="
rg -n 'at-rule-no-unknown|ignoreAtRules' . --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' || true
echo
echo "== repo-wide occurrences of `@source` (to ensure only intended file) =="
rg -n '^`@source`\b|`@source`\s' packages/client-web-theme --glob '!**/node_modules/**' || true
echo
echo "== package scripts that invoke stylelint =="
rg -n '"stylelint"\s*:|stylelint\s' . --glob 'package.json' --glob '!**/node_modules/**' --max-count 200 || trueRepository: authup/authup
Length of output: 364
🌐 Web query:
stylelint-config-standard-scss at-rule-no-unknown default configuration
💡 Result:
Default configuration of stylelint-config-standard-scss does NOT automatically “teach” Stylelint’s core at-rule-no-unknown rule about SCSS/Sass-specific at-rules. Instead, it is meant to be used as a shared config that extends the standard Stylelint rules and configures additional SCSS rule(s) by including the stylelint-scss plugin. For at-rule-no-unknown specifically: - Stylelint’s core rule at-rule-no-unknown disallows unknown at-rules based on CSS specifications (known CSS at-rules only) and treats Sass directives like @use as “unknown” unless you use the SCSS-specific version from the stylelint-scss plugin (or otherwise configure ignores). [1][2] - stylelint-config-standard-scss is a shared config intended for SCSS that “extends stylelint-config-standard” and “extends stylelint-config-recommended-scss”, and its docs note it configures rules for SCSS via its bundled config/ruleset. [3][4] So, to get the expected “default SCSS behavior” for at-rule-no-unknown: 1) Extend stylelint-config-standard-scss in your Stylelint config: [3][4] { "extends": "stylelint-config-standard-scss" } 2) If you still see Unexpected unknown at-rule "@use", ensure you are using the SCSS-specific rule provided by the stylelint-scss plugin (commonly referenced as scss/at-rule-no-unknown) rather than (or in addition to) the core at-rule-no-unknown. The Stylelint rule documentation and related issues explicitly recommend using the stylelint-scss plugin rule for SCSS. [5][6] If you want, paste your current.stylelintrc/stylelint.config.js (and which stylelint-config you extend) and I can tell you exactly what rule(s) to override to silence only the SCSS directives you need (without disabling the rule entirely).
Citations:
- 1: https://stylelint.io/user-guide/rules/at-rule-no-unknown
- 2: https://github.com/stylelint/stylelint/blob/main/lib/rules/at-rule-no-unknown/README.md
- 3: https://registry.npmjs.org/stylelint-config-standard-scss
- 4: https://www.npmjs.com/package/stylelint-config-standard-scss
- 5: Prevent
at-rule-no-unknownfrom warning against Sass directives stylelint/stylelint#1612 - 6: Unexpected unknown at-rule "@use" stylelint/stylelint#5340
🌐 Web query:
Tailwind CSS v4 stylelint @source ignoreAtRules at-rule-no-unknown
💡 Result:
Tailwind CSS v4’s @source directive (and other Tailwind v4 directives like @theme, @utility, etc.) is not part of standard CSS, so Stylelint’s at-rule validator will often report it as “unexpected unknown at-rule”. To stop that specifically for Stylelint’s at-rule-no-unknown, add @source to ignoreAtRules (or better: use a Tailwind-aware Stylelint config that registers Tailwind v4 syntax). 1) Minimal fix: ignore @source in at-rule-no-unknown Example stylelint config: { "rules": { "at-rule-no-unknown": [ true, { "ignoreAtRules": ["@source"] } ] } } This uses Stylelint’s documented ignoreAtRules option for at-rule-no-unknown [1]. 2) Recommended fix: extend a Tailwind CSS v4-aware Stylelint config If you extend a Tailwind config, it should handle Tailwind-specific at-rules rather than you maintaining an ignore list. One Tailwind-aware approach is to extend stylelint-config-tailwindcss [2][3]. Notes specific to Tailwind v4 @source - In Tailwind v4, @source is the mechanism for explicitly registering source paths that Tailwind should scan for class names [4][5].
Citations:
- 1: https://stylelint.io/user-guide/rules/at-rule-no-unknown
- 2: https://tailkits.com/blog/how-to-fix-unknown-at-rule-error-in-tailwind-css/
- 3: https://www.npmjs.com/package/stylelint-config-tailwindcss
- 4: https://tailwindcss.com/docs/detecting-classes-in-source-files
- 5: https://tailwindcss.com/docs/functions-and-directives
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== stylelint references in repo (excluding node_modules) =="
rg -n --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' --max-count 200 'stylelint' .
echo
echo "== CI/workflow steps that mention stylelint =="
fd -t f -H --glob '.github/workflows/*' .
fd -t f -H --glob '.github/*' . || true
rg -n --glob '.github/**' 'stylelint' . --max-count 200 || true
echo
echo "== installed deps (quick scan) =="
rg -n --glob 'package.json' '"stylelint' . --max-count 200 || true
rg -n --glob 'package.json' '"tailwindcss"' . --max-count 50 || trueRepository: authup/authup
Length of output: 751
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== package-lock: tailwind-aware stylelint configs? =="
rg -n 'stylelint-config-tailwindcss|tailwindcss\W*stylelint|tailwind-aware.*stylelint' package-lock.json || true
echo
echo "== package-lock: stylelint-scss plugin? =="
rg -n 'stylelint-scss' package-lock.json || true
echo
echo "== package-lock: at-rule-no-unknown related deps? (stylelint core versions) =="
rg -n '"stylelint":' package-lock.json | head -n 30 || true
echo
echo "== package scripts invoking stylelint? =="
rg -n --glob 'package.json' '"scripts"' . || true
rg -n --glob 'package.json' 'stylelint' . --max-count 200 || true
echo
echo "== also check for stylelint config json/yaml in repo root or packages =="
fd -t f -H --glob '*stylelint*' .Repository: authup/authup
Length of output: 1674
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== stylelint occurrences in package.json scripts =="
rg -n --glob '**/package.json' 'stylelint' . --glob '!**/node_modules/**' --max-count 200 || true
echo
echo "== root package.json scripts (stylelint relevant) =="
sed -n '1,120p' package.json || true
rg -n 'stylelint' package.json || true
echo
echo "== client-web-theme package.json scripts (stylelint relevant) =="
sed -n '1,140p' packages/client-web-theme/package.json || true
rg -n 'stylelint' packages/client-web-theme/package.json || true
echo
echo "== GitHub workflows stylelint =="
fd -t f -H --glob '.github/workflows/*' . || true
rg -n -H --glob '.github/workflows/*' 'stylelint' . --max-count 200 || trueRepository: authup/authup
Length of output: 4176
Whitelist Tailwind v4 @source for stylelint
packages/client-web-theme/src/index.css includes @source "."; (line 24), but ./.stylelintrc.json only extends stylelint-config-standard-scss and doesn’t allow/ignore Tailwind v4 directives. Add @source to ignoreAtRules for at-rule-no-unknown (or scss/at-rule-no-unknown) or switch to a Tailwind-aware Stylelint config so lint doesn’t treat valid Tailwind v4 syntax as “unknown”.
🧰 Tools
🪛 Stylelint (17.11.1)
[error] 24-24: Unexpected unknown at-rule "@source" (scss/at-rule-no-unknown)
(scss/at-rule-no-unknown)
🤖 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-theme/src/index.css` at line 24, The Stylelint error is
caused by the Tailwind v4 directive `@source` being treated as an unknown
at-rule; update the Stylelint config (the rule `at-rule-no-unknown` or the
plugin rule `scss/at-rule-no-unknown`) to ignore `@source` by adding "source" to
the `ignoreAtRules` array, or replace the current config with a Tailwind-aware
config (e.g., `stylelint-config-tailwindcss`) so that the `@source ".";`
directive in `index.css` is allowed; update the rule name (`at-rule-no-unknown`
or `scss/at-rule-no-unknown`) accordingly when making the change.
… order, a11y) Sweep through CodeRabbit review comments on PR #3075. 16 of 18 fixed, 2 dismissed (stylelint config doesn't exist in authup; doc enhancement added). Security - AIdentityProviderLdapCredentialsFields: password input now type=password + autocomplete=current-password. - AIdentityProviderOAuth2ClientFields: client_secret input now type=password + autocomplete=new-password. Busy-state gates — submit() now early-returns when busy + toggles busy in a try/finally so AFormSubmit reflects in-flight state and double- clicks can't queue duplicate writes: - ARobotForm, AUserForm, APermissionForm, AIdentityProviderLdapForm, AIdentityProviderOAuth2Form Form-init ordering — apply caller-fixed props AFTER assignFormProperties so locked name / locked realm can't be overwritten by the loaded entity: - ARobotForm (props.name, props.realmId) - AUserForm (props.realmId) Other correctness - AIdentityProviderOAuth2Form preset watcher now guards on manager.data.value — preset cascade only runs in create mode, never overwrites an existing entity's name/slug on edit. - AIdentityProviderForm forwards `deleted` + `failed` from child forms (declared but not re-emitted before). - AIdentityProviderLdapConnectionFields empty timeout input now resets the model to 0 instead of leaving the stale value. - AUserPasswordForm submit() guards on \$v.\$invalid before the API call (form-level Enter submit path bypassed AFormSubmit's disabled). - APermissionForm: realm_id validator uses requiredIf((!realmId && !isEditing)) so the conditional realm picker actually has to be filled before submit succeeds. - AuthorizeText: `flex-col` needs `flex` to be a flex container — add `flex`. a11y - AToggleButton: icon-only button gets aria-label / aria-busy / aria-pressed; the inner <i> is aria-hidden. Package shape - kit-theme @source paths now point at @authup/client-web-kit's published `dist/` rather than `src/` so the kit's class strings are scanned for npm consumers (dev still works via workspace symlinks). Docs - .agents/architecture.md: Tailwind v4 breaking-change reference for UI contributors (important-modifier suffix, opacity slash syntax, CSS-var parens, outline-hidden, 1px default ring, Chrome 111+ minimum). Dismissed - Stylelint @source whitelist (#3293422302): authup has no stylelint config — CodeRabbit applied its own. Not actionable.
There was a problem hiding this comment.
♻️ Duplicate comments (2)
packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.vue (1)
49-53:⚠️ Potential issue | 🟠 Major | ⚡ Quick winHandle non-OpenID responses explicitly instead of silently returning.
When
response.datafailsisOpenIDProviderMetadata, no message orfailedemit is produced, so lookup can fail silently.🛠️ Suggested patch
try { const response = await apiClient.get(form.url); if (isOpenIDProviderMetadata(response.data)) { setup.emit('lookup', response.data); lookupValid.value = true; + } else { + const err = new Error('Invalid discovery document'); + lookupValid.value = false; + message.value = `Lookup failed with: ${err.message}`; + setup.emit('failed', err); } } catch (e) {🤖 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/entities/identity-provider/AIdentityProviderOAuth2Discovery.vue` around lines 49 - 53, The code currently only emits 'lookup' when isOpenIDProviderMetadata(response.data) is true and otherwise does nothing; add an explicit else branch after the isOpenIDProviderMetadata check to set lookupValid.value = false and emit a failure event (e.g., setup.emit('failed', { reason: 'non-openid-metadata', data: response.data })) and also log or include a human-readable message so callers know why lookup failed; update the same response handling around apiClient.get(form.url), isOpenIDProviderMetadata, setup.emit('lookup') to ensure non-OpenID responses are reported rather than silently ignored.packages/client-web-kit-theme/src/index.css (1)
46-47:⚠️ Potential issue | 🟠 Major | ⚡ Quick win
@sourcepaths are still publish-fragile due to extranode_modulestraversal.These paths can resolve to
.../node_modules/node_modules/...in consumer installs, so Tailwind may miss kit/vuecs classes post-publish.💡 Minimal path correction
-@source "../../../node_modules/@authup/client-web-kit/dist"; -@source "../../../node_modules/@vuecs"; +@source "../../client-web-kit/dist"; +@source "../../../@vuecs"; +/* keep workspace fallback only if needed by local tooling */ +@source "../../../node_modules/@vuecs";#!/bin/bash python - <<'PY' from pathlib import Path bases = { "published_pkg_src": Path("/app/node_modules/@authup/client-web-kit-theme/src"), "workspace_pkg_src": Path("/repo/packages/client-web-kit-theme/src"), } rels = [ "../../../node_modules/@authup/client-web-kit/dist", "../../client-web-kit/dist", "../../../node_modules/@vuecs", "../../../@vuecs", ] for name, base in bases.items(): print(f"\n{name}: {base}") for rel in rels: print(f" {rel:52} -> {(base / rel).resolve()}") PY🤖 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-theme/src/index.css` around lines 46 - 47, Replace the publish-fragile `@source` paths that traverse into node_modules with workspace-relative package paths: update the `@source` "../../../node_modules/@authup/client-web-kit/dist" reference to the local package path (e.g. "../../client-web-kit/dist") and update `@source` "../../../node_modules/@vuecs" to the workspace/@vuecs path (e.g. "../../../@vuecs" or the appropriate relative path to the local `@vuecs` package) so Tailwind resolves kit/vuecs classes correctly after publish; adjust the two `@source` lines in packages/client-web-kit-theme/src/index.css accordingly.
🤖 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.
Duplicate comments:
In `@packages/client-web-kit-theme/src/index.css`:
- Around line 46-47: Replace the publish-fragile `@source` paths that traverse
into node_modules with workspace-relative package paths: update the `@source`
"../../../node_modules/@authup/client-web-kit/dist" reference to the local
package path (e.g. "../../client-web-kit/dist") and update `@source`
"../../../node_modules/@vuecs" to the workspace/@vuecs path (e.g.
"../../../@vuecs" or the appropriate relative path to the local `@vuecs` package)
so Tailwind resolves kit/vuecs classes correctly after publish; adjust the two
`@source` lines in packages/client-web-kit-theme/src/index.css accordingly.
In
`@packages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.vue`:
- Around line 49-53: The code currently only emits 'lookup' when
isOpenIDProviderMetadata(response.data) is true and otherwise does nothing; add
an explicit else branch after the isOpenIDProviderMetadata check to set
lookupValid.value = false and emit a failure event (e.g., setup.emit('failed', {
reason: 'non-openid-metadata', data: response.data })) and also log or include a
human-readable message so callers know why lookup failed; update the same
response handling around apiClient.get(form.url), isOpenIDProviderMetadata,
setup.emit('lookup') to ensure non-OpenID responses are reported rather than
silently ignored.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7188849e-5edc-40c2-b0fd-725a5fdcb4bb
📒 Files selected for processing (15)
.agents/architecture.mdpackages/client-web-kit-theme/src/index.csspackages/client-web-kit/src/components/entities/client/AClientForm.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderForm.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapConnectionFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapCredentialsFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderLdapForm.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2ClientFields.vuepackages/client-web-kit/src/components/entities/identity-provider/AIdentityProviderOAuth2Discovery.vuepackages/client-web-kit/src/components/entities/permission/APermissionForm.vuepackages/client-web-kit/src/components/entities/robot/ARobotForm.vuepackages/client-web-kit/src/components/entities/user/AUserForm.vuepackages/client-web-kit/src/components/entities/user/AUserPasswordForm.vuepackages/client-web-kit/src/components/utility/AToggleButton.vuepackages/client-web-kit/src/components/workflows/authorize/AuthorizeText.vue
✅ Files skipped from review due to trivial changes (2)
- packages/client-web-kit/src/components/workflows/authorize/AuthorizeText.vue
- .agents/architecture.md
… order, a11y) Sweep through CodeRabbit review comments on PR #3075. 16 of 18 fixed, 2 dismissed (stylelint config doesn't exist in authup; doc enhancement added). Security - AIdentityProviderLdapCredentialsFields: password input now type=password + autocomplete=current-password. - AIdentityProviderOAuth2ClientFields: client_secret input now type=password + autocomplete=new-password. Busy-state gates — submit() now early-returns when busy + toggles busy in a try/finally so AFormSubmit reflects in-flight state and double- clicks can't queue duplicate writes: - ARobotForm, AUserForm, APermissionForm, AIdentityProviderLdapForm, AIdentityProviderOAuth2Form Form-init ordering — apply caller-fixed props AFTER assignFormProperties so locked name / locked realm can't be overwritten by the loaded entity: - ARobotForm (props.name, props.realmId) - AUserForm (props.realmId) Other correctness - AIdentityProviderOAuth2Form preset watcher now guards on manager.data.value — preset cascade only runs in create mode, never overwrites an existing entity's name/slug on edit. - AIdentityProviderForm forwards `deleted` + `failed` from child forms (declared but not re-emitted before). - AIdentityProviderLdapConnectionFields empty timeout input now resets the model to 0 instead of leaving the stale value. - AUserPasswordForm submit() guards on \$v.\$invalid before the API call (form-level Enter submit path bypassed AFormSubmit's disabled). - APermissionForm: realm_id validator uses requiredIf((!realmId && !isEditing)) so the conditional realm picker actually has to be filled before submit succeeds. - AuthorizeText: `flex-col` needs `flex` to be a flex container — add `flex`. a11y - AToggleButton: icon-only button gets aria-label / aria-busy / aria-pressed; the inner <i> is aria-hidden. Package shape - kit-theme @source paths now point at @authup/client-web-kit's published `dist/` rather than `src/` so the kit's class strings are scanned for npm consumers (dev still works via workspace symlinks). Docs - .agents/architecture.md: Tailwind v4 breaking-change reference for UI contributors (important-modifier suffix, opacity slash syntax, CSS-var parens, outline-hidden, 1px default ring, Chrome 111+ minimum). Dismissed - Stylelint @source whitelist (#3293422302): authup has no stylelint config — CodeRabbit applied its own. Not actionable.
3e58a2c to
f9f0a1a
Compare
Summary
Replaces the Bootstrap 5 +
@vuecs/theme-bootstrapUI stack with Tailwind v4 +@vuecs/theme-tailwind, introduces a new@authup/client-web-themepackage that composes the vuecs theme with authup-specific tweaks, and rewrites every entity form from hyperscriptbuildForm*builders to native<template>SFCs.Foundation
@authup/client-web-theme(packages/client-web-theme/) — exportsauthupTheme()composingtailwindTheme()+ a small per-element override (currentlyformGroupmargin viaextend('mb-3')), and ships a single CSS entry (@authup/client-web-theme/index.css) that pulls intailwindcss,@vuecs/design,@vuecs/theme-tailwind, restores the heading size scale via@layer base, and provides a Bootstrap-compat@layer componentsblock.@tailwindcss/vitein bothapps/client-web(Nuxt) andapps/server-core/ui(Vite SSR). Per-app CSS entries (apps/client-web/assets/css/tailwind.css,apps/server-core/ui/src/tailwind.css) own their own@sourcedirectives so the theme stays consumer-agnostic..btn/.btn-*/.btn-outline-*/.row/.col-N/.alert/.alert-*/.badge/.nav/.nav-link/.nav-pills(joined-tab look, horizontal + vertical) /.navbar/.navbar-nav/.navbar-expand-md(with.collapse:not(.show)hide +md:flex!desktop override) /.modal-*/.dropdown-menu(hidden by default,.showreveals) /.dropdown-item/.form-group/.form-switch/.is-valid. Each rule@applys Tailwind utilities under the legacy Bootstrap class name — same visual contract, nobootstrapdep, and the rules disappear when the last caller migrates.Mechanical class sweep
.vuefiles:d-flex→flex,flex-column→flex-col,w-100→w-full,fw-bold→font-bold,text-muted→text-fg-muted,bg-primary→bg-primary-600,text-danger→text-error-600, etc. Spacing utilities (ms-*,me-*,mt-*,mb-*,gap-*,p*) carry over unchanged — Tailwind v4 uses the same names as Bootstrap 5.apps/client-web/composables/domain/enity-nav.ts:flex-column→flex-col(the.tssweep was a one-off followup).Form rewrite (hyperscript → SFC)
All 14 entity forms migrated from hyperscript
buildForm*builder chains to native<template>SFCs withv-model,<IVuelidate>for validation display, and<AFormSubmit>for the submit button:.row > .colleft side + ARealms realm picker right side<VCFormSwitch v-model="passwordShow">with a slot-rendered<label :for="id">so clicking the text togglesThe
buildFormSwitchshim was added during the migration; thebuildFormCheckboxshim was updated to routegroupClassthroughthemeClass.groupviaextend()(same fix). All form-checkbox-with-form-switch patterns were migrated to<VCFormSwitch>/buildFormSwitch.<AToggleButton>extracted from the duplicated realm-picker toggle markup in user + robot forms.Other changes
buildPaginationshim fixed to listen toVCPagination's actualloadevent (wasupdate:page, never fired); pagination output centered via a wrapper div; theme override gives joined-tab buttons..vc-nav-link.h1–h6) get a proper size scale via@layer base(Tailwind v4's preflight resets them to inherit).<hr>separators removed from entity forms (<form-group>now owns inter-row spacing viamb-3).<VCFormGroup #hint>slot (they used to render as<small>siblings, drifting between groups)..agents/structure.mdand.agents/architecture.mdUI sections rewritten.Audit fixes (final commit)
AIdentityProviderForm.vuelocalEntity watcher (parent-driven entity updates now propagate to child forms).buildFormCheckboxshim mirrorsbuildFormSwitch(dormant today, defense in depth)..is-validcompat rule restored.<AToggleButton>extraction.Test plan
Manual UI walkthrough (I can't drive a browser from here; verified what I could via dev/prod CSS inspection):
mb-3between groups; submit worksassign()carries through on preset changeProgrammatic checks (passing):
npm run build(all packages + apps)npm run lintnpm run build -w apps/client-web(Nuxt build, 191KB entry CSS)npm run build -w apps/server-core(server + UI SSR, 184KB CSS)Notable trade-offs
class="d-flex me-1 btn btn-xs btn-outline-primary"-style strings without per-line rewrites; it shrinks as templates migrate to<VC*>components / Tailwind utilities.@source, so paths walknode_modules/@vuecsexplicitly. Documented in the theme CSS comment.buildFormGroup/buildFormInput/ etc.) are exported but no longer used by entity forms. Left in place for now; can be deleted in a follow-up after consumers outside this PR are confirmed to not use them.text-start/text-end/float-start/float-end) were mapped to physical (text-left/ ...) by the sweep. Tailwind v4 supports the logical forms natively; this is a latent RTL regression. authup doesn't ship RTL today, so no active impact.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Style
Chores