diff --git a/.gitignore b/.gitignore index b400344..4c1b8bc 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,12 @@ yarn.lock coverage/ *.log +# Test artifacts +test-results/ +playwright-report/ + # dev env .direnv + +# pnpm local store index (created by root installs) +.pnpm-store/ diff --git a/README.md b/README.md index f8f3756..574741b 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ The project is split into three workspaces: The `client/src/shared/` and `server/src/shared/` directories contain mirrored type definitions: - `BaseUser` — Minimal user representation (`id`, `username`, `isAdmin`, `joinedAt`) -- `ClientEvents` — Events sent from client to server (`cinema:play`, `cinema:pause`, `cinema:seek`, `admin:kick`, `admin:ban`, `admin:approve`) -- `ServerEvents` — Events sent from server to client (`connection:accepted/rejected`, `cinema:joined/left/users/playing/paused/seeked`, `waiting-room:joined/left`, `admin:added/left/users/kicked/banned/approved`) +- `ClientEvents` — Events sent from client to server (`cinema:play`, `cinema:pause`, `cinema:seek`, `cinema:select`, `admin:kick`, `admin:ban`, `admin:approve`) +- `ServerEvents` — Events sent from server to client (`connection:accepted/rejected`, `cinema:joined/left/users/playing/paused/seeked/state/command-rejected`, `waiting-room:joined/left`, `admin:added/left/users/kicked/banned/approved`) ## Prerequisites @@ -110,6 +110,32 @@ cd server && pnpm start cd client && pnpm start ``` +`pnpm start` serves `client/dist/` through `serve.mjs` (a small Node static +server with correct byte-range, 404, dotfile, symlink, and cache-header +behavior — `vite preview` is not used in production because it mishandles +range requests and falls back to `index.html` for missing files). It listens +on port 1730; override with `PORT`/`HOST`. + +Known, deliberate serving gaps (details in +[docs/playback-troubleshooting.md](docs/playback-troubleshooting.md)): + +- No conditional revalidation — `Last-Modified` is decorative, media + re-downloads on reuse (no `304` for `If-Modified-Since`). +- Multi-range requests are truncated to the first range (browsers never + send multi-range for `