Repository navigation
chore(webui): drop the unused lab dependency and trim the README - #3565
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #3526. The redesign removed the last lab component (the
Draweradapter), so@astryxdesign/labis 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/labdependency.webui/pnpm-workspace.yaml: drop the@astryxdesign/lab>@astryxdesign/coreoverride, which existed only for lab, and setautoInstallPeers: 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.txtandNOTICE: stop listing lab as shipped code. No lab code or stylesheet was in the bundle:src/ui-common-entry.cssnever importedlab/lab.css, and only ui-common'sastryx/labentry, 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 inNOTICE.Validation
python3 scripts/webui/build_bundle.pyregeneratessrc/webui/assets/. Onlythird-party-licenses.txtand the manifest change. The generated JS and CSS are byte-identical tomain.make verify-webui: contract, theme, agents, 858 unit tests and 143 Chromium specs pass. Headed WebKitperformance.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 onmainas on this branch, and the generated JS and CSS do not differ, so it is not caused by this change.