Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

docs/WEB-EXPERIENCE.md

1# Zloud Immersive Web Experience v1.0 (public site)
2
3Scope: public landing page and reusable frontend motion components only. No backend, auth, tenancy or infrastructure change.
4Release: `0.8.1-dev.*` build line, tagged `web-experience-v1.0`. Previous release: commit `1c27633` (v0.8.0-dev.7).
5
6## What shipped
7| Area | Implementation |
8|---|---|
9| Motion system | `src/lib/motion.ts` (levels off/low/medium/high, device-aware resolution, global kill switch `MOTION_GLOBAL.enabled`, WAAPI presets, particle budgets) + `src/components/motion/provider.tsx` (`MotionProvider`, `useMotion`, `useInView`, `Reveal`, `MotionToggle`) |
10| Animated logo | `src/components/motion/logo.tsx` — geometry identical to the approved brand kit; variants `static` / `idle` / `intro` / `loading`; draw-on intro, gradient flow + energy pulse on hover/touch; static SSR/no-JS/reduced-motion fallback. The "fingerprint" motif was **not** added (not part of the approved logo; logo may not be altered without approval). |
11| Hero | `hero.tsx`: pointer lighting (CSS variables), interactive infrastructure map (6 keyboard-focusable nodes, availability labels preserved), compact simulated pipeline strip, magnetic CTAs, word-by-word headline entrance, particle network (starts only after real mouse movement on medium/high devices) |
12| Deployment demo | `deploy-demo.tsx`: Source → Build → Container → Infrastructure → Live; scripted terminal, stage list, health LEDs, node chips, Run/Step/Replay. Banner states it is a simulation; values are placeholders (`example.invalid`, "simulated"). Completed static state without JS / reduced motion. |
13| Capabilities | `services.tsx`: filterable Available / Experimental / Upcoming explorer, labels unchanged from the previous site |
14| Design tokens | `globals.css`: cyan/navy/brand-gradient tokens, glass surface, light + dark |
15
16## Motion rules (enforced in code and tests)
17- Native CSS, SVG and Web Animations API only. No animation library, no WebGL, no extra network requests, no AI calls.
18- OS "reduce motion" always wins (toggle is disabled); `html[data-motion]` mirrors the resolved level; user toggle in header (and mobile menu), persisted per browser.
19- Nothing loops during load: looping motion is armed 1.5 s after `load` (`html[data-live]`), uses compositor properties only, and is paused when off-screen (`data-paused`) or in a hidden tab (`data-hidden`).
20- Main-thread loops were measured to be expensive (see below) and removed: pulse and link flow are interaction-triggered and finite.
21
22## Measured results (not assumptions)
23Environment: Lighthouse 12 (mobile preset, simulated Slow-4G + 4x CPU), headless Chromium 1255 on the 6-vCPU build host while other services run. **This host is noisy**: identical builds vary ±15 score points between runs, so medians of several interleaved runs are reported. Same-host loopback; not a real device.
24
25| Metric (median of n runs, interleaved) | Before (`1c27633`) | After |
26|---|---|---|
27| Lighthouse mobile performance | 78 (n=5; 67–93) | 73 (n=4; 69–89) |
28| Total blocking time | 979 ms | 1526 ms |
29| LCP | 1.8 s* | 2.3 s |
30| CLS | 0 | 0 |
31| Accessibility / Best practices | 100 / 100 | 100 / 100 (public URL run) |
32| Route `/` first-load JS (gzip, Next build) | 110 kB | 120 kB (+10 kB) |
33| Main-thread work at rest, 3 s window @4x CPU (style/task) | 0 / 31 ms | 20 / 82 ms |
34
35\* The old LCP was flattered: its large hero paragraph faded in from opacity 0, so Chrome picked a small header button as the LCP element. The new LCP is the real hero paragraph.
36
37**Final measurement on the deployed public URL** (`https://cloud.zoobd.com/`, release candidate build, same Lighthouse settings, n=5, host quieter at that time): performance 86 median (runs 86/75/88/95/80), accessibility 100, best-practices 100, TBT 457 ms median, LCP 1.77 s median, CLS 0 (max). Baseline on the same URL before the work was a single run: performance 84, LCP 1.9 s, TBT 630 ms, CLS 0.
38
39**Targets:** LCP ≤ 2.5 s ✔ (median 1.77 s public, 2.3 s loopback A/B), CLS ≤ 0.1 ✔ (0), accessibility ✔ (100). **Lighthouse mobile ≥ 90 was NOT demonstrated**: median 86, only 1 of 5 final runs reached 90+ (95); the previous build also did not reach 90 on this host (baseline 84; loopback A/B median 78). The loopback A/B (both builds, interleaved) showed the new build ~5 points / ~0.5 s TBT worse on the median but inside the host's noise band. Re-measure on quiet hardware or PageSpeed Insights before claiming ≥ 90.
40
41Defects found and fixed during measurement: a route-group `loading.tsx` caused CLS 0.42 (removed); continuous SVG dash/pulse animations plus a software `backdrop-filter` cost ~40 % of a throttled main thread (made interaction-triggered / removed); demo auto-played off-screen (fixed); per-card forced reflow in `Reveal` (replaced with observer-only logic).
42
43## Verification
44- `qa/immersive.mjs`: 45 checks (Chromium): headline, logo geometry equals brand path, scene hover/keyboard, demo labelled + completes + replays, filter + labels, motion toggle, reduced-motion (no running animations, no canvas, toggle disabled), no-JS render, particles never at rest / unmounted off-screen, mobile overflow/overlap/header, existing routes 200. Evidence: `design/verification/immersive.json`.
45- Existing regression suites re-run on the deployed build (see TEST-RESULTS.md).
46- Screenshots: `design/screenshots/web-before-*` and `web-after-*` (3 viewports × light/dark) plus interaction states (`web-after-hero-interactive-*`, `web-after-demo-running-*`, `web-after-demo-complete-*`, `web-after-reduced-motion-desktop.png`).
47
48## Not verified (honest gaps)
49- **Safari/WebKit and Firefox:** not available on this host (only Chromium installed). Behaviour there is untested.
50- **Real low-end phones:** only 4x CPU throttling in Chromium was used.
51- Lighthouse ≥ 90 (see above); Lighthouse was run against loopback and the public URL from the same VPS, so real-network LCP is unmeasured.
52
53## Rollback
54The previous release is git commit `1c27633`. To roll back the public site:
55`git checkout 1c27633 -- app/src app/package.json && scripts/deploy.sh 0.8.0-dev.7-rollback` (or `git revert <web release commit>`), then verify `https://cloud.zoobd.com/` and `:8443`.
56Fast mitigation without redeploy: set `MOTION_GLOBAL.enabled = false` in `src/lib/motion.ts` (all visuals become static), or have visitors use the header toggle.
57The rollback was rehearsed by building `1c27633` in a separate worktree and serving it on a spare loopback port for A/B measurement; the live deployment was not switched back.
58

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD 692573d on master.

Approval requests

None pending.