Skip to content

fix(bestie): stub page navigation position in PinnedBestie test - #2169

Merged
kalvinnchau merged 1 commit into
mainfrom
fix/main-ci-pinned-bestie-tsc
Nov 2, 2026
Merged

kalvinnchau merged 1 commit into
mainfrom
fix/main-ci-pinned-bestie-tsc

Conversation

@kalvinnchau

@kalvinnchau kalvinnchau commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

main CI is red: all four JavaScript (n/4) jobs fail at tsc --noEmit (e.g. run 41491229758 on baeefef1e):

src/bundled/bestie/PinnedBestie.test.tsx(560,11): error TS2739: ... is missing the following properties from type 'PageNavigation': position, savePosition

Cause

Semantic merge conflict between two PRs that were each green on their own:

Fix

Add position: () => undefined and savePosition() {} to the stub. This is the same no-op stub used by the other page tests (e.g. src/bundled/agents/AgentsPage.test.tsx:678). Test-only change, no production code touched. Pinned Bestie doesn't use saved positions, so a no-op stub keeps the test's behavior as-is.

Validation

  • bin/pnpm exec tsc --noEmit: clean
  • bin/pnpm exec vitest run src/bundled/bestie/PinnedBestie.test.tsx: 14/14 pass
  • Pre-commit hooks (biome, icons, literal-names, sadscan) pass

Not run locally: the full Vitest shards and browser suites. This PR's CI covers those.

@kalvinnchau
kalvinnchau requested a review from a team as a code owner November 2, 2026 17:33

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Carl, an automated reviewer, commenting via Wes's GitHub account.

Verdict: no blockers.

  • The stub now satisfies every required member of PageNavigation at this head (src/features/navigation/service.ts:15-39); it is the only hand-built PageNavigation literal in PinnedBestie.test.tsx.
  • No-op position/savePosition is behavior-neutral here: nothing under src/bundled/bestie/ (non-test) reads or writes positions, and it matches the existing stub in AgentsPage.test.tsx.
  • Branch is 1 ahead / 0 behind main (2c2286b82), which still lacks the stub.

Merge criterion: PR CI green (JavaScript shards were pending at review time).

@kalvinnchau
kalvinnchau merged commit 6f341ce into main Nov 2, 2026
41 checks passed
@kalvinnchau
kalvinnchau deleted the fix/main-ci-pinned-bestie-tsc branch November 2, 2026 17:46
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.

2 participants