Freeze icon transitions in the theme motion test #5

Merged
indi/soliton-panel
indi merged 1 commit into feat/frontend from fix/theme-icon-motion-flake 2026-12-01 18:32:27 +03:00
Owner

English

Problem

The web-e2e job failed on run 31 in e2e/task-5.1.spec.ts:287 ("theme and copy icons cross-fade through opacity, scale and blur") although the icons do cross-fade. The test sampled rAF frames for 550 ms starting before the interaction: on a loaded runner the theme change lands after that window, and a palette repaint can swallow the whole 300 ms transition, so the sampler only ever observed the start and end values.

Change

  • Replace the frame sampler with a frozen transition: a MutationObserver on the icons' data-state pauses every running CSS transition at half its duration and reads the interpolated opacity, transform and filter.
  • Finish the paused animations afterwards, so the final-state assertions stay as they were.
  • Keep the transitionrun assertions for all three properties: a transition that never starts still fails.
  • Only web/e2e/task-5.1.spec.ts changes; no product code.

Verification

  • Reproduced the failure with 20x CPU throttling (Emulation.setCPUThrottlingRate): the state change landed after the sampler window.
  • After the fix: the spec passed 6/6 under 20x throttling and 10/10 unthrottled.
  • Full local Playwright suite against the demo stand: 328 passed.
  • cd web && bun run lint && bun run typecheck && bun run test && bun run build: passed (136 unit tests).
  • Not applicable: Go checks, docs, schema and migrations - the diff touches one Playwright spec.
