Skip to content

feat(webui): add interactive particle hero background - #5340

Draft
chengyongru wants to merge 3 commits into
HKUDS:mainfrom
chengyongru:feat/webui-particle-empty-state
Draft

feat(webui): add interactive particle hero background#5340
chengyongru wants to merge 3 commits into
HKUDS:mainfrom
chengyongru:feat/webui-particle-empty-state

Conversation

@chengyongru

Copy link
Copy Markdown
Collaborator

Summary

  • add a lazy-loaded Canvas UI particle background to the empty-thread hero
  • tune particle scale, opacity, pointer response, spring motion, and compact mobile behavior
  • keep the greeting and composer layered above the interactive canvas while preserving the current message-thread layout
  • use the current bundled nanobot SVG and preserve vertical touch scrolling after OrbitControls initializes
  • document the bundled Canvas UI code under its MIT + Commons Clause terms

Validation

  • npm ci --ignore-scripts --dry-run
  • bun install --frozen-lockfile
  • bun run lint
  • bun run test (64 files, 1,006 tests)
  • bun run build
  • isolated gateway + headless browser at 1280×720 and 390×844: particle state reached ready, desktop/compact profiles selected correctly, canvas retained touch-action: pan-y, foreground controls stayed visible, and no console errors were reported

Review notes

  • Draft port of chengyongru/nanobot#315, rebased onto the current HKUDS/nanobot:main.
  • The bundled component is covered by MIT + Commons Clause terms recorded in THIRD_PARTY_NOTICES.md. Please confirm that the additional restriction is acceptable before marking this ready or merging.
  • The lazy ParticleObject production chunk is about 649.5 kB (168.0 kB gzip), above Vite's warning threshold. It is excluded from the initial bundle, but the empty-thread download/runtime cost should be reviewed.

@chengyongru
chengyongru force-pushed the feat/webui-particle-empty-state branch from 67e9ca2 to e9d8256 Compare August 12, 2026 10:12
@chengyongru
chengyongru force-pushed the feat/webui-particle-empty-state branch from e9d8256 to 951dc09 Compare August 12, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant