Repository navigation
fix(web): make the collection editor's Description box look like a field - #3704
Conversation
… styling as Name The Description textarea was transparent with a faint border, so on the editor's panel it looked like empty space. Add a shared Textarea that uses Input's fill, border, shadow and focus ring, and use it for Description.
Code Review Could Not Complete
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ❌ |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code Review Could Not Complete
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ❌ |
Review summaryReviewed head: I found nothing to fix. The Name field is a plain What I checked:
Validated features: #195 W2 passed on User manual: unaffected. The fix makes a field look like the other fields and adds no setting, label or step. Apple/Android parity: not applicable. This is a web-only styling fix with no API change. Fit: 9/10 · Readiness: 9/10 — ready
🤖 Claude Code (claude-opus-5-5) |
Problem
Closes #3693
Related issue: #192
Validation tasks: changes #195 W2; changes #194 A1
In the web collection editor, the Description box has no fill of its own and only a faint outline, so it reads as empty space on the panel rather than a field you can type in. The Name field right above it has a darker fill and a visible border. This affects every collection type (Manual, Smart, Synced list), personal and server collections, on create and edit, because
CollectionEditorrenders the same details panel for all of them.This change gives Description the same fill, border, shadow and focus ring as Name.
Approach
Name uses the shared
Inputcomponent (bg-background,border-border,shadow-xs). Description was a hand-styled<textarea>withbg-transparent,dark:bg-input/30andborder-input, which on the panel's surface comes out almost the same colour as the panel.I added a shared
Textareainweb/src/components/ui/textarea.tsxthat usesInput's classes, minus the fixed height and thefile:styles, and switched the Description field inDetailsPanel.tsxto it. The field's id, label, rows and change handling are unchanged.The app has about a dozen other hand-styled textareas. I left them alone to keep this to the one issue; they can move to
Textareaseparately if wanted.Validation
CollectionEditorPagetest files): 6 files, 89 tests pass.4018816da: the New collection editor at desktop and phone width, before and after, including the focused state.src/player/components/WatchPage.test.ts("retains the refusal without looping when no shared fallback exists"), a Watch Party test this change doesn't touch. It passes 3 out of 3 runs locally on this branch, andmainpasses CI at the same base commit, so it looks flaky: the test checks the fallback call straight after the refusal text appears, without waiting for it. I pushed an empty commit to rerun CI. Kody Code Review could not run (its provider returned HTTP 503); CodeRabbit had no actionable comments.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3704/
Surface and build: web app, Collections > New collection > Manual, dark theme (the app's only theme), desktop (1440px) and phone (390px) width. Before is upstream
4018816da; after is this branch.Risks
None identified. It only changes styling on one field.
Textareais new and has no other callers yet.Checklist
AI Disclosure
Input's styling and the existing editor tests and found no issues.