Repository navigation
fix(web): keep the smart collection details step in one column below xl - #1679
Conversation
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]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe user and admin smart collection details grids now switch to two columns at the extra-large breakpoint. Their existing column layouts remain unchanged. ChangesSmart collection layout
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
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
Step2UserMetadataandStep2AdminMetadatainSmartCollectionWizard.tsxnow usexl:grid-cols-[…]instead ofmd:grid-cols-[…]. That matches the other form-plus-side-panel editors, includingImportedCollectionEditor.tsxandadminCollectionsShared.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 --checkandtsc --noEmitpass.The
SmartCollectionWizard,CollectionEditorandAdminCollectionEditorvitest 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:
md:)xl:)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
AI Disclosure
Note
Keep smart collection details step stacked below
xlbreakpointChanges the metadata form grid breakpoint from
mdtoxlin bothStep2UserMetadataandStep2AdminMetadatain 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.