Repository navigation
fix(ci): unblock Activity unused-export checks - #199312
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Please review the two-file Activity test-helper cleanup at |
|
🦞👀 Re-review progress:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesDeletes the unused scrollRemainder helper and makes createActivityGatewayStub module-private. Example: Run the full-tree unused-export check after the Activity feed removal.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides the smallest complete cleanup for the orphaned Activity exports, with no actionable patch defects found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherActivity test-support modules supply browser assertions and Gateway fixtures to UI tests; Knip audits their externally consumed exports. flowchart LR
A[Activity browser tests] --> B[Browser assertion helpers]
C[Activity page tests] --> D[Inspector fixture]
D --> E[Private Gateway stub]
F[Full-tree Knip audit] --> B
F --> D
Technical reviewBest possible solution: Remove the unused helper and narrow the remaining fixture's visibility while preserving its inspector caller. Do we have a high-confidence way to reproduce the issue? Source confirms both orphaned exports and the retained internal caller; the author reports exact-parent red/green Knip results, which were not rerun during this read-only review. Is this the best way to solve the issue? Both hunks directly restore the unused-export invariant using existing owners, without replacement scaffolding, suppressions, or weakened assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7a4e9f177fcb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -6. Total -6 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 6:32 PM ET / 23:32 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes main's full-tree unused-export check after the Activity tool-feed removal in #199168 (
a806af1be280ea36b593eee9ccaf9f8002371e00). It left two test-helper exports without external consumers.Why
Delete
scrollRemainder, whose final caller was removed from the Activity refresh E2E. MakecreateActivityGatewayStubmodule-private:inspectorGatewaystill uses it in the same file, while its final external caller was removed from the Activity page tests.This completes the follow-up identified while landing #199304. No replacement helper, ignore rule, baseline relaxation or assertion change is needed.
User Impact
The unused-export gate passes again. Product behavior and existing Activity test coverage are unchanged. Test helpers shrink by six lines; production LOC delta is zero.
Evidence
Fresh branch from main
491c2944f56ad7d6d9a561a17dfffcd42cab49e3.scrollRemainderandcreateActivityGatewayStub.pnpm test ui/src/pages/activity/activity-page.test.ts ui/src/pages/activity/activity-page.presence.test.ts ui/src/pages/activity/activity-page.query-readiness.test.ts --maxWorkers=1: 20/20 passed across three files.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/activity-polish.e2e.test.ts ui/src/e2e/activity-session-refresh.e2e.test.ts: 7/7 passed across two files.pnpm dlx --package [email protected] knip --config config/knip.all-exports.config.ts --no-progress --reporter compact --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers --no-config-hints.pnpm check:changedpasses, including affected UI typechecks, formatting/lint, controller guards and all three unused-export scans.git diff --checkpasses.0dd04f7a12b924eb737a547ccdf42e56a46db83c, including all three UI shards and the UI E2E shard.