Skip to content

fix(web): make the collection editor's Description box look like a field - #3704

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
blurbery:fix/collection-description-field
Nov 9, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
blurbery:fix/collection-description-field

Conversation

@blurbery

@blurbery blurbery commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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 CollectionEditor renders 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 Input component (bg-background, border-border, shadow-xs). Description was a hand-styled <textarea> with bg-transparent, dark:bg-input/30 and border-input, which on the panel's surface comes out almost the same colour as the panel.

I added a shared Textarea in web/src/components/ui/textarea.tsx that uses Input's classes, minus the fixed height and the file: styles, and switched the Description field in DetailsPanel.tsx to 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 Textarea separately if wanted.

Validation

  • Focused web tests for the collection editor (CollectionEditorPage test files): 6 files, 89 tests pass.
  • Prettier and ESLint pass on both changed files.
  • Checked by hand on a local dev stack built from 4018816da: the New collection editor at desktop and phone width, before and after, including the focused state.
  • CI: Web checks, Web build and Web test shards 2 to 4 pass. Web test shard 1 failed once in 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, and main passes 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. Textarea is new and has no other callers yet.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (Claude desktop app)
  • Tool(s): Claude Code, GitHub CLI, Git, Playwright (for captures)
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted with Claude Opus. I directed the task and designed the work.
  • Adversarial review: n/a for a styling-only change. A separate review agent checked the diff against Input's styling and the existing editor tests and found no issues.

… 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.
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 9, 2026
@silo-kody

silo-kody Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Code Review Could Not Complete ⚠️

The review failed before suggestions could be generated.

Reason: Transient error reaching the provider (openai_compatible). Try again.

openai_compatible · gpt-6.1-terra · HTTP 503 · generalist

Provider said: auth_unavailable: no auth available (providers=codex, model=gpt-6.1-terra; last upstream error: unauthorized: token: [REDACTED] "type": "invalid_request_error", "param": null, "code": "refresh_token_expired" } })

After fixing the issue, comment @kody review on this PR to re-run the review.

Silo Kody — review incomplete

This review did not finish. Resolve the error reported above, then retry with @kody start-review in a PR comment. Treat any comments already posted as a partial review.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

​

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The collection editor now uses a shared Textarea component for its description field. The component applies default styles and forwards textarea props. The field's value and change handling remain unchanged.

Changes: Collection description field

Layer / File(s) Summary
Shared textarea and editor integration
web/src/components/ui/textarea.tsx, web/src/components/collections/editor/DetailsPanel.tsx
A shared Textarea component applies default styling and forwards textarea props. The collection editor uses it for the description field, with value and change handling unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related issues

  • Validation tracker for Collections Web: its W2 result records the description field styling finding addressed by this change. The tracker’s validation status is unchanged.

Suggested reviewers: quick104

Merge Risk: Minimal · up to 8c6a3

Merge Risk: ⚪ Minimal · up to 8c6a3

No merge-blocking defect was identified in the textarea change. Check the failed web-test CI result before merging.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title names the main change: the collection editor's Description box now gets the same fill and border as a field. It matches the changeset, which adds a shared Textarea and uses it in DetailsPane…
Linked Issues check Passed Directly linked issue #3693 requires the collection editor Description field to use the same fill and border as the Name field, so it reads as a text field. The whole-PR diff against merge base 401881…
Out of Scope Changes check Passed The whole-PR diff contains only two files: the DetailsPanel.tsx change (import plus swap of the Description element, with id, label, rows, value and onChange unchanged) and the new textarea.tsx compon…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Description check Passed The description states the problem, approach, validation, and risks for a styling change to the collection editor's Description field. It names the changed files (DetailsPanel.tsx and the new shared T…
Full details: Title check

Explanation

The title names the main change: the collection editor's Description box now gets the same fill and border as a field. It matches the changeset, which adds a shared Textarea and uses it in DetailsPanel.tsx. The fix(web) prefix and the 72-character length are acceptable.

Full details: Linked Issues check

Explanation

