Skip to content

feat: attachment component - #58

Merged
zyx1121 merged 1 commit into
mainfrom
feat/attachment
Oct 7, 2026
Merged

zyx1121 merged 1 commit into
mainfrom
feat/attachment

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 7, 2026

Copy link
Copy Markdown
Member

WinLab version of shadcn's base-nova attachment, for portal's receipt, trip, approve and door-sound files.

  • One size and one orientation (a row): 40px icon or thumbnail, name, a detail line, actions. Dropped sm / xs, vertical, scroll-snap group and the shimmer utility.
  • It keeps its own outline like an input (a control, not a card): rounded-menu with p-1 around the rounded-control media, per the concentric rule.
  • States idle (dashed), uploading (pulsing name, faded media), error (destructive border, media and detail), done.
  • AttachmentTrigger makes the row clickable; AttachmentAction is the ghost icon button; AttachmentGroup stacks rows with gap-2.
  • CI smoke installs it.

Verified on sandbox with WebKit, light and dark: the three demo rows render in each state.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit b7d889a into main Oct 7, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/attachment branch October 7, 2026 14:26
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