Skip to content

fix(frontend): restore type-check and lint after the latest merges - #1454

Merged
chinweobtagaz merged 4 commits into
mainfrom
fix/frontend-after-oct-merges
Oct 18, 2026
Merged

chinweobtagaz merged 4 commits into
mainfrom
fix/frontend-after-oct-merges

Conversation

@chinweobtagaz

Copy link
Copy Markdown
Contributor

Fixes left on main after merging #1445–#1453 (6 type errors and 1 lint error).

Locally: tsc has 0 errors, lint is clean, and all 310 unit tests pass.

- SignInModal: #1450 wired AuthGate and Header to a sign-in modal but never
  added it (the file was still a commented-out stub). Implement it against
  authContext login/register, accepting both open/onOpenChange and
  isOpen/onClose, with the test ids the sign-in e2e specs use.
- Header: header-sign-in / header-username test ids; show the username.
- authContext: fix the base644 typo in decodeJWT and a stray quote (#1450).
- PlayGameEngine (#1449): pass ReconnectionBanner the isDisconnected flag it
  expects; ConnectionStatusIndicator takes optional reconnectAttempts,
  latency and className.
- Sign in: the app shell (ClientRoot) never rendered Header, so no page had
  a sign-in button. Add AuthButton (header-sign-in / header-username) to the
  shell; mock **/auth/login in both sign-in specs (the app calls
  $API_BASE/v1/auth/login, which neither mocked URL matched).
- Landing: label the bots button so both /play bots/ and /play vs bot/ match.
- Watch: target the 'Live games lobby' region (two regions matched).
- Staking: sendXLM's fallback resubmitted the raw XDR string, which always
  threw "reading 'type'" and hid the real error; drop it. The Horizon mock
  now includes _links, which stellar-sdk needs to expose data_attr for its
  memo-required check.
- Game vs bot: squares are labelled 'e4, White Pawn' / 'e4, empty'.
…build time

- Chessboard visual-regression baselines, rendered by the CI runner.
- NEXT_PUBLIC_STAKING_ESCROW_ADDRESS is inlined by next build, so setting it
  only on the Playwright webServer left the staking spec with
  'Staking escrow is not configured.'
@chinweobtagaz
chinweobtagaz merged commit 91aea54 into main Oct 18, 2026
1 check passed
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.

1 participant