Skip to content

feat: action-panel block - #56

Merged
zyx1121 merged 2 commits into
mainfrom
feat/action-panel
Oct 7, 2026
Merged

zyx1121 merged 2 commits into
mainfrom
feat/action-panel

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 7, 2026

Copy link
Copy Markdown
Member

For pages whose whole job is one action, starting with portal's door page (today a 160px native emoji button with hand-made phases).

  • ActionPanel: one 192px round primary button with an optional icon and a text-title verb, for app-shell's spotlight layout.
  • Phases: ready, pending (開門中…, locked), done (success fill with doneLabel for resetAfter ms), back to ready; a throw returns to ready for the caller's toast.
  • disabledReason greys it out and says why under it.
  • Press scales to 95%, dropped under reduced motion.
  • CI smoke installs the block.

Verified on sandbox with WebKit, light and dark: 開門 → 開門中… (disabled) → 已開門 → 開門 after 3s.

Found while building: cn treats text-title / text-body as colors and drops them next to a text color; this block wraps the label in its own span. The registry-wide fix follows in a separate PR.

🤖 Generated with Claude Code

zyx1121 and others added 2 commits October 7, 2026 22:14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit aec73ec into main Oct 7, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/action-panel branch October 7, 2026 14:19
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