Skip to content

fix(web): keep the smart collection details step in one column below xl - #1679

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Tobechukwu-Njoku:fix/smart-collection-editor-breakpoint
Sep 29, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Tobechukwu-Njoku:fix/smart-collection-editor-breakpoint

Conversation

@Tobechukwu-Njoku

@Tobechukwu-Njoku Tobechukwu-Njoku commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1610
Related issue: #195
Validation tasks: none

The smart collection editor's details step switches to two columns at 768px, but the form isn't readable next to the side column until about 1280px. Between those widths, and more so once the 260px app sidebar appears at 1024px, the name and description fields are squeezed into a narrow strip. This affects both personal and admin smart collections.

Approach

Step2UserMetadata and Step2AdminMetadata in SmartCollectionWizard.tsx now use xl:grid-cols-[…] instead of md:grid-cols-[…]. That matches the other form-plus-side-panel editors, including ImportedCollectionEditor.tsx and adminCollectionsShared.tsx. Below 1280px the poster and preview column stacks under the form. Nothing else in the two steps depends on the breakpoint.

Validation

  • eslint, prettier --check and tsc --noEmit pass.

  • The SmartCollectionWizard, CollectionEditor and AdminCollectionEditor vitest suites pass (13 tests).

  • Checked in a browser against a local source build (backend from this branch, PostgreSQL and Redis from the repo's Compose file, Vite dev server), with a scanned three-film library and a personal smart collection. Measured the details step's grid columns before and after:

    Viewport Before (md:) After (xl:)
    900px form 492px, side 288px one column, 804px
    1100px (sidebar shown) form 368px, side 288px one column, 680px
    1300px two columns form 536px, side 288px
  • The admin variant (Step2AdminMetadata, 22rem side column) gets the same one-class change but was not opened in the browser.

Risks

None identified. Layout only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (Claude desktop app)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

Note

Keep smart collection details step stacked below xl breakpoint

Changes the metadata form grid breakpoint from md to xl in both Step2UserMetadata and Step2AdminMetadata in SmartCollectionWizard.tsx. The form and artwork column now stack at medium and large widths and sit side-by-side only at extra-large widths.

Macroscope summarized 23e3bb2.

The smart collection editor split its details step into a form column and
an 18rem (user) or 22rem (admin) side column from the md breakpoint
(768px). From 1024px the app sidebar also takes 260px, so between 768 and
1280px the form column was squeezed too narrow to read. Switch both grids
at xl, as the other form-plus-side-panel editors already do.

Closes Silo-Server#1610

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kody-ai

kody-ai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

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.

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

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
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 Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 36fb06df-d121-4db6-a9e2-354685629edf

📥 Commits

Reviewing files that changed from the base of the PR and between 19e8184 and 23e3bb2.

📒 Files selected for processing (1)
  • web/src/pages/SmartCollectionWizard.tsx

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


📝 Walkthrough

Walkthrough

The user and admin smart collection details grids now switch to two columns at the extra-large breakpoint. Their existing column layouts remain unchanged.

Changes

Smart collection layout

Layer / File(s) Summary
Details grid breakpoints
web/src/pages/SmartCollectionWizard.tsx
The user and admin details grids now use the extra-large breakpoint for their existing two-column layouts.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: quick104

Merge Risk: ⚪ Minimal · up to 23e3b

Both personal and admin details pages now stack below 1280px and use their existing two-column layouts at and above 1280px, matching the requested behavior. No actionable merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: keeping the smart collection details step in one column below the xl breakpoint.
Description check ✅ Passed The description directly explains the layout problem, the breakpoint change for both user and admin collections, validation results, and related risks.
Linked Issues check ✅ Passed Issue #1610 requires both regular-user and admin smart collection details grids to remain one column until the xl breakpoint. The PR changes both md:grid-cols-[minmax(0,1fr)_18rem] and `md:grid-co…
Out of Scope Changes check ✅ Passed The PR changes only the two smart collection details grid breakpoints required by issue #1610. The existing column definitions remain unchanged. No unrelated source changes are reported.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Quick104
Quick104 merged commit 3a86162 into Silo-Server:main Sep 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Smart collection editor switches to two columns before there is room for them

2 participants