Skip to content

feat(design): v0.3 — data/dashboard + Bitcoin-domain primitives#20

Merged
Xaxis merged 1 commit into
mainfrom
design-v03-primitives
May 25, 2026
Merged

feat(design): v0.3 — data/dashboard + Bitcoin-domain primitives#20
Xaxis merged 1 commit into
mainfrom
design-v03-primitives

Conversation

@Xaxis
Copy link
Copy Markdown
Contributor

@Xaxis Xaxis commented May 25, 2026

Fills the gaps the deep dive found (me/vault/fleet/analytics). Data tier: Card, Sparkline, StatBlock, Bar, generic StatusPill. Bitcoin tier: /format utils (formatSats/satsToUsd/shortenAddress/relativeTime/explorerUrl) + SatsAmount/BitcoinAddress/CopyButton/QrCode. 72 stories, all browser-verified render+AA. Fixed a satsToUsd Intl RangeError caught by the gate. No site touched.

…fill from deep dive)

The deep dive across me/vault/fleet/analytics showed the canonical set (extracted
from simple oc-stamp-web) was missing whole categories the complex sites
reimplement. Fills them, ported from the real implementations:

Data/dashboard tier: Card (terminal-frame, expand→Modal), Sparkline, StatBlock
(delta/trend), Bar (progress), StatusPill (generic tone-mapped — the canonical
form of fleet's agent/pledge/event pills + me's compliance/severity pills).

Bitcoin-domain tier: new @orangecheck/design/format subpath (formatSats,
formatSatsCompact, satsToUsd, usdToSats, priceBoth, relativeTime, shortenAddress,
explorerUrl) + components SatsAmount, BitcoinAddress, CopyButton (auto-wipe),
QrCode (qrcode pkg). Crypto (BIP-322/bech32) intentionally NOT here.

Storybook now 72 stories. Browser-verified: 72/72 render styled & error-free;
4/4 themes distinct; AA holds (only the pre-existing orangecheck brand-orange
accent at 2.93 remains, by design). Fixed a real satsToUsd bug found by the
gate (Intl min>max RangeError for amounts >= $100).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

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

Project Deployment Actions Updated (UTC)
oc-design-web Ready Ready Preview, Comment May 25, 2026 3:14pm

Request Review

@Xaxis Xaxis merged commit 1c4ab69 into main May 25, 2026
36 checks passed
@Xaxis Xaxis deleted the design-v03-primitives branch May 25, 2026 15:14
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