Directly linked issue #3693 requires the collection editor Description field to use the same fill and border as the Name field, so it reads as a text field. The whole-PR diff against merge base 4018816 changes two files. In web/src/components/collections/editor/DetailsPanel.tsx, the Description field changes from a hand-styled <textarea> (bg-transparent, dark:bg-input/30, border-input) to the new shared Textarea. In web/src/components/ui/textarea.tsx, Textarea uses the same base classes as the shared Input (border-border, bg-background, shadow-xs, focus-visible ring). Input is the component that Name uses. The only differences are min-h-16 in place of Input's fixed h-9, and the omitted file: styles. Fill, border, shadow and focus ring therefore match Name. CollectionEditor renders this one DetailsPanel for every collection type, so the change covers all types, as the issue requires. The issue has no coding requirement for automated tests. Validation tasks #195 W2 and #194 A1 are stated as non-blocking, and #192 is parent context only. Visual match was checked from the code, not by rendering. The author's manual captures are not published in the PR.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff contains only two files: the DetailsPanel.tsx change (import plus swap of the Description element, with id, label, rows, value and onChange unchanged) and the new textarea.tsx component. The new component is the shared implementation that the Description fix uses, so it supports the linked objective. The PR leaves about a dozen other hand-styled textareas unchanged. That choice keeps the change inside #3693 and does not add unrelated work. No change lacks a connection to the linked issue.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

Full details: Description check

Explanation

The description states the problem, approach, validation, and risks for a styling change to the collection editor's Description field. It names the changed files (DetailsPanel.tsx and the new shared Textarea component) and explains that the field now uses the same fill, border, shadow, and focus ring as the Name field. This matches the raw summary and PR objectives, so the description is clearly related to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 50bc0174-242e-4728-8ab2-ace79984ca81
Commits

Reviewing files that changed from the base of the PR and between 4018816 and f745ef0.

Files selected for processing: 2

  • web/src/components/collections/editor/DetailsPanel.tsx
  • web/src/components/ui/textarea.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@silo-kody

silo-kody Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Code Review Could Not Complete ⚠️

The review failed before suggestions could be generated.

Reason: Transient error reaching the provider (openai_compatible). Try again.

openai_compatible · gpt-6.1-terra · HTTP 503 · generalist

Provider said: auth_unavailable: no auth available (providers=codex, model=gpt-6.1-terra; last upstream error: unauthorized: token: [REDACTED] "type": "invalid_request_error", "param": null, "code": "refresh_token_expired" } })

After fixing the issue, comment @kody review on this PR to re-run the review.

Silo Kody — review incomplete

This review did not finish. Resolve the error reported above, then retry with @kody start-review in a PR comment. Treat any comments already posted as a partial review.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

​

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 9, 2026
@Quick104

Quick104 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: 8c6a30deacb7c0907c75c0b8be69d7381a534f8d

I found nothing to fix. The Name field is a plain Input with no class overrides, and the new Textarea uses the same fill, border, shadow, focus ring, disabled and aria-invalid classes, minus Input's fixed h-9 and its file: styles. Description now matches Name on every collection type, because CollectionEditor uses this one panel for all of them. The field's id, label, rows, value and change handler are unchanged.

What I checked:

  • main hasn't touched DetailsPanel.tsx or components/ui/ since this branch's base, 4018816da, so the branch is current.
  • web/src/components/ui/ is the ui alias in web/components.json, so the new component sits where shared primitives go.
  • The PR adds no tests, and this styling change needs none under CONTRIBUTING.md's "Decide what to test".
  • The Web test shard 1 failure mentioned in the description is in WatchPage.test.ts, which this PR doesn't touch. test(web): wait for the Watch Party fallback call before checking it #3708 already fixes that test's race. CI is green on the current head.
  • I skipped the cross-provider review round because the change only affects styling.

Validated features: #195 W2 passed on 4018816da, with #3693 recorded as a non-blocking finding. This PR changes only how the Description field looks, and the W2 steps still work. #194 A1 hasn't been run yet. The PR's Validation tasks: line is accurate.

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

  • Fit: it fixes a polish bug found during 1.0 validation and reuses the shared input styling instead of keeping one more hand-styled field.
  • Readiness: no concerns remain. The author published before and after captures of the field, and the code matches Input class for class.

🤖 Claude Code (claude-opus-5-5)

@Quick104
Quick104 merged commit 6e2f42f into Silo-Server:main Nov 9, 2026
19 of 20 checks passed
This was referenced Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Collection editor's Description box blends into the panel and doesn't look like a field

2 participants