feat(ai): floating-chevron hero + docs link on the account modal#51
Merged
Conversation
Elevates the signed-in Manage-account popover from clean-but-plain to the landing page's signature moment. - Hero: the levelcode.ai "portal" mark — three colored chevrons rising over four soft circles that drift (portalDrift 7s, staggered -1.4s per layer), replacing the plain SD initials. Decorative + aria-hidden; honors prefers-reduced-motion. - The modal is now a proper premium dialog: full-bleed hero, 14px radius, soft shadow, entrance pop. - Documentation link -> https://levelcode.ai/ai/docs, in a tidy footer beside the Synced line. Routed through the SAME fixed allow-list as Terms/Privacy (target 'docs' -> /ai/docs); never a webview-supplied URL, so the open-redirect guard holds. Still model-agnostic; light/One Dark keep the brand palette; high-contrast still defers to editor tokens (the hero is decorative). extension.js: openLegal() gains the 'docs' target. Verified: both files parse; full gate 24 suites; structure present. Matches the approved mockup; a live in-editor render needs the VS Code host. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the signed-in Manage-account popover UI in the levelcode-ai webview to match the levelcode.ai landing “portal” hero treatment, and adds a safe Documentation link routed through the extension’s existing allow-listed external navigation.
Changes:
- Replace the classic account card’s initials avatar with a full-bleed, decorative “portal” hero (animated chevrons + drifting circles) and update modal sizing/shadow/radius.
- Add a Documentation footer link in the popover and wire it into the existing
openExternalmessage path. - Extend the extension-side allow-list mapping (
openLegal) to include the docs target (/ai/docs).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| extensions/levelcode-ai/media/chat.html | Adds the portal hero markup/CSS (with reduced-motion guard) and a new docs action/link in the signed-in account card footer. |
| extensions/levelcode-ai/extension.js | Extends the fixed allow-list in openLegal() to support the new docs target safely. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Jul 26, 2026
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.
Builds on the merged classic account card (#50) — makes the signed-in Manage-account popover dynamic, per the approved direction.
What's new
#5fb4ff → #7d6bff → #5b3fd6) over four soft "portal" circles that drift up-and-back (portalDrift 7s,transform-origin: 50% 60%, staggered-1.4sper layer). It replaces the plainSDinitials as the hero, so the modal moves. Lifted 1:1 fromLandingPage.tsx(circles/paths/coords) +globals.css(the drift).0 18px 50px), entrance pop.https://levelcode.ai/ai/docs, in a tidy footer beside the Synced line.Safety / a11y
data-act="docs"→{type:'openExternal', target:'docs'}→openLegal()maps'docs' → '/ai/docs'. No webview-supplied URL, so the open-redirect guard is intact.aria-hidden) and the motion honorsprefers-reduced-motion(drift + pop both stop).Preview
Approved mockup (animated, both themes): https://claude.ai/code/artifact/0c955831-6ce9-444f-95b2-c211b8706e88
Verification
chat.htmlscripts parse (0 errors,vm.Script);extension.jsnode --checkclean.🤖 Generated with Claude Code