Skip to content

chore(webui): drop the unused lab dependency and trim the README - #3565

Merged
inureyes merged 1 commit into
mainfrom
chore/webui-drop-lab-dependency
Nov 29, 2026
Merged

inureyes merged 1 commit into
mainfrom
chore/webui-drop-lab-dependency

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

Follow-up to #3526. The redesign removed the last lab component (the Drawer adapter), so @astryxdesign/lab is no longer used. This removes it from the install, and shortens the README acknowledgment for the WebUI theme tokens.

Changes

  • webui/package.json: drop the direct @astryxdesign/lab dependency.
  • webui/pnpm-workspace.yaml: drop the @astryxdesign/lab>@astryxdesign/core override, which existed only for lab, and set autoInstallPeers: false. ui-common lists lab as an optional peer, and with peer auto-install on, pnpm kept installing it (plus its d3 dependencies) after the direct dependency was gone. Every other peer is already a direct dependency, so the lockfile only loses lab and the d3 packages.
  • webui/src/design-system/ui-common-dependencies.test.ts: still requires exactly one resolved copy of Astryx core, and now also fails when the lockfile installs lab.
  • webui/eslint.config.js: the restricted-import message no longer points at @lablup/ui-common/lab, which would not resolve without lab installed.
  • docs/webui/ui-common.md: remove the lab row from the version table and explain why it is not installed.
  • webui/public/third-party-licenses.txt and NOTICE: stop listing lab as shipped code. No lab code or stylesheet was in the bundle: src/ui-common-entry.css never imported lab/lab.css, and only ui-common's astryx/lab entry, which nothing imports, reaches the lab forks. The ui-common notice carried forward verbatim is unchanged. The NOTICE sentence also had the stale Astryx version 0.7.0; it now says 0.7.11, the pinned version.
  • README.md: shorten the WebUI theme token acknowledgment to one clause; the full attribution stays in NOTICE.

Validation

  • python3 scripts/webui/build_bundle.py regenerates src/webui/assets/. Only third-party-licenses.txt and the manifest change. The generated JS and CSS are byte-identical to main.
  • make verify-webui: contract, theme, agents, 858 unit tests and 143 Chromium specs pass. Headed WebKit performance.spec.ts:300 (navigation feedback within 150 ms) failed locally at 330 ms on a loaded machine. Repeated three times, it fails, flakes and passes in the same proportion on main as on this branch, and the generated JS and CSS do not differ, so it is not caused by this change.

The redesign removed the last lab component, so @astryxdesign/lab is no longer imported. Drop the direct dependency and its core override, and turn off peer auto-install so pnpm stops installing it as an optional peer of ui-common. The dependency test now fails if lab is installed. The license list and NOTICE stop listing lab as shipped code, and the README acknowledgment for the WebUI theme tokens is shortened, with the full attribution kept in NOTICE.
@inureyes inureyes added type:chore Maintenance tasks (build, CI, etc.) status:review Under review priority:low Low priority labels Nov 29, 2026
@inureyes
inureyes merged commit 9ca9048 into main Nov 29, 2026
36 checks passed
@inureyes
inureyes deleted the chore/webui-drop-lab-dependency branch November 29, 2026 23:52
@inureyes inureyes added status:done Completed and removed status:review Under review labels Nov 29, 2026
@inureyes inureyes added this to the 0.9 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority status:done Completed type:chore Maintenance tasks (build, CI, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant