Skip to content

refactor(web): build the ui on the pavo material 3 library - #39

Open
TheMeinerLP wants to merge 1 commit into
mainfrom
refactor/web-pavo
Open

TheMeinerLP wants to merge 1 commit into
mainfrom
refactor/web-pavo

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Summary

Grus carried its own copy of the Material 3 kit. The web UI now uses the shared library @onelitefeathernet/pavo (0.2.0) instead, so fixes and new components arrive by updating one dependency. The local kit, its token generator and the Roboto font packages are removed. Grus keeps its own icon set and registers it with Pavo.

What changes for users

  • The look is unchanged.
  • The theme choice resets once, because the storage key moves to pavo.theme.
  • Five icons that rendered empty before now show.

How it was checked

  • pnpm exec nuxt prepare: pass
  • pnpm lint: pass
  • pnpm typecheck: pass
  • pnpm exec vitest run --maxWorkers=2: 23 files, 199 tests pass, no vitest workaround needed
  • pnpm build: pass (node-server target)
  • docker build --secret id=npm_token,env=NODE_AUTH_TOKEN -f web/Dockerfile .: pass
  • Runtime image: no /app/.npmrc, no NODE_AUTH_TOKEN in the image config, and the token value does not occur in the saved image archive

Blocker – do not merge yet

The shared docker-publish workflow (OneLiteFeatherNET/workflows v2.9.1) has no way to pass a BuildKit secret. After this merge, the grus-web job in prototype-images.yml would fail, because the image build needs the npm_token secret to install Pavo from GitHub Packages.

Options:

  • (a) Extend docker-publish.yml with an optional build secret (for example an input npm-token-secret that maps to secrets: npm_token=... of docker/build-push-action). This needs a PR in OneLiteFeatherNET/workflows and a new tag.
  • (b) Build the web output in a job of this repository and pass it through the existing artifact-name input. The Dockerfile then only copies .output.
  • (c) Vendor the packed Pavo tarball in web/.

Grus carried its own copy of the Material 3 kit (components,
tokens, theme composable, icon setup). The shared library
@onelitefeathernet/pavo now provides these, so the web UI depends
on it instead of maintaining the copy. Fixes and new components
arrive by updating one dependency.

The local kit, its token generator and the Roboto font packages
are removed. Pages use the Pavo components and M3AppFrame for the
shell. Grus registers its own icon set with the Pavo icon
registry. The Dockerfile reads the GitHub Packages token from a
BuildKit secret, which is not written into any image layer.

The theme storage key moves to pavo.theme, so a stored theme
choice resets once.
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