Skip to content

fix(lib-vuetify): assorted small fixes#33

Open
BatLeDev wants to merge 3 commits into
mainfrom
fix-small-fixes
Open

fix(lib-vuetify): assorted small fixes#33
BatLeDev wants to merge 3 commits into
mainfrom
fix-small-fixes

Conversation

@BatLeDev
Copy link
Copy Markdown
Member

@BatLeDev BatLeDev commented May 11, 2026

Summary

A batch of unrelated small fixes.

  • fix(lib-vuetify): root-of-org switch fallback in layout-fetch-error — the 403 "switch account" affordance only matched user memberships when their department exactly equalled the resource's x-owner.department. A user with access only at the root of the organization was never offered a switch, even though root access generally grants visibility over department-scoped resources. The matcher now prefers an exact-department membership and falls back to a root membership of the same org; the current account is excluded from candidates to avoid no-op switches.
  • fix(lib-vuetify): capitalize Admin mode i18n label in personal-menu — the "Admin mode" toggle (fr/en) now starts with a capital letter. The dead darkMode key (never referenced via t()) is dropped from personal-menu.
  • fix(types-builder): log compiledLayout options before attaching schemas — the compiledLayout {locale} options: ... log was huge because it ran after schemaVjsfOpts.ajvOptions = { schemas: otherSchemas }, which serialized the entire schema collection. The log is now emitted right after delete schemaVjsfOpts.compName, matching the pattern already used in the vjsf section above it.

BatLeDev added 3 commits May 22, 2026 14:40
The `compiledLayout {locale} options: ...` log was huge because it ran
after `schemaVjsfOpts.ajvOptions = { schemas: otherSchemas }`, which
serialized the entire schema collection. Move the log right after the
`delete schemaVjsfOpts.compName` line, before any mutation of
`schemaVjsfOpts`, matching the pattern used in the `vjsf` section.
…-menu

- Admin mode toggle label (fr/en) now starts with a capital letter.
- Drop the dead `darkMode` i18n key from personal-menu (never referenced via t()).
…s forbidden

The 403 "switch account" affordance in layout-fetch-error only matched user
memberships when their department exactly equalled the resource's
`x-owner.department`. A user who only had access at the root of the
organization was therefore never offered a switch, even though root access
generally grants visibility over department-scoped resources in
simple-directory's authz model.

- Match the exact department first, then fall back to a root membership of
  the same organization when the resource lives in a department.
- Exclude the current account from candidates so the button is not offered
  when switching would be a no-op.
@BatLeDev BatLeDev changed the title feat(lib-vuetify): system theme option and assorted small fixes fix(lib-vuetify): assorted small fixes May 22, 2026
@BatLeDev BatLeDev marked this pull request as ready for review May 22, 2026 13:09
@BatLeDev BatLeDev requested a review from albanm May 22, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant