Skip to content

chore(ui): align the ui tooling, conventions and typography with the other services - #111

Draft
BatLeDev wants to merge 7 commits into
mainfrom
ui-tooling-registry-agents
Draft

BatLeDev wants to merge 7 commits into
mainfrom
ui-tooling-registry-agents

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Bring the UI tooling and conventions in line with the other service UIs.

  • Tooling aligned: eslint 10 + neostandard 0.14, TypeScript 6, vite config on the pattern of the other services (renderBuiltUrl, dev pages excluded from the production build).
  • vue/block-order (template, i18n, script, style) and vue/attributes-order enforced, applied with eslint --fix; i18n blocks list en before fr.
  • eslint-plugin-vuetify flat/recommended-v4; Vuetify 3 typography classes, which Vuetify 4 no longer styles, replaced by their MD3 names; destructive actions (delete agent, task, memory document, redact) in warning.
  • The compiled vjsf forms are generated by build-types (CI and Docker already did) and no longer tracked; the published lib packages do not use them.
  • The moderation and review lists read through useFetch / useAsyncAction instead of raw fetch.
  • The "conversation not private" notice sits under the composer instead of under the chat header, a size larger and centred; its details menu fades in at full size so its memory link shows at once.
  • A tool chip only looks clickable when it can unfold its details; a long approval title wraps instead of being cut.

Why: agents had diverged from the conventions of the other service UIs, and texts silently lost their intended size under Vuetify 4.

Heads-up: visible changes: page titles and list rows take their intended MD3 sizes. An existing dev checkout keeps the schema hashes cache of build-types: run npm run build-types -- --no-cache once after pulling. The kebab-case file rename follows in its own PR.

- eslint 10, neostandard 0.14, recent eslint-plugin-vue/vuetify, TypeScript 6 in the root
  devDependencies only (the ui workspace resolves it from there)
- tests/fixtures/login.ts reindented by neostandard 0.14's indent rule
- ui eslint config in the shared shape (rule order, require-default-prop off)
- vite.config: renderBuiltUrl like the other services, import.meta.dirname, ports read with a
  check and only for the dev server (not for build or preview), no dotenv (the dev runner and
  the dev stack provide the env), no build block (Vite's defaults)
- the _dev pages are excluded from the production build by the vite command; the e2e specs that
  visit them run against the dev UI, as in CI
- vue/block-order: template, i18n, script, style
- vue/attributes-order: directives first, then bound props, static props, boolean props and
  events last, the order the other service UIs follow
- existing files reordered by eslint --fix, no behaviour change
- <i18n> blocks list en before fr (the parsed messages are unchanged)
…s in warning

Vuetify 4 no longer emits the Material 2 typography classes nor reads the legacy grid props:
those texts rendered at the default body size and the rows with the default gutter.

- eslint-plugin-vuetify flat/recommended-v4, the preset of the other service UIs
- MD2 classes replaced with the upgrade guide's MD3 names: text-h5 -> text-headline-small,
  text-h6 -> text-title-large, text-subtitle-2 -> text-title-small, text-body-2 ->
  text-body-medium, text-caption -> text-body-small (RunSummary's computed class included)
- v-row dense -> density="compact", align/justify props -> classes
- delete and redact actions (agent, task, memory document and version) in warning instead of
  error, error stays for failures
- ui/src/components/vjsf is gitignored, as in the other services that compile vjsf forms
- build-types already writes them: CI runs it before the ui build and uploads the folder with
  the other build outputs, the Docker types stage too, so neither changes; only the ui imports
  them, the published lib-vue / lib-vuetify packages do not
- ModerationSection: stats and recent blocks through useFetch, the probe through useAsyncAction;
  errors still show as the inline message, not as a notification (notifError: false,
  catch: 'error'), and the message clears once a fetch succeeds again
- ReviewList: rows through useFetch with the page in its query, so the pagination no longer
  refetches by hand; a new account still starts at page 1
- admin account page: the providers' model-listing errors through $fetch instead of the native
  fetch, same refresh triggers
- use-anonymous-token keeps the native fetch: a module-level helper outside any component,
  reading a text token from simple-directory
It states a fact about every message sent, so it belongs where the message is written rather than
under the chat header. Its details menu now opens upward.
@BatLeDev
BatLeDev marked this pull request as draft December 2, 2026 10:43
@BatLeDev BatLeDev added the staging Merged into the staging branch, deployed on the staging environment label Dec 2, 2026
github-actions Bot added a commit that referenced this pull request Dec 2, 2026
github-actions Bot added a commit that referenced this pull request Dec 2, 2026
- the not-private notice is a size larger, centred under the composer, and its details menu fades
  in at its full size instead of growing from the notice, which hid its memory link while opening
- a tool chip only looks clickable when it can unfold its details
- a long approval title wraps instead of being cut by an ellipsis
github-actions Bot added a commit that referenced this pull request Dec 2, 2026
@BatLeDev BatLeDev removed the staging Merged into the staging branch, deployed on the staging environment label Dec 2, 2026
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