Repository navigation
fix(gallery): make bare root open a real entry - #21618
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
|
Bead |
|
Found 26 test failures on Blacksmith runners: Failures
...and 16 more test failures. View all on Blacksmith
|
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Probably yours: CI failed on
Failures:
Matched log linesNot re-run automatically: Written by red: web / Web status; NEW: green on the base 2cd6ae1; do not merge until green; see lane-rules
Agents: Tour of |
|
Unclear: CI failed on
Not re-run automatically: Written by |
|
Agents: |
|
Orphaned: no activity for 33 h, and no lane holds a lease on it. The orphan sweep could not merge |
[Low impact] The change is limited to the source gallery's bare landing route. The required regression test is still missing and must be added before merging. Findings
SummaryThe gallery root now waits for Composer and redirects to its first variant instead of waiting for every entry to finish loading.
Reviews (5) · Last reviewed commit: "Merge branch 'feat-cmux-next' into codex..." · Reviewed by Greptile |
| const variant = await firstVariant(DEFAULT_ENTRY); | ||
| if (variant) | ||
| throw redirect({ | ||
| href: `/${encodeURIComponent(entry.id)}/${encodeURIComponent(Object.keys(entry.variants)[0]!)}${stringifySearch(search)}`, | ||
| href: `/${encodeURIComponent(DEFAULT_ENTRY)}/${encodeURIComponent(variant)}${stringifySearch(search)}`, |
There was a problem hiding this comment.
The new Composer redirect has no automated regression test. CLAUDE.md requires a failing behavioral test before a bug fix. The existing entry-store test calls find, not the router or waitFor, so it does not protect this change.
Before merging, add a test that keeps another entry pending, makes Composer ready, and checks that the root redirects to its first variant while preserving search settings. Record the same test's failure on the base and pass on the head.
Context Used: CLAUDE.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
|
|
|
|
|
|
|
|
|
Orphaned: no activity for 12 h, and no lane holds a lease on it. Adopted by the orphan sweep: merged |
|
|
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
|
Owned by projects-3f on cosmic-gray · session |
…mposer is missing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15cfc-663f-7650-b9f7-64d198c6b88b&host=cosmic-gray
|
Review (subagent, correctness first): SHIP at 043d7d6 Post-merge independent review. A subagent read
Risk tier: |
|
Shipped in:
|
Summary
The bare /gallery/ source-gallery URL rendered an empty router outlet until a deep link or reload supplied an entry. It now waits only for the Composer source, then redirects to its first variant, so a cold root opens a usable, source-backed preview without compiling the full registry first.
Testing
Changelog
none (developer-gallery routing fix).
Proof
The published Lawrence gallery remains available at https://cmux-lawrences-mac-mini.tail137216.ts.net:18796/live/; local source-gallery fix is exact head 87bc350.
Checklist