Some checks failed
Release Binaries / release (push) Has been cancelled
Features: - Binary-Free Mode: No OpenCode binary required - NomadArch Native mode with free Zen models - Native session management - Provider routing (Zen, Qwen, Z.AI) - Fixed MCP connection with explicit connectAll() - Updated installers and launchers for all platforms - UI binary selector with Native option Free Models Available: - GPT-5 Nano (400K context) - Grok Code Fast 1 (256K context) - GLM-4.7 (205K context) - Doubao Seed Code (256K context) - Big Pickle (200K context)
1.5 KiB
1.5 KiB
Task 054 - Attachment & Misc Chip Refactor
Goal
Standardize attachment chips and any remaining inline badge styles to use the shared token helpers.
Prerequisites
- Task 053 complete (markdown styling moved).
Acceptance Criteria
src/components/attachment-chip.tsxuses the.attachment-chipand.attachment-removehelpers (or equivalent token-backed utilities) instead of hardcoded Tailwind color stacks.- Any other chip/badge helpers introduced in earlier tasks reference the same token palette (audit
folder-selection-view.tsx,unified-picker.tsx, etc.). - No component contains inline
bg-blue-*/dark:bg-blue-*combinations after the refactor. - Interaction states (hover, focus) remain consistent in both themes.
Steps
- Update
attachment-chip.tsxto import and use the shared helper classes. - Search the codebase for remaining
bg-blue-,bg-gray-900,dark:bg-blue-patterns; convert them to tokenized utilities or helpers. - Adjust
components.csshelpers if needed (e.g., expose variations for neutral vs accent chips). - Verify attachments display correctly in the prompt input and message list.
Testing Checklist
- Run
npm run build. - Manually add/remove attachments via the prompt input, confirming chip styling survives theme toggle.
Dependencies
- Depends on Task 053.
- Finalizes legacy styling removal.
Estimated Time
0.5 hours
Notes
- Branch suggestion:
feature/task-054-attachment-chip-refactor. - Document any new helper names in the task PR for traceability.