## English ### Problem The `web-e2e` job failed on run 31 in `e2e/task-5.1.spec.ts:287` ("theme and copy icons cross-fade through opacity, scale and blur") although the icons do cross-fade. The test sampled rAF frames for 550 ms starting before the interaction: on a loaded runner the theme change lands after that window, and a palette repaint can swallow the whole 300 ms transition, so the sampler only ever observed the start and end values. ### Change - Replace the frame sampler with a frozen transition: a `MutationObserver` on the icons' `data-state` pauses every running CSS transition at half its duration and reads the interpolated `opacity`, `transform` and `filter`. - Finish the paused animations afterwards, so the final-state assertions stay as they were. - Keep the `transitionrun` assertions for all three properties: a transition that never starts still fails. - Only `web/e2e/task-5.1.spec.ts` changes; no product code. ### Verification - Reproduced the failure with 20x CPU throttling (`Emulation.setCPUThrottlingRate`): the state change landed after the sampler window. - After the fix: the spec passed 6/6 under 20x throttling and 10/10 unthrottled. - Full local Playwright suite against the demo stand: 328 passed. - `cd web && bun run lint && bun run typecheck && bun run test && bun run build`: passed (136 unit tests). - Not applicable: Go checks, docs, schema and migrations - the diff touches one Playwright spec.
indi added 350 commits 2026-12-01 18:05:01 +03:00
Manage the Playwright image pin with Renovate, keep the restored database when a promotion rollback fails, wait for release CI, and cover repeated backup verification in the UI.
Remove pre-4 restore, agent, database and installer compatibility; squash migrations into the 4.0 baseline; require DATABASE_MIGRATE_URL; update tests and bilingual docs.
Keep 4.0.x agent compatibility, move the baseline to schema 37 with a lower-bound check, validate restored dumps before migration, reject v4.0.0 data/archives explicitly, and refresh the archive README and tests.
Reset the schema baseline to version 1, require the current agent heartbeat, reject all earlier databases, archives and agents, and align the bilingual documentation and tests.
Align rollout docs on one release, make old-archive diagnostics neutral, validate baseline tables in migrate-status, add the missing regression tests, and share the baseline table list.
Reject partially populated schemas in migrate-status, use non-misleading schema messages, cover the full baseline table set, and add status/negative-path tests.
Neutralize old-archive diagnostics, report migrate-status pending only for pending schemas, validate the full baseline table set in tests, and align rollback and architecture docs.
Drop removed Telegram entities from the archive README, warn that v4.0.x may partially migrate the current schema, name both schema bounds, and cover pending output and absent-table regressions.
Cover templates, hostmetrics, warp, auth, panelmetrics, webui and the xrayhandler client. Exclude generated protobuf from coverage, add a product metric and repeatable package thresholds.
Add PostgreSQL integration tests for access groups, credentials, heartbeat, addresses, backups, audit, self-steal, WARP, admin sessions, devices, settings, inbound names and traffic limits.
Add scheduler alert/tick/prune/quota tests with an injectable tick interval, Telegram Bot API delivery/card tests, and self-steal pack/render/bundle tests. Coverage: scheduler 95.4%, telegram 95.5%, selfsteal 90.9%.
Add backup service/verify/seal/archive integration tests with a fake pg_restore helper, and node agent/nginx/live-users/acme/stats/supervisor tests. Coverage: backup 84.1%, node 90.3%.
Define the product metric over internal/*, exclude generated protobuf, and state the 80% Go and web targets.
Add auth guard, live sortable, page and share-link tests. Coverage: statements 85.98%, branches 81.14%, functions 81.34%, lines 88.32%.
Statements, branches, functions and lines now must stay at or above 80%.
Add handler tests for self-steal, WARP, auth/TOTP, users, groups, settings, metrics, heartbeat, backups, SPA and request logging.
Default the Go gate to total 80, product 80 and every internal package 80, record final Go and web coverage, and close INFRA-13.
Make the coverage command reproducible with PostgreSQL, prevent -package from lowering the internal floor, reject non-finite thresholds, remove the timing-dependent backup conflict test, and clean up API/backup test helpers.
Make scheduler/coverage tests assert behavior, seed traffic assertions, serialize the WARP transport, move the self-steal interval onto the agent, cover checkcoverage exit codes, and remove brittle CSS/timer assumptions from web tests.
Only reset the page when the debounced search actually changes, and assert the reset after paging in the test. Removes the timer race behind the deleted sleep.
Isolate users page request assertions
All checks were successful
ci / security (pull_request) Successful in 21s
ci / e2e (pull_request) Successful in 1m30s
ci / go (pull_request) Successful in 3m13s
ci / go-static (pull_request) Successful in 54s
ci / playwright (pull_request) Successful in 4m2s
ci / web (pull_request) Successful in 1m52s
ci / docker-build (pull_request) Successful in 1m45s
fa89a2256c
Clear the request history after paging so search-reset and delete-step-back tests prove the new request, not the initial offset=0.
Run axe, mobile reflow and palette token contrast checks against the demo stand. The gate logs in once, reuses the session and is intentionally red on the current audit findings.
Run axe in both themes for every route, exclude decorative border tokens from the 3:1 matrix, and typecheck/lint the gate with the project checks. The gate stays intentionally red on current findings.
Make token pairs conditional on Phase 1 tokens, assert composed focus and control values, add mobile axe, EN and 200% text passes, verify reduced motion, and fail CI when stand credentials are missing. The product gate remains intentionally red.
Resolve hex and OKLCH tokens to sRGB, composite alpha surfaces and compute WCAG contrast without a canvas. Cover the known review pairs in Vitest and use the helper in the Playwright token matrix; the product gate stays intentionally red on the same 67 failing pairs.
Render users, groups, inbounds, audit and backup rows as labelled cards below md so actions stay visible, cap long identifiers with copy/title access, and keep desktop tables with captions, scoped headers and named action columns.
Keep the row action column sticky at every table width, tighten the users columns for the 1440 fit, bound group badges with full titles and a 63-character seed fixture, and name inbound visibility and display-name controls with the inbound tag.
Hide the last-online body cell below 2xl to match its header, and assert the sticky action rect stays inside the table container and viewport at scrollLeft 0 and at the end scroll.
Name the progress, slider, OTP, select and combobox trigger demos, remove the listbox separator that axe rejects, and keep the trace description on a contrast-safe muted token. Forward slider aria-label/aria-labelledby to the thumb input, and label calendar days so the visible day number is included.
Name the language toggle with the current RU/EN code and the version control with its visible vdev string. Order the mobile More name like its visible labels and keep a space node between them so axe reads two words.
Associate the Auth, Mode and RTT FieldLabels with their SelectTriggers so each combobox announces the visible label. Add a focused RU/EN test for the accessible names.
# Conflicts:
#	web/src/pages/settings-page.tsx
Keep the page foregrounded, move the pointer off the toast that Base UI pauses on hover, and allow 12s for the 5s auto-dismiss under load.
Add the 4.2.0 changelog entry for the rebuilt admin interface: mockup parity across every page, WCAG 2.2 AA remediation, and the Playwright/axe UI suite.
Merge CI axe gate and bundle budget
All checks were successful
ci / security (push) Successful in 24s
ci / e2e (push) Successful in 1m59s
ci / go (push) Successful in 3m41s
ci / go-static (push) Successful in 1m13s
ci / web-e2e (push) Successful in 11m7s
ci / web (push) Successful in 12m3s
ci / docker-build (push) Successful in 3m14s
636acdbe4c
Concurrent PUT /api/inbounds/order requests upsert the same rows in the order supplied by each caller, so their row locks can form a cycle and Postgres returns SQLSTATE 40P01. Take a transaction-scoped advisory lock for reorders, matching the CreateNode position lock, and cover the race with an integration test.
Merge serialized inbound reorders
Some checks failed
ci / go (push) Successful in 3m16s
ci / go-static (push) Successful in 50s
ci / web (push) Successful in 10m52s
ci / security (push) Successful in 12s
ci / e2e (push) Successful in 1m25s
ci / web-e2e (push) Failing after 9m4s
ci / docker-build (push) Has been skipped
2062c15b48
The partition window started four months back while retention dropped
partitions ending at or before now-90d, so maintenance created the
month-4 partition and dropped it again in the same pass. On a fresh
stand the startup backup raced that DROP: pg_dump catalogued
traffic_daily_2026_08, then LOCK TABLE failed with 42P01 and the whole
dump aborted.

- Only ensure months whose end is after the retention cutoff, so the
  startup/scheduler pass no longer creates a partition it immediately
  removes.
- Take one advisory lock in partition DDL and hold it for the whole
  pg_dump, with the dump's lock wait unbounded but table-lock timeouts
  unchanged.
- Cover both the window and the lock ordering with regression tests.
Review follow-up to the pg_dump/partition serialization:

- Pass one reference instant (UTC) into EnsureTrafficPartitions and use
  the same cutoff for Drop and row pruning, so the create and drop
  predicates agree. The regression test now covers fixed dates,
  including the 1 May non-leap gap where the old window check passed.
- Maintenance tries the shared DDL lock for a few seconds and skips the
  cycle with ErrBackupInProgress when a backup holds it; the scheduler
  retries on a later tick. The backup side stays unbounded. The lock
  transaction is explicitly READ ONLY, and a failed DROP reports zero
  dropped rows because the transaction rolls back.
- Add internal/store tests for LockBackupDDL blocking cleanup, the
  bounded maintenance wait, both skip paths, and the lock error paths,
  restoring the coverage ratchet. The backup lock test signals its
  waiting goroutine and releases the dump stub on cleanup.
Merge serialized traffic partition DDL and backups
Some checks failed
ci / security (push) Successful in 12s
ci / e2e (push) Successful in 1m49s
ci / go (push) Successful in 3m56s
ci / go-static (push) Successful in 1m32s
ci / web-e2e (push) Failing after 10m56s
ci / web (push) Successful in 12m2s
ci / docker-build (push) Has been skipped
f747783e33
Freeze icon transitions in the motion test
All checks were successful
ci / security (pull_request) Successful in 12s
ci / e2e (pull_request) Successful in 1m45s
ci / go (pull_request) Successful in 3m37s
ci / go-static (pull_request) Successful in 1m18s
ci / web-e2e (pull_request) Successful in 10m48s
ci / web (pull_request) Successful in 12m0s
ci / docker-build (pull_request) Successful in 1m56s
0939be17b1
The theme assertion sampled requestAnimationFrame frames for 550 ms
starting before the interaction. A loaded runner can reach the state change
after that window closed, and the theme repaint can swallow the whole 300 ms
cross-fade, so the sampler then only saw the start and end values and the
test failed on web-e2e run 31 even though the icons animated.

Pause every running CSS transition at its midpoint through a
MutationObserver on the icons' data-state instead, read the interpolated
opacity, transform and filter, then finish the animations for the final
state assertions. The transitionrun checks stay, so a transition that never
starts still fails.
indi changed target branch from main to feat/frontend 2026-12-01 18:05:31 +03:00
indi merged commit 8735b20e2c into feat/frontend 2026-12-01 18:32:27 +03:00
Sign in to join this conversation.
No reviewers
No assignees
No labels
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
indi/soliton-panel!5
No description provided.