Restored from origin/main (b4663fb): - .github/ workflows and issue templates - .gitignore (proper exclusions) - .opencode/agent/web_developer.md - AGENTS.md, BUILD.md, PROGRESS.md - dev-docs/ (9 architecture/implementation docs) - docs/screenshots/ (4 UI screenshots) - images/ (CodeNomad icons) - package-lock.json (dependency lockfile) - tasks/ (25+ project task files) Also restored original source files that were modified: - packages/ui/src/App.tsx - packages/ui/src/lib/logger.ts - packages/ui/src/stores/instances.ts - packages/server/src/server/routes/workspaces.ts - packages/server/src/workspaces/manager.ts - packages/server/src/workspaces/runtime.ts - packages/server/package.json Kept new additions: - Install-*.bat/.sh (enhanced installers) - Launch-*.bat/.sh (new launchers) - README.md (SEO optimized with GLM 4.7)
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.