refactor(web): migrate to Bun and TypeScript with README screenshots
This commit is contained in:
parent
87372041dd
commit
d6a9745df0
28 changed files with 3152 additions and 386 deletions
|
|
@ -1,13 +1,16 @@
|
|||
# Verification
|
||||
|
||||
Verified locally on 24 October 2026:
|
||||
Verified locally on 24 October 2026 using pinned Bun 1.4.4 and TypeScript 7.0.2:
|
||||
|
||||
- `npm test`: 7 Node tests passed, including exact catalog parity, authentication request options, malformed-session checks, avatar-origin validation and encoded preview-path traversal.
|
||||
- `npm run build`: static build completed; assets normalized to mode 0644, directories 0755.
|
||||
- `node --check src/app.js`: JavaScript syntax check passed.
|
||||
- `python3 tests/browser_qa.py`: passed with the workstation's existing Playwright and `/usr/bin/chromium`; no browser or dependency was installed by this project.
|
||||
- `bun install --frozen-lockfile`: committed resolution accepted without changes.
|
||||
- `bun run check`: strict TypeScript check passed for frontend, Bun scripts and tests.
|
||||
- `bun test`: 8 Bun tests passed, including catalog parity, authentication request options, malformed Hub/session checks, avatar-origin validation and encoded preview-path traversal.
|
||||
- `bun run build`: TypeScript browser bundle and static build completed; assets normalized to mode 0644, directories 0755. Source TypeScript and development dependencies are excluded from the release.
|
||||
- `bun run format:check`: Bun's built-in formatter passed.
|
||||
- `bun audit`: no known vulnerabilities across 25 checked lockfile packages; direct dependencies are current.
|
||||
- `python3 tests/browser_qa.py`: passed against both the Bun development preview and the minified production `dist/` preview with the workstation's existing Playwright and `/usr/bin/chromium`; no browser dependency was installed by this project.
|
||||
|
||||
The optional browser script requires the loopback preview from `npm run dev` or `npm run preview`. It replaces API responses with test fixtures and refuses non-loopback origins. It checks:
|
||||
The optional browser script requires the loopback preview from `bun run dev` or `bun run preview`. It replaces API responses with test fixtures and refuses non-loopback origins. It checks:
|
||||
|
||||
- Keyboard-operated illustration tabs and theme selection.
|
||||
- Runtime RU/EN changes and layouts at 320, 390, 768 and 1440 pixels, including account views.
|
||||
|
|
@ -16,7 +19,7 @@ The optional browser script requires the loopback preview from `npm run dev` or
|
|||
- CSRF-header/Origin/POST sign-out and expired-session handling.
|
||||
- Browser storage contains only the UI language; no account tokens are persisted.
|
||||
|
||||
Screenshots were visually inspected at `/tmp/vnox-web-qa/desktop-hero.png`, `mobile-full.png`, `account-login-mobile.png` and `account-profile-desktop.png`. Screenshot profile data is explicitly a browser fixture, absent from production assets.
|
||||
Local QA screenshots were visually inspected in `/tmp/vnox-web-qa/`. Any authenticated profile in those temporary images is explicitly a browser fixture. The repository-hosted [README screenshots](screenshots/README.md) were captured separately from the live production site using a fresh anonymous context and contain no test profile or private data.
|
||||
|
||||
## Limits
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue