Repository navigation
Agentic Review [2]: Remove baseline / side-by-side compare subsystem - #35219
Conversation
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 1 | 1 | 0 |
| Self size | 252 KB | 73 KB | 🎉 -179 KB 🎉 |
| Dependency size | 669 KB | 669 KB | 0 B |
| Bundle Size Analyzer | Link | Link |
| @@ -88,7 +88,6 @@ const managerApi: API = { | |||
| const reviewState: ReviewState = { | |||
There was a problem hiding this comment.
Seems like the stories for ReviewPage stopped having a "new" badge, can you fix that?
There was a problem hiding this comment.
🤖 AI note (Claude Code), not written by Yann: Fixed. The "New" badge previously came from the (now-removed) baseline-absence check, so I restored it by seeding a change-detection
newstatus formanager-settings-checklist--defaultin the ReviewPage storiesbeforeEach(matching howReviewChangesButton.storiesseeds statuses). Newness is now sourced purely from change detection.
b9ebd60 to
396b6cf
Compare
fa89f91 to
0ef089d
Compare
396b6cf to
73dd7c5
Compare
0ef089d to
9beb182
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (14)
💤 Files with no reviewable changes (9)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughRemoves the baseline comparison feature from the review addon end-to-end: deletes the ChangesRemove baseline/compare-mode from review addon
Fix UniversalStore isolated instance readiness
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
Comment |
9da9ee9 to
f26f113
Compare
Deletes the entire latest-vs-baseline compare feature (Q5), an unreleased sub-feature of the review addon: - Deletes ReviewCompareTool, ReviewPreviewWrapper, and useBaselineComparison. - Removes the compare menu, hasBaseline, CompareMode/DEFAULT_COMPARE_MODE, PREVIEW_MODE_SESSION_KEY, and the baselineStoryIds fetch/diff from the provider and store. - Removes the dev-server baseline proxy (experimental_devServer, STORYBOOK_REVIEW_BASELINE) and drops the http-proxy-middleware dependency; sirv is no longer used by the review addon. experimental_serverChannel (the review cache + module-graph staleness) is kept. - "Newly added" now derives solely from change-detection's `new` status. Self-resolves the Pane/LatestPane styled-component duplication, the dead latestPaneRef, and useBaselineComparison's unused return surface. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…al stores An isolated MockUniversalStore resolved the global preparation with its own private channel, which other stores created in an unprepared context then adopted. In the built Storybook (where the externalized Channel is shared) this produced two `storybook/status` leaders on one channel, flipping the store into an error state and throwing "Cannot set state before store is ready" when stories seeded statuses. A store created with environment overrides no longer resolves the global preparation, and `untilReady()` now treats an already-prepared store as ready (consistent with the `status` getter) so untilReady-based APIs still work in mock-only environments.
f26f113 to
867db42
Compare
2c71d76
into
yann/agentic-review-mcp-integration
What I did
Removes the entire latest-vs-baseline side-by-side compare subsystem from the review addon (decision Q5). This is PR2 of a 5-PR stack integrating the review feature into core. It telescopes on PR1 (#35218) — review bottom-up.
Compare is an unreleased sub-feature (it lives on
nextvia #34837), so this ismaintenance, not a breaking change.ReviewCompareTool.tsx,ReviewPreviewWrapper.tsx,screens/useBaselineComparison.ts.hasBaseline,CompareMode/DEFAULT_COMPARE_MODE,PREVIEW_MODE_SESSION_KEY, thebaselineStoryIdsfetch + diff, and thecompareMode/showCompare/setCompareModestore surface.experimental_devServer,STORYBOOK_REVIEW_BASELINE,BASELINE_PROXY_PATH) and dropped thehttp-proxy-middlewaredependency;sirvis no longer used by the review addon.experimental_serverChannel(the review cache + module-graph staleness) is kept — it moves to core-server in PR4.newstatus (previously it waschange-new OR absent-from-baseline).Incidentally resolves the
Pane/LatestPanestyled-component duplication, the deadlatestPaneRef, anduseBaselineComparison's unused return surface.Stack position
Base:
review-core/01-standalone-fixes(PR1, #35218) →yann/agentic-review-mcp-integration(#34837).Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
For a maintainer to verify compare is gone and review still works:
yarn task sandbox --template react-vite/default-ts --start-from auto) orcd code && yarn storybook:ui.display-reviewMCP tool /scripts/display-review.ts) and open one of the curated stories.STORYBOOK_REVIEW_BASELINEnow has no effect.Documentation
Checklist for Maintainers
ci:normalqa:neededmaintenance🤖 Generated with Claude Code
Summary by CodeRabbit