Repository navigation
Testing
Commands use the host-development tools. See Local development for prerequisites.
From the repo root:
npm --prefix frontend test -- --watch=false
npm --prefix frontend run buildTests use Vitest through Angular. The production output is frontend/dist/b26, not dist/b26/browser.
The local 1.6.0 production frontend build passed. See Troubleshooting for build issues.
Every backend test runs against PostgreSQL with the real Flyway migrations, so the suite proves the schema, constraints, and migrations as well as the API. Start a disposable database, then run from backend/ with Java 21:
docker run -d --name b26-test-db -p 127.0.0.1:5433:5432 -e POSTGRES_DB=b26_test -e POSTGRES_PASSWORD=postgres postgres:16
POSTGRES_TEST_URL='jdbc:postgresql://localhost:5433/b26_test' POSTGRES_TEST_USER=postgres POSTGRES_TEST_PASSWORD=postgres ./mvnw testWithout the variables, tests connect to localhost:5432/b26_test as postgres/postgres.
The suite wipes its database. Each test context and test class runs Flyway clean and then re-migrates with the fixtures in src/test/resources/db/test-fixtures. As a safety net, the tests refuse to clean any database whose name doesn't contain test. Never point POSTGRES_TEST_URL at a database you care about.
The migration tests additionally create and drop randomly named schemas, covering fresh installs, upgrades from historical versions, onboarding, schema validation, simultaneous editor saves, and concurrent deletion safeguards.
.github/workflows/ci.yml runs backend tests with PostgreSQL 16, frontend tests, and a production frontend build on pushes and pull requests. The Docker image build skips backend tests, so image creation alone is not a replacement for CI.
-
Start the app. Check
http://localhost:4200/actuator/healthwith Docker preview, or port 8080 with host development. -
Sign up; confirm an owned starter board opens.
-
Add a widget and save; refresh and confirm it persists.
-
Open the same board in two tabs, enter Edit in both, then save one. Saving the older draft in the other should report a conflict and retain its draft.
-
Make an unsaved edit and try navigating to another board; the discard prompt should appear.
-
Set another owned board as main; check
/<username>. -
Sign in as one user and visit another user's public URL; it should remain on the visited page.
-
Open
/<username>/<slug>directly and refresh. Check/b/<slug>and/u/<slug>still open the same board. -
Pair a board with the wrong username; expect not found. Rename a slug; confirm new links work and old slugs do not.
-
Delete an extra board from both menu flows; check confirmation, safeguards, draft retention on failure, and the active-board redirect.
- 222 frontend tests passed across 38 files. Production build and TypeScript unused-local/parameter checks passed.
-
130 backend tests passed, with zero failures or skips, including PostgreSQL migrations/concurrency and
mvn verifypackaging. - Loading tests verify one owner-qualified resolution shared by board/widgets, immediate route/account clearing, cancellation of old requests, retained mounted content during refresh, and Retry recovery. Missing boards, access failures, server failures, and widget failures are distinct.
- Widget tests cover stable previews/embed URLs, retained Instagram photos through unrelated edits, context/size refresh, and polling suspension in hidden tabs. Settings tests preserve saved baselines and newer appearance edits during automatic saves.
- JPEG cache tests cover expiry, byte-budget LRU eviction, failed/oversized fetches, concurrent request reuse, and widget revalidation before serving a warm cache. Existing private-board endpoint tests still pass.
- Local backend rebuilt successfully; frontend-proxied
/actuator/healthreturned HTTP 200. - Safari performance samples were subsequently captured on October 14; see the measurement record below. No before/after FPS gain is claimed.
Safari 27.0.1 / macOS 27.0.1, arm64 Mac17,7 (18 CPUs, 128 GiB RAM), local Angular development build, 1324 × 888 CSS-pixel viewport at DPR 2. Measurements describe animation callback cadence, not presented GPU frames; they are short samples on this Mac, not a production/mobile guarantee or a before/after improvement claim. Machine-readable measurements are kept in the main repository at docs/performance/2026-10-14-safari.json.
| Scene | Sample | Callback rate | p95 gap | Largest gap |
|---|---|---|---|---|
| Home → intro | 2.5 s | 60.0/s | 18 ms | 21 ms |
| Intro → Home | 2.5 s | 60.0/s | 18 ms | 24 ms |
| Editor opens, 12 drafts | 1.2 s | 59.3/s | 18 ms | 32 ms |
| Editor closes, 12 drafts | 1.2 s | 60.1/s | 18 ms | 26 ms |
| Editor warm reopen | 1.2 s | 59.6/s | 18 ms | 26 ms |
| Editor blur held open | 5.0 s | 60.0/s | 18 ms | 26 ms |
| Heavy Lava + Frost | 6.0 s | 60.0/s | 18 ms | 21 ms |
| Heavy Bokeh + Frost | 6.0 s | 60.0/s | 18 ms | 26 ms |
No captured gap exceeded 33.34 ms. Some samples contained one estimated missed 60 Hz callback; that estimate is based on interval spacing, not measured GPU presentation. The editor fixture has 12 empty drafts (6 Social, 2 Embed, 4 Map), plus picker previews; Home has seven preview widgets with one paused YouTube embed. Home transitions and editor surfaces used device Blur off / Glass; the editor's board progressive blur remains active independently. Lava/Bokeh used device Blur on / Frost. A Frost editor crossfade and dense live-media board remain separate follow-up scenarios.
An exported Safari timeline isolates 2.5 seconds after home-return-trace at a 1324 × 638 inspector viewport: the largest recorded JavaScript operation was 1.476 ms; the largest rendering operation was an 11.965 ms composite (another was 10.093 ms). Compositing was the largest single recorded operation in that window. This trace is separate from the full-height callback samples.
Lava's WebGL draws averaged 28.2/s against its approximate 30/s cap. Across 120 captured draw intervals, median spacing was 33 ms, p95 was 49 ms, and 11 gaps exceeded 45 ms (maximum 50 ms). The current now - last >= 33 / last = now limiter is a candidate for steadier timing. The page callback sample remained at 60/s, so this finding concerns wallpaper draw cadence rather than an observed page-wide stall.
Local read-only API timings (25 warm sequential samples each, via the frontend proxy): owner-qualified board median 4.00 ms / p95 5.48 ms; widgets median 4.11 ms / p95 5.53 ms. This small public-board sample excludes hosted network latency and external Instagram delivery. No blur/material recipe was changed by the measurement pass.
-
119 backend tests passed, with no failures or skips, including PostgreSQL migrations and concurrency tests.
mvn verifyalso built the backend package. - The 37 new permission tests cover every board/widget mutation for owners and admins, denied writes with unchanged data, private/public GET and HEAD reads, editor/insights restrictions, and self-scoped account preferences.
- Routing regressions cover
mine/by-ownerboard slugs, context paths, percent-encoded segments, and matrix parameters. Tests also check missing policies, missing policy variables, declared coverage of all application handlers, and OPTIONS/CORS behavior. - Expired/revoked sessions lose private access. Anonymous public reads, event access checks, and main-board restrictions retain their existing behavior.
- 141 frontend tests passed across 29 files, and the production build passed. Regression coverage includes immediate permission clearing, account switching/sign-out, canceled late responses and queued profile saves, same-origin bearer headers, admin/read-only controls, username-renamed board links, and the active board indicator.
- The local Docker backend was rebuilt and became healthy. Live checks returned 200 for public board/permissions reads, 404 for a visitor's editor read, 401 for an unauthenticated write, and 410 for retired system routes.
No new migration is required. These are local checks, not a hosted rollout. Git publication and hosted deployment are tracked separately.
- 82 backend tests passed, with no failures or skips, including PostgreSQL migrations and concurrency tests.
- 108 frontend tests passed, including real board link tracking and suppression in previews. Tests for the retired admin route picker were removed.
- Frontend production build and backend package build passed.
- V37 tests preserve archived cards, route mappings, and historical click targets on fresh/historical migration paths.
- Pagination tests cover private-board exclusion, stable ordering, page size, and invalid bounds. Click tests cover simultaneous requests, expiry, capacity, target ownership, visibility, and enabled state.
- The local database was backed up before V37; the rebuilt local backend became healthy. Live API checks confirmed the paginated board response and 410 for retired system routes.
These are local checks, not proof of a hosted deployment.
On October 6, 2026, implementation b8deab3 passed 57 frontend tests, 51 fast backend tests, 4 PostgreSQL tests, and a production build. Browser checks covered canonical/legacy links, saving, renaming, creation, deletion redirects, and a 320px layout. The CSS-size warning remains.
This is the 1.2.0 verification record, not a new test run for documentation changes or proof of a hosted deployment. Consult current CI and complete the deployment checklist before release.
Start here · Troubleshooting · Source repository
Reviewed October 6, 2026 against b8deab3. Feature status distinguishes working behavior from unfinished UI.