Skip to content

feat(docs): add logo intro and optimize hero animation - #29

Merged
caorushizi merged 4 commits into
masterfrom
codex/docs-hero-logo-performance
Sep 9, 2026
Merged

caorushizi merged 4 commits into
masterfrom
codex/docs-hero-logo-performance

Conversation

@caorushizi

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 9, 2026 18:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

There are concrete runtime/UX and performance issues (indefinite loading fallback on init failure, and shader-recompile churn from transparency toggling) that should be addressed before merging.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR refactors the docs home hero WebGL animation to add a brand “arc reunite” intro sequence and improve runtime efficiency by modularizing the workspace scene and optimizing render scheduling/interaction handling.

Changes:

  • Extracts the workspace scene construction + animation logic into a dedicated hero-workspace.ts module.
  • Adds procedural brand arc geometry (hero-brand-geometry.ts) and renders it as an intro element before handing off to the printed SVG mark.
  • Updates the hero canvas controller to dynamically import Three.js + RoomEnvironment, render on-demand (viewport/visibility-aware), and improve pointer interaction handling.
File summaries
File Description
apps/docs/src/app/(home)/hero-workspace.ts New shared workspace scene builder/animator (modules, board, printed logo, spotlight panels).
apps/docs/src/app/(home)/hero-canvas.tsx Reworked hero controller: dynamic imports, intro brand arcs, on-demand RAF loop, improved cleanup + interaction.
apps/docs/src/app/(home)/hero-brand-geometry.ts New procedural extruded arc geometry with analytic normals for smooth highlights.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/docs/src/app/(home)/hero-canvas.tsx
Comment thread apps/docs/src/app/(home)/hero-workspace.ts Outdated
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@vercel

vercel Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
one-cli-docs Ready Ready Preview Sep 9, 2026 7:12pm UTC

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@caorushizi
caorushizi merged commit 2ad00f2 into master Sep 9, 2026
8 checks passed
@caorushizi
caorushizi deleted the codex/docs-hero-logo-performance branch September 9, 2026 19:15

This branch was successfully deployed

1 active deployment
Preview — e5293894 Deployed Sep 9, 2026 by vercel[bot]
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.

2 participants