Skip to content

Automated pipeline validation#29

Merged
theepicsaxguy merged 5 commits intomainfrom
cursor/automated-pipeline-validation-d73f
Feb 21, 2026
Merged

Automated pipeline validation#29
theepicsaxguy merged 5 commits intomainfrom
cursor/automated-pipeline-validation-d73f

Conversation

@theepicsaxguy
Copy link
Copy Markdown
Owner

Implements a fully automated API generation and validation pipeline, fixes 7 critical UI/UX bugs, and adds comprehensive E2E tests to prevent regressions.

This PR overhauls the frontend development process by automating API client generation, eliminating manual maintenance, and introducing strict CI validation. It addresses 7 critical, long-standing bugs including invisible mobile overlays, SPA hash desynchronization, accidental touch swipes, XSS vulnerabilities, audio duration race conditions, memory leaks from zombie event listeners, and state mutation by reference. The new pipeline ensures these issues are caught automatically before reaching production.


Open in Web Open in Cursor 

cursoragent and others added 5 commits February 21, 2026 20:13
- Add custom-instance.ts that auto-extracts .data from AxiosResponse
- Update orval.config.mjs to use the custom mutator
- Simplify api.ts to clean re-exports (no Proxy)
- Add typed URL builder functions (chunkAudioUrl, fullEpisodeAudioUrl, sourceCoverUrl)
- Add tsconfig.json for strict TypeScript type-checking
- Add typecheck script (tsc --noEmit) to package.json
- Regenerate client.ts with the new mutator

Co-authored-by: theepicsaxguy <theepicsaxguy@users.noreply.github.com>
1. Invisible mobile overlay deadlock: Add base CSS for .sidebar-overlay
   with pointer-events:none when not .visible
2. SPA hash routing desync: Force re-route when clicking the same
   mobile nav tab, close open bottom sheets on nav tap
3. Touch event swallowing: Tighten swipe detection to require <40px
   vertical drift and 3:1 horizontal dominance ratio
4. XSS in dom.js: Rename setContent to setTrustedHTML with clear
   documentation, add eslint-disable comments for audited usages
5. Audio duration NaN race conditions: Replace all audio.duration
   truthy checks with isFinite(audio.duration) across player modules
6. Zombie event listeners: Add initialization guards to all init
   functions (initControls, initFullscreenPlayer, initSwipeGestures,
   initTouchGestures) to prevent duplicate listener registration
7. State mutation by reference: Add deepFreeze() to state.js set()
   so subscribers cannot mutate shared state objects

Co-authored-by: theepicsaxguy <theepicsaxguy@users.noreply.github.com>
- Add no-restricted-syntax rule banning innerHTML assignment globally
- Exempt dom.js where setTrustedHTML/fromHTML are the centralized wrappers
- Migrate library.js, main.js, editor.js to use setTrustedHTML/fromHTML
- Add isFinite to ESLint globals
- ESLint passes cleanly with zero warnings

Co-authored-by: theepicsaxguy <theepicsaxguy@users.noreply.github.com>
…ects

- Add mobile-chrome (Pixel 5) and mobile-safari (iPhone 13) projects
- Add overlay deadlock tests: verify no invisible overlays block taps
- Add SPA hash routing tests: verify same-tab click resets view state
- Add console error policy: fail on any TypeError/NaN/unhandled errors
- Add memory leak regression: verify heap doesn't grow 10MB+ over 30 navs
- Add state immutability smoke test: verify frozen objects reject mutation
- Add audio race condition test: player controls safe without loaded audio
- Add mobile UI integrity tests: nav, import form, settings on mobile

Co-authored-by: theepicsaxguy <theepicsaxguy@users.noreply.github.com>
- Add 'typecheck' job: runs tsc --noEmit to validate Orval-generated
  client against frontend logic (catches stale API references)
- Add typecheck to Docker build dependency chain
- Update E2E job to run all 3 Playwright projects:
  chromium (Desktop Chrome), mobile-chrome (Pixel 5), mobile-safari (iPhone 13)
- Pipeline now enforces: Python lint, JS lint (with innerHTML ban),
  TypeScript types, API client freshness, Docker build, and
  Desktop + Mobile E2E tests

Co-authored-by: theepicsaxguy <theepicsaxguy@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Feb 21, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@theepicsaxguy theepicsaxguy marked this pull request as ready for review February 21, 2026 21:05
@theepicsaxguy theepicsaxguy merged commit a105ec7 into main Feb 21, 2026
6 of 7 checks passed
@theepicsaxguy theepicsaxguy deleted the cursor/automated-pipeline-validation-d73f branch February 21, 2026 21:05
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