Skip to content

Update Frontend#34

Merged
kernelcoffee merged 3 commits into
masterfrom
dev/frontend_update
Jul 12, 2026
Merged

Update Frontend#34
kernelcoffee merged 3 commits into
masterfrom
dev/frontend_update

Conversation

@kernelcoffee

Copy link
Copy Markdown
Owner

Update version
Add E2E tests front only

React 19.2.7, react-router 7.18, TanStack Query 5.101, Tailwind 4.3,
vite 7.3.6, vitest 4.1, typescript-eslint 8.63, zustand 5.0.14 and
friends. Lint, tsc, 170 tests and the production build all pass.
- vite 8.1 + @vitejs/plugin-react 6 (production build now ~0.6s,
  down from ~10s); vitest 4.1 runs on the same vite.
- eslint 10.7 (flat config unchanged; @eslint/js is now an explicit
  dev dependency since eslint 10 no longer provides it transitively).
- typescript 6.0.3 - the ceiling typescript-eslint 8.x supports;
  TypeScript 7 is out until typescript-eslint catches up. Dropped the
  deprecated baseUrl from tsconfig (paths are tsconfig-relative).
- jsdom 29, lucide-react 1.24, eslint-plugin-react-refresh 0.5.

Verified: eslint zero warnings, tsc clean, 170 tests pass, build OK.
11 browser tests across 4 journeys, driven against the Vite dev server
with every /api/v1 endpoint mocked in-page (no backend required):

- dashboard: stats render from analytics data, root redirect,
  scheduler stop hits POST /scheduler/stop
- settings: form loads server values (save disabled), editing
  PHPSESSID enables save and the PUT carries the new value,
  test-session flow reports the user
- giveaways: list renders, enter posts to /giveaways/{code}/enter,
  search narrows the list
- navigation: sidebar reaches all 7 pages, unknown routes fall back

e2e/mocks.ts centralizes the fixtures and returns a request log for
call assertions. New scripts: test:e2e, test:e2e:ui. Playwright
artifacts gitignored.

Known follow-up (found by these tests): History.tsx and Analytics.tsx
throw an unhandled TypeError and blank the page when the API returns
a partial/unexpected shape - they need defensive guards.
@kernelcoffee kernelcoffee merged commit a44b595 into master Jul 12, 2026
7 checks passed
@kernelcoffee kernelcoffee deleted the dev/frontend_update branch July 12, 2026 23:32
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