refactor(share-modal): tokenize interior palette (cleanup Brief 2) #129
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#129
Loading…
Reference in a new issue
No description provided.
Delete branch "cleanup-brief-2-share-modal-interior"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Brief 2 of
cleanup-card-item-list-and-share-modal-palette. Pure interior palette token sweep acrosscomponents/ShareModal.js. The modal SURFACE was already correct (delegates to<Modal>→<GlassSurface>) and the user-search-dropdown + email-invite-card areas were updated in PR #117 — this brief addresses the residual interior rows.Same dark-mode-visibility bug class as Brief 1: pre-PR, the interior used
bg-gray-50/bg-white/text-gray-{500,700,900}with nodark:variants, making rows unreadable in dark theme.Files changed
components/ShareModal.js— interior only. Net diff: +141 / -36.Major substitutions
border rounded-lg(default 1px gray)1px solid var(--border)+var(--bg-secondary)+rounded-xltext-gray-{400,500,900}var(--text-primary)/var(--text-secondary)bg-blue-600(on) /bg-gray-200(off)var(--accent-ember)/var(--bg-tertiary)+ 1px borderbg-whitergb(255, 255, 255)(theme-independent white for contrast)border-gray-300+focus:ring-blue-500var(--input-border)+var(--input-bg)+ ember focus ringtext-gray-400var(--text-secondary)bg-gray-50 rounded-lgvar(--bg-secondary)+var(--border)+rounded-xlbg-purple-600linear-gradient(135deg, var(--accent-ember), var(--accent-flame))bg-white rounded bordervar(--bg-tertiary)+var(--text-secondary)+ 1px ember border +rounded-xlborder rounded-lgvar(--border)+var(--bg-secondary)+rounded-xlbg-gray-400var(--bg-tertiary)+ 1px borderbg-gray-100 roundedvar(--bg-tertiary)+var(--text-secondary)+rounded-xlbg-gray-50 border-gray-300 text-gray-600 rounded-lgvar(--input-bg)+var(--input-border)+var(--text-primary)+rounded-xl<button>w/bg-blue-600 ... hover:bg-blue-700<Button variant="primary">fromcomponents/uibg-green-100 text-green-800 border-green-200var(--bg-secondary)+var(--accent-flame)+ ember border (as a non-interactive badge)text-gray-600var(--text-secondary)Notable choices
Avatar gradient
The current-user avatar moves from
bg-purple-600to the samelinear-gradient(135deg, var(--accent-ember) 0%, var(--accent-flame) 100%)style used by theTopSearchBarUserMenu chip. Visual continuity across "this is me" surfaces.Copy linkbuttonReplaced the raw
<button>with<Button variant="primary">fromcomponents/ui— consistent with the redesign-v2 button surface. TheCopied!success state stays as a styled non-interactive badge (you can't re-click "Copied!" anyway).New import
import { Modal, Button } from './ui'(addedButton).Acceptance criteria
grep -nE 'bg-(palette)-[0-9]|text-(...)|border-(...)' components/ShareModal.js→ 0 matches.npm run lintpasses (1 pre-existing unrelated warning).npm run test:run: 118/118 tests pass.Test plan (manual — dark mode is critical)
Related
.convoys/cleanup-card-item-list-and-share-modal-palette.mdCardItem.jslist-mode).Made with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.