Skip to content

refactor(docs): webkit adoption and review 2026-10-30 - #2540

Draft
isaque-bock-azion wants to merge 5 commits into
mainfrom
refactor/webkit-adoption-2026-10-30
Draft

isaque-bock-azion wants to merge 5 commits into
mainfrom
refactor/webkit-adoption-2026-10-30

Conversation

@isaque-bock-azion

Copy link
Copy Markdown
Contributor

Summary

  • Daily @aziontech/webkit adoption and review run on main @ f18dca254 (@aziontech/webkit@5.3.0). Platform code only, no content.
  • Applies the reviewer's safe findings: one import binding fix, one dead attribute, and three tree-shakeable -root imports on hydrated islands. None of them changes what renders.
  • Coverage: lint-clean UI files 100% → 100% (4 → 4 violations, all content). Audited component coverage 77% (108 webkit / 32 custom); this PR swaps no custom UI, so the figure is unchanged.

Applied

Commit Change Where
refactor(webkit): bind doc-on-this-page as DocOnThisPage WkDocOnThisPage binding renamed to match its subpath apps/docs/src/components/webkit/OnThisPage.vue:2,15, apps/docs/src/components/RightSidebar/PricingTableOfContents.vue:2,6
fix(webkit): drop the class HeaderRightSidebar never applied class="py-(--spacing-xl)" removed. The component has two roots and no $attrs binding, so Vue dropped the class and warned apps/docs/src/layouts/BaseLayout.astro:183
perf(webkit): import the paginator root and button in GuidesHome paginator → paginator-root + pagination-button (stops bundling PaginatorInfo and PaginatorPageSize) apps/docs/src/components/webkit/GuidesHome.vue:159-193,268
perf(webkit): import select-root and its used parts in SelectLang select → select-root + select-trigger, select-content, select-option (stops bundling SelectGroup) apps/docs/src/components/webkit/SelectLang.vue:6-26,31
perf(webkit): import command-menu-root and its used parts in search command-menu → command-menu-root + the parts it renders (stops bundling CommandMenuSeparator) apps/docs/src/components/webkit/HeaderSearchDialog.vue:2-26,32

Reviewer findings not applied

The 14 .vue/.ts/.js files changed on main in the last 7 days are clean. The findings below come from a whole-app pass.

  • Primitive tokens without an exact semantic match. Each swap would change a visible value, so these need a design decision.
    • styles/main.css:69: --color-gray-200 vs --border-muted (differs in dark mode).
    • styles/main.css:74: --color-gray-400 vs --text-disabled (differs in dark mode).
    • webkit/CopyPromptButton.vue:14,18,25: --color-base-white and --color-brand-accent-* have no semantic token.
  • Search dialog and mobile nav drawer load eagerly on every page (HeaderSearchDialog.vue:32, HeaderRightSidebar.vue:14-69). Lazy-loading them moves the meta+k shortcut and delays the first open, so it changes behaviour.
  • Restyled webkit components in .astro files. The no-style-override rule doesn't run there. Each needs a layout check before wrapping:
    • homes/DocsHome.astro:58,107,163,189
    • RightSidebar/DocCta.astro:59,72,80
    • PageContent/PageContent.astro:120,139,173
    • RightSidebar/RightSidebar.astro:76
  • Raw Tailwind spacing instead of tokens (PageContent.astro:116,120,139,173, DocCta.astro:55, HomePages/Cardlist.astro:20,25, GuidesHomeSection.astro:64). The px tokens and the rem utilities differ when the user scales the font size.
  • CopyPromptButton.vue forks button-highlight. It is blocked on ButtonHighlight getting a slot and a copied state (gap).
  • Wk/Webkit aliases in DocPageHeader.vue:31, Tag.vue:16 and CodeBlock.vue:8 are kept on purpose: the canonical name equals the wrapper's own component name.

Remaining adoption backlog (all need design)

The audit found no direct 1:1 swaps.

  1. Header "Docs" chip → tag (Header.vue:21-25)
  2. Sidebar "no matches" lines → empty-state (DocsSidebarMenu.vue:58-60, DocsSidebarRows.vue:23-28)
  3. Tab panels → tab-view (Tabs.vue:21-40)
  4. FAQ and topology frames → card-box / frame-box (AgentFaq.vue:2-6, PlatformTopology.vue:2-8)
  5. Inline and table links → link (AgentQuickStart.vue:12-24, AgentPageHeader.vue:46-54, ProductGuidesTable.vue:13-20, AgentCompareTable.vue:20-26)
  6. Checkbox facet rows → field-checkbox (GuidesHome.vue:57-95)
  7. Mastheads → hero-title (DocsHome.astro:34-74, GuidesHomeSection.astro:64-73)
  8. 404 back link → button / link (pages/[lang]/404.astro:14; SplashLayout loads no webkit CSS)
  9. Video frame → doc-frame (Video.astro:54-63; blocked by DocFrame's SSR document access)

Gaps for the design system

  • No catalog equivalent yet:
    • quiet link wrapper (3 uses)
    • inline link with an arrow or external glyph (3)
    • table-cell link (2)
    • inline menu empty line (2)
    • framed doc block (2)
    • non-hero masthead (2)
    • checkbox facet row with a count (2)
  • Single-component patterns:
    • search trigger
    • ButtonHighlight with a slot and a copied state
    • SSR-persistent tab panels (985 MDX uses)
    • third-party agent marks
    • pixelate backdrop
  • Bugs and missing features:
    • Paginator kind="more" has no accessible name.
    • NavigationMenu.Icon has no default chevron.
    • DocFrame breaks in SSR.
  • Not touched (content): 4 docs/mdx-allowed-imports violations in content files. guides/index.mdx, guias/guides.mdx and both pricing.mdx import .astro components outside the allowlist.

How to test

  1. pnpm install --frozen-lockfile
  2. pnpm lint:webkit && pnpm report:webkit-adoption: still 4 violations, all in .mdx content. ✅
  3. pnpm build:local: completes, 2094 pages built. ✅
  4. pnpm dev, then check:
    • /en/documentation/ and any pricing page: the "On this page" rail renders and tracks headings.
    • Guides home: the paginator works.
    • Footer: the language select switches EN/PT-BR.
    • ⌘K opens the search dialog.
    • Below lg, the nav drawer opens. The console no longer logs the extraneous-attributes warning for HeaderRightSidebar.

Notes

None. No new dependencies, no permalink changes, no content touched.

The webkit-reviewer import rule expects the binding to be the PascalCase
of the subpath's last segment. OnThisPage.vue and
PricingTableOfContents.vue imported @aziontech/webkit/doc-on-this-page
as WkDocOnThisPage. Neither file declares a DocOnThisPage of its own,
so the canonical name does not collide. Pure rename, no render change.
BaseLayout passed class="py-(--spacing-xl)" to HeaderRightSidebar, but
the component renders two root nodes (the trigger box and the Drawer)
and does not bind $attrs, so Vue drops the class and logs an
extraneous non-props attributes warning. Removing it changes nothing
on screen and silences the warning.
GuidesHome hydrates with client:load and imported the full
@aziontech/webkit/paginator compound, which also bundles PaginatorInfo
and PaginatorPageSize. It only renders the root (with its #info slot)
and PaginationButton, so it now imports paginator-root and
pagination-button directly. Same components, smaller island.
SelectLang hydrates with client:visible and imported the full
@aziontech/webkit/select compound, which also bundles SelectGroup. It now
imports select-root, select-trigger, select-content and select-option
directly. Same components, no render change.
HeaderSearchDialog loads on every page and imported the full
@aziontech/webkit/command-menu compound, which also bundles
CommandMenuSeparator. It now imports command-menu-root and the input,
list, group, item and empty parts it renders. Same components, the
meta+k shortcut stays on the root.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant