1.7 KiB
1.7 KiB
Flight Simulator — Workflow Rules
Change process (mandatory)
- Small, incremental changes — work is done one change at a time, in smaller parts; each part must be tested thoroughly with unit and e2e tests covering it before moving on.
- Changelog entry — every such change is listed in
CHANGELOG.mdwith date, time and version (format:## v<version> — YYYY-MM-DD HH:MM, then bullet points of what changed). - Version bump — the version is updated in
package.json. - Commit + tag — a commit is created for each change, tagged with the version (e.g.
v0.1.0).
E2E tests (mandatory)
- Compose instance is the app under test — e2e always runs against the docker-compose build behind Traefik (
https://flight.dev.kkhost.pl), never a localnext devon :3000 (dev builds don't render for non-loopback clients, and a second instance splits state). - Update before testing — deploy current code first:
docker compose up -d --build. - Remote browsers — tests run through the shared Playwright server at
192.168.1.4:3000(Docker image tag must match this repo's @playwright/test version); plainnpx playwright testhandles deploy + readiness + remote connect (seeplaywright.config.ts).
API
- Live base URL —
https://flight.dev.kkhost.pl(the docker-compose build behind Traefik). - Machine-readable spec — OpenAPI 3.x at
https://flight.dev.kkhost.pl/api/openapi; current app version at/api/version. - Spec lives in code — generated from
lib/openapi.ts, served byapp/api/openapi/route.ts; must be updated whenever an endpoint changes.
Other
- For longer terminal tasks you should use pty_* tools.