diff --git a/.roborto/testtask.conf b/.roborto/testtask.conf index 68cbf6f..d94113c 100644 --- a/.roborto/testtask.conf +++ b/.roborto/testtask.conf @@ -4,6 +4,6 @@ ROBORTO_TASK_ID_PATTERN='^[0-9]{3}$' ROBORTO_WORKTREE="${ROBORTO_PROJECT_ROOT}/.test-worktrees/task-${ROBORTO_TASK_ID}" ROBORTO_HOOK="${ROBORTO_PROJECT_ROOT}/.roborto/testtask-hook" # Loopback-only manual testing; fixed ports prevent concurrent conflicting sessions. -ROBORTO_BROWSER_URL="http://127.0.0.1:18081/services" +ROBORTO_BROWSER_URL="http://127.0.0.1:18081/about" ROBORTO_READY_PORTS=(15001 18081) ROBORTO_READY_LABELS=(API Web) diff --git a/AGENTS.md b/AGENTS.md index e057da9..ad7d9b8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -91,7 +91,7 @@ Report files and behaviour changed; tests added or updated; commands run; test, - Captain's newest explicit instructions govern intended changes. Code/configuration prove observed behavior; report conflicts with plans rather than treating inherited behavior as approved product scope. - Integration branch: `codex`. Task IDs: `BS-###`; branches: `bs-###`; isolated implementation worktrees: `.task-worktrees/bs-###` under the integration checkout. One accepted, scoped task per branch/worktree. Report path, branch, status and existing changes before edits. - No commit, push, merge, rebase, release or production deployment without explicit authorization. Green checks mean implementation-ready, not Complete. Captain review/manual acceptance and the authorized integration process are required for Complete. -- Current accepted tasks and Captain authorizations are recorded in docs/TASKS.md and the latest handoff. On 2026-11-10 Captain accepted Services and authorized integration of its dependency stack (BS-002/003/004/011/012). BS-013 About is briefed only, awaiting engagement. Future commits/merges and production deployment require the applicable explicit authorization. Original CODEX_HANDOFF.md is historical input; its instruction to continue automatically is superseded. +- Current accepted tasks and Captain authorizations are recorded in docs/TASKS.md and the latest handoff. On 2026-11-10 Captain accepted Services and authorized integration of its dependency stack (BS-002/003/004/011/012). BS-013 About was manually accepted by Captain on 2026-11-10 with explicit commit/merge authorization. Future commits/merges and production deployment require the applicable explicit authorization. Original CODEX_HANDOFF.md is historical input; its instruction to continue automatically is superseded. - Canonical maintained context lives in `docs/{PROJECT_OVERVIEW,CURRENT_STATE,DECISIONS,TASKS,HANDOFF}.md`; root counterparts are navigation pointers. Read all at entry and refresh after meaningful work. Original handoff text is preserved in `docs/source-handoff/`. - Design authority: `brand/BORTSTACK_BRAND_DECISION.md`, authentic master artwork when supplied, `assets/references/home-approved-direction.png`, `DESIGN_SPEC.md` and approved brand tokens. Reference images are concepts, never authentic logos or project screenshots. Never invent replacement logo artwork. - Marketing website remains independent of API Admin. Inherited authentication, database, branding and deployment scaffolding are provisional; see `docs/TEMPLATE_RECONCILIATION.md`. Preserve existing behaviour outside the accepted task; do not resolve later tasks during bootstrap. diff --git a/docs/CURRENT_STATE.md b/docs/CURRENT_STATE.md index a2256e8..98ab77a 100644 --- a/docs/CURRENT_STATE.md +++ b/docs/CURRENT_STATE.md @@ -1,19 +1,21 @@ # BortStack current state -Updated 2026-11-10. Captain accepted Services and explicitly authorized commit/merge of the dependent stack into codex. This snapshot accompanies the Services integration commit. Included local history: BS-002 ea28637, BS-003 2a4ffe1, BS-004 4f3b75b, accepted homepage correction BS-011 33e3413, then current BS-012 Services commit. No push or production deployment. +Updated 2026-11-10. Captain accepted BS-013 About and explicitly authorized commit/merge into codex. This record accompanies that integration from bs-013 / .task-worktrees/bs-013, based on codex/be0dde6. No push or deployment authorized. -## Accepted implemented scope +## About implementation -Public marketing navigation/routes, persistent dark-default/light theme, corrected homepage composition and Services page are accepted for integration. Homepage logo/hero/project media remain explicit missing-asset placeholders. Services reproduces its reference with native layered-code-window illustration, four truthful descriptions and closing contact panel. Authentic logo remains pending. No public account/session UI mounted; inherited backend accounts/database remain provisional and independent of API Admin. +/about now follows about-concept.png: business-first split introduction with two-colour heading, reserved branded laptop-art footprint, full-width divider, Why BortStack heading and three stacked Practical engineering / Clear communication / Long-term support rows, then two-line closing invitation. Contact action navigates to existing Contact placeholder; no form implied. Copy avoids invented team/credentials/achievements and keeps support agreed per project. -## Verification +Native code/chat/layers icons match the reference roles; authentic logo and standalone branded laptop art are missing and visibly labelled. No new symbol geometry, cropped reference artwork or unrelated hero illustration. Approved palette and accepted Poppins/themes retained. About-only CSS scopes header/active indicator without changing accepted pages. -Latest Services candidate: lint, 31unit tests, Vite build passed. 56 browser cases validated across full run 52 passes and corrected four-case theme-fixture rerun. Homepage 1024px capture byte-identical to accepted BS-011. Services 1672px anchors: header 80, grid x123/y363, contact panel x70/y688/w1536/h222. Desktop/mobile/tablet/light captures show no overflow, console/page errors or HTTP failures. Screenshots and audits under docs/visual-qa/bs-011 and bs-012. +## Evidence and validation -Root TASK-012 smoke passed exact snapshot, Docker/build/migrations/HTTP/real headless Firefox and exit 0; configured URL /services. Frontend source hashes match final tested snapshot. Scoped pre-integration code review found no verified new blocking defect. Backend/production configuration unchanged, backend suites not rerun. Inherited 10 npm audit alerts and missing authentic assets remain recorded launch/finalization risks. Services test resources cleaned after Captain confirmed testing complete. +At reference 1024×1536: header 74px, main left 52px, hero divider y566, first icon row y685/icon113px, closing panel x30/y1176/w964/h275; page fits 1536px including understated footer. Before/after, reference comparison, 1440 desktop/768 tablet/390 mobile/320 narrow/light 1024 captures and measurements under docs/visual-qa/bs-013/. Inspected with no overflow, console/page errors or HTTP 400+ responses. Minor typography/icon/gradient differences are approximations; original missing artwork blocks full asset fidelity. -## Next task +Lint, 33unit tests, Vite build and all 72Playwright browser cases passed, including About route/navigation/CTA, active nav, keyboard skip, both-theme axe/persistence, responsive heading bounds and reference anchors. Accepted homepage 1024px and Services 1672px screenshots are PNG-byte-identical. Existing routes/themes/regressions preserved. -BS-013 About is locked on/briefed only, awaiting engagement. Reference: assets/references/about-concept.png (1024×1536). See scoped brief/acceptance/risks in TASKS.md. No About implementation or task worktree created yet. Projects/Contact/Privacy and remaining production adaptation not engaged. +Actual project-root TASK-013 smoke passed exact snapshot, Docker production build, disposable migrations, direct/proxied HTTP, real headless Firefox opening /about, exit 0 and owned-runtime cleanup. Snapshot refreshed after final context updates. No dependencies/manifests/lockfile/backend/production changes; backend suites not rerun. Existing 10 npm audit alerts remain recorded baseline risk. -Root pre-existing untracked docs/references copies are unrelated user material and remain untouched. Keep standard scripts/testtask.sh and create-chatgpt-snapshot.sh interfaces. Task branches/worktrees retained for traceability; no forced cleanup/history changes. Missing logo/light board, standalone branded laptop artwork, genuine portfolio media/permission and actual domain/email/legal/hosting details remain outstanding. +## Review gate + +BS-013 Complete for the accepted composition; Captain manual acceptance and commit/merge authorization received. Scoped pre-integration code review found no blocking defects. No Projects/Contact/Privacy or further-page work. Missing approved logo/light board/laptop media, genuine portfolio permission and actual domain/email/legal/hosting choices remain outstanding. Root pre-existing docs/references copies preserved untouched. Standard scripts interfaces unchanged. diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index 6f73811..c706575 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -1,17 +1,25 @@ -# BortStack integration and About briefing +# BS-013 About accepted integration handoff -Replaceable supplementary snapshot, 2026-11-10. Captain accepted Services, ordered commit/merge and requested lock-on to the next page. Current integration commit contains BS-012 Services plus completion context; fast-forward codex includes prerequisite task commits BS-002/003/004/011. No push or deployment. +Replaceable supplementary snapshot, 2026-11-10. Captain engaged About after accepting/integrating Services. Candidate branch/worktree bs-013 / .task-worktrees/bs-013, based on codex/be0dde6. Captain accepted About and explicitly authorized commit/merge into codex. This handoff accompanies that integration; no push or production authorization. -## Accepted work and evidence +## Repeat manual testing -Corrected homepage composition and Services are approved with disclosed authentic-asset placeholders. Services follows services-concept.png, native layered-window SVG, four agreed services and closing CTA; no other-page implementation. Homepage 1024 PNG remains byte-identical. See docs/visual-qa/bs-011 and bs-012 for screenshots/comparisons/audits. +From project folder: -Lint, 31unit tests and production build passed. 56 browser cases validated (52 full-run passes plus four corrected theme-fixture reruns). TASK-012 exact snapshot/Docker/HTTP/real-headless-Firefox smoke passed and opens /services directly. Source hashes match final tested snapshot. Scoped code review found no verified new blocking findings; limitations: missing original logo/media, inherited dependency alerts, unchanged provisional backend/production facilities. Context validator/whitespace checks pass. Services-owned test containers/network cleaned after Captain acceptance. Existing task worktrees retained; root user docs/references untouched. +```bash +./scripts/testtask.sh TASK-013 +``` -## Locked-on next mission: BS-013 About +Opens http://127.0.0.1:18081/about directly in default Firefox. Keep terminal running; Ctrl-C cleans task-owned runtime. Compare with assets/references/about-concept.png: header/intro/heading proportions, artwork footprint, divider, three stacked value rows and closing panel. Check mobile menu, dark/light persistence and Get in Touch route. Contact is still a deliberate placeholder; no new form. -Briefed only, not engaged. Build /about against assets/references/about-concept.png: split introduction and matching art footprint, three stacked Why BortStack rows, closing CTA. Reuse approved palette/themes/header and truthful business voice; do not invent credentials/staff or recreate logo. Original logo/light board and standalone branded laptop artwork are missing; placeholders permitted for composition, full asset fidelity remains gated. +Screenshot evidence: docs/visual-qa/bs-013/after-1024-full.png and reference-comparison.png; audit, before, measurements, responsive/light/regression captures included. About reference-size layout fits 1024×1536: header 74, main left 52, first row685, closing x30/y1176/w964/h275. Exact logo/laptop art missing and labelled; full asset fidelity remains gated, no artwork reconstruction. Poppins/icons/gradients approximate reference while written palette/content decisions remain authoritative. Required theme control/footer retained even where composite omits them. -Read TASKS.md BS-013 for objective, scope, non-goals, acceptance, files, risks and validation. On Captain engagement create bs-013/.task-worktrees/bs-013 from integrated codex, implement only About, capture before/after at 1024×1536 plus tablet/mobile/light, preserve homepage/Services, run checks and configure TASK-013 to open /about. Stop for Captain screenshot/manual review before merge or next page. +## Verification -No About application code changed during lock-on. No automatic engagement inferred. To inspect accepted Services from project folder: ./scripts/testtask.sh TASK-012; Ctrl-C stops task runtime. ChatGPT ZIP export remains ./scripts/create-chatgpt-snapshot.sh for the current checkout. +Lint, 33unit tests, Vite production build and all 72desktop/mobile browser cases passed. Matrix 320/390/768/1024/1440 plus both themes; About coordinate checks, route/CTA, keyboard/active navigation, axe, persistence and prior page regressions covered. All review captures inspected: no overflow, console/page errors or HTTP failures. Homepage 1024 PNG and Services 1672 PNG are byte-identical to accepted captures. No shared homepage/Services/component/style edits. + +Actual root TASK-013 snapshot/Docker/build/migrations/direct+proxied HTTP/real-headless-Firefox smoke reached ready opening /about, exit 0, owned cleanup verified. Final snapshot refreshed after docs. No backend or package/lockfile changes; backend suites not rerun. Existing 10 npm audit alerts unchanged. Root user docs/references copies untouched. + +## Stop gate + +BS-013 Complete for the accepted composition. Pre-integration review found no blocking defects and frontend hashes match the tested snapshot. Commit/merge authorized; stop after integration. Do not push, deploy or start another page without further orders. Missing original logo/light board and branded laptop art remain acknowledged asset work. Standard ZIP export: ./scripts/create-chatgpt-snapshot.sh from this worktree exports this candidate; project-root export reflects integrated codex. diff --git a/docs/TASKS.md b/docs/TASKS.md index a46c8d6..193c090 100644 --- a/docs/TASKS.md +++ b/docs/TASKS.md @@ -1,6 +1,6 @@ # BortStack authoritative tasks -Accepted, scoped implementation work; not a speculative backlog. Original supplied plan preserved in source-handoff/TASKS.md. Captain authorized BS-001 completion/commit/merge and engaged BS-002–004 as a group on 2026-11-10. Captain subsequently authorized the Services dependency-stack integration; no push/deployment. About is briefed only as BS-013. +Accepted, scoped implementation work; not a speculative backlog. Original supplied plan preserved in source-handoff/TASKS.md. Captain authorized BS-001 completion/commit/merge and engaged BS-002–004 as a group on 2026-11-10. Captain subsequently authorized the Services dependency-stack integration; no push/deployment. About is accepted for integration under BS-013. ## BS-001 — Repository foundation and reconciliation @@ -41,7 +41,7 @@ Deviation/asset gate: reference photograph replaced by restrained decorative CSS | ID | Task | Gate | | --- | --- | --- | -| BS-005 | Services and About | Services portion implemented/reviewed under BS-012; About remains Proposed | +| BS-005 | Services and About | Services Complete under BS-012; About Complete under BS-013 | | BS-006 | Projects gallery and case studies | Real status/permissions and genuine imagery | | BS-007 | Contact UI and Flask service | Exactly four fields, validation/abuse controls, delivery/failure handling; database/account decoupling | | BS-008 | Privacy/legal, SEO and accessibility | Reviewed actual data flows/legal details; static/prerendered technique and metadata; wider accessibility | @@ -91,9 +91,9 @@ Remaining: authentic approved logo missing; SVG/icon/gradient details approximat Captain confirmed “task complete. commit and merge and lock on to next page”. Commit Services and fast-forward codex through the dependent local task commits (BS-002/003/004/011/012); no history rewrite, push or deployment. Frontend content matches the final tested snapshot. Scoped code review found no verified new integration-blocking defects; accepted asset placeholders, inherited dependency alerts and deferred backend/production adaptation remain explicit limitations. Context validation and whitespace pass. Clean only Services-owned runtime after test completion; retain task worktrees/history and preserve unrelated root docs/references copies. -## BS-013 — About page visual reconciliation (briefed) +## BS-013 — About page visual reconciliation -Status: Briefed / locked on; awaiting Captain engagement. No implementation started and no task worktree created yet. +Status: Complete for accepted composition. Captain manually accepted and explicitly authorized commit/merge on 2026-11-10. Authentic logo/laptop artwork remains missing and tracked for finalization. Branch bs-013 at .task-worktrees/bs-013, based on integrated codex/be0dde6; this record accompanies authorized integration. Objective: replace /about placeholder with a business-focused page that closely reproduces assets/references/about-concept.png (1024×1536). Scope: active About navigation, split introduction with truthful business/approach copy, matching right-side illustration footprint, Why BortStack heading and three stacked icon/text rows (Practical engineering, Clear communication, Long-term support), closing contact invitation. This is the remaining About portion of BS-005. Non-goals: Projects/Contact/Privacy implementation, new business policy, invented team/credentials/achievements, replacement logo, new dependencies, backend/production changes, merge/deploy. @@ -106,3 +106,12 @@ Relevant files: react/src/App.jsx; new react/src/views/About/ files; route metad Dependencies/risks: committed accepted homepage and Services are the base. Authentic Concept 2 logo/light board and standalone About laptop artwork are still missing, blocking full asset fidelity but not composition work with explicit placeholders. Exact reference typeface is unspecified; reuse accepted self-hosted Poppins and palette. No verified biography/credentials supplied: do not invent them. Shared-style regressions must be guarded. Validation plan: capture current /about before edits; compare iterations at exact 1024×1536; check 768/390/320 widths and both themes; lint/unit/build, route/CTA/mobile/keyboard/axe checks, regression captures for / and /services, operational TASK-013 snapshot/Docker smoke. Captain screenshot/manual acceptance before further page or merge. Workflow on engagement: create bs-013 from integrated codex in .task-worktrees/bs-013 after status checks; one task only; configure TASK-013 browser URL /about. Use roborto-project-context → webapp-feature → frontend-visual-qa; code-review before integration. No unresolved product decision blocks briefing; ordinary frontend implementation/review effort is sufficient. + + +BS-013 result: /about now implements the reference introduction and artwork footprint, three stacked Why BortStack icon/text rows, divider and closing invitation. Truthful business/approach copy, no invented staff/credentials or support guarantees. Missing logo and branded laptop art explicitly marked; no replacement B or unrelated illustration. About-only styles preserve approved homepage/Services exactly. + +Final reference anchors at 1024×1536: header 74px; main x52/w920; hero divider at y566; first value row y685, icon113px at x101; closing panel x30/y1176/w964/h275. Exact full screenshot 1536px includes understated footer. Typography/body scale and code/chat icon treatments iterated against reference; visible minor font/icon/gradient differences remain as documented approximations. + +Validation: lint, 33unit tests, Vite production build and all 72desktop/mobile Playwright checks passed. Covers 320/390/768/1024/1440, route/CTA/active navigation, keyboard skip link, both-theme axe, preference persistence and reference-coordinate checks. Screenshot captures at 1024/1440/768/390/320/light 1024 inspected with no overflow, console/page errors or HTTP failures. Homepage 1024 and Services 1672 PNGs byte-identical to accepted captures. Actual root TASK-013 exact snapshot/Docker/build/migrations/direct+proxied HTTP/real headless Firefox smoke passed, opens /about directly, exit 0; test resources cleaned. Final snapshot refreshed after context edits. + +Captain screenshot/manual acceptance received on 2026-11-10 with explicit commit/merge authorization. Pre-integration code review found no blocking defects; frontend hashes match the tested snapshot. No push, production or further-page implementation authorized. Backend/package manifests/lockfile/shared component/style files unchanged; inherited dependency alerts and authentic-asset finalization remain separate recorded limitations. diff --git a/docs/visual-qa/bs-013/AUDIT.md b/docs/visual-qa/bs-013/AUDIT.md new file mode 100644 index 0000000..e760025 --- /dev/null +++ b/docs/visual-qa/bs-013/AUDIT.md @@ -0,0 +1,18 @@ +# BS-013 About visual audit + +Reference: assets/references/about-concept.png, 1024×1536. Captured live /about before edits at the same viewport; current route is an unfinished placeholder. + +Missing composition: About eyebrow and two-colour headline, left business introduction and right laptop-art footprint; full-width divider; large Why BortStack heading with rule; three stacked icon/text rows; large two-line closing contact panel. Header needs its About active indicator; shared homepage/Services must remain unchanged. + +Reference anchors: header line aroundy74; main left52px; eyebrow aroundy132; title aroundy182; copyy260–495. Hero divider aroundy565. Why heading aroundy610, first iconx101/y687 (about113px square), following icons aroundy843/y998. Text startsx281. Closing panel aroundx31/y1176/w964/h275. Retain required understated footer in lower page space. + +Original approved symbol/lockup and standalone branded laptop artwork are unavailable. Use explicit placeholders in their footprint; do not trace/reinvent the B, crop composite preview into production art, or substitute an unrelated illustration. Match layout/type/spacing using accepted Poppins/palette. Body text is truthful business/approach copy only; no invented staff/credentials/testimonials. Support scope must stay agreed rather than unlimited or guaranteed uptime. + + +## Iterations and result + +First live layout already matched key geometry: header 74, hero 492, divider566, first row685, closing x30/y1176/w964/h275. Screenshot comparison refined headline width to match reference, enlarged value-description typography and replaced single chat/code glyphs with closer native geometric versions. Added explicit whitespace for the closing title’s mobile wrap. Final full page remains 1024×1536, including required footer. + +Resolved placeholder-only route with working reference composition, meaningful truthful copy, three value rows, correct icon/CTA placement and active About indicator. Original laptop/logo assets remain missing and explicitly reserved rather than substituted. Typeface/icon silhouettes and gradients approximate generated artwork; exact approved palette takes precedence over darker sampled pixels. Theme control and footer retained per written requirements. + +Screenshots at 1024/1440/768/390/320 and light 1024 inspected with no overflow, console/page errors or HTTP failures. Homepage 1024 and Services 1672 PNG captures byte-identical to accepted evidence. Lint, 33unit tests, production build and all 72browser cases passed. Actual TASK-013 snapshot/Docker/HTTP/headless Firefox smoke passed at /about and cleaned up. No dependencies/backend/other-page implementation, commit, merge or deployment. diff --git a/docs/visual-qa/bs-013/after-1024-full.png b/docs/visual-qa/bs-013/after-1024-full.png new file mode 100644 index 0000000..c8338df Binary files /dev/null and b/docs/visual-qa/bs-013/after-1024-full.png differ diff --git a/docs/visual-qa/bs-013/after-1024-viewport.png b/docs/visual-qa/bs-013/after-1024-viewport.png new file mode 100644 index 0000000..c8338df Binary files /dev/null and b/docs/visual-qa/bs-013/after-1024-viewport.png differ diff --git a/docs/visual-qa/bs-013/before-1024.png b/docs/visual-qa/bs-013/before-1024.png new file mode 100644 index 0000000..8bdbac2 Binary files /dev/null and b/docs/visual-qa/bs-013/before-1024.png differ diff --git a/docs/visual-qa/bs-013/desktop-1440-full.png b/docs/visual-qa/bs-013/desktop-1440-full.png new file mode 100644 index 0000000..d895dfa Binary files /dev/null and b/docs/visual-qa/bs-013/desktop-1440-full.png differ diff --git a/docs/visual-qa/bs-013/homepage-regression.png b/docs/visual-qa/bs-013/homepage-regression.png new file mode 100644 index 0000000..a0c0416 Binary files /dev/null and b/docs/visual-qa/bs-013/homepage-regression.png differ diff --git a/docs/visual-qa/bs-013/light-1024-full.png b/docs/visual-qa/bs-013/light-1024-full.png new file mode 100644 index 0000000..4d8044b Binary files /dev/null and b/docs/visual-qa/bs-013/light-1024-full.png differ diff --git a/docs/visual-qa/bs-013/measurements.json b/docs/visual-qa/bs-013/measurements.json new file mode 100644 index 0000000..f8d0278 --- /dev/null +++ b/docs/visual-qa/bs-013/measurements.json @@ -0,0 +1,410 @@ +{ + "regressions": { + "homepagePngByteIdentical": true, + "servicesPngByteIdentical": true + }, + "captures": [ + { + "name": "after-1024", + "width": 1024, + "height": 1536, + "theme": "dark", + "errors": [], + "badResponses": [], + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 1024, + "height": 74 + }, + { + "name": "about-heading", + "x": 52, + "y": 74, + "width": 920, + "height": 492 + }, + { + "name": "why-about-heading", + "x": 52, + "y": 566, + "width": 920, + "height": 608 + }, + { + "name": "practical-engineering", + "x": 52, + "y": 685, + "width": 920, + "height": 137 + }, + { + "name": "clear-communication", + "x": 52, + "y": 822, + "width": 920, + "height": 157 + }, + { + "name": "long-term-support", + "x": 52, + "y": 979, + "width": 920, + "height": 133 + }, + { + "name": "about-contact-heading", + "x": 30, + "y": 1176, + "width": 964, + "height": 275 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1488, + "width": 1024, + "height": 48 + } + ] + }, + { + "name": "desktop-1440", + "width": 1440, + "height": 1555, + "theme": "dark", + "errors": [], + "badResponses": [], + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 1440, + "height": 74 + }, + { + "name": "about-heading", + "x": 80, + "y": 74, + "width": 1280, + "height": 520 + }, + { + "name": "why-about-heading", + "x": 80, + "y": 594, + "width": 1280, + "height": 608 + }, + { + "name": "practical-engineering", + "x": 80, + "y": 713, + "width": 1280, + "height": 137 + }, + { + "name": "clear-communication", + "x": 80, + "y": 850, + "width": 1280, + "height": 157 + }, + { + "name": "long-term-support", + "x": 80, + "y": 1007, + "width": 1280, + "height": 133 + }, + { + "name": "about-contact-heading", + "x": 58, + "y": 1204, + "width": 1324, + "height": 275 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1507, + "width": 1440, + "height": 48 + } + ] + }, + { + "name": "tablet-768", + "width": 768, + "height": 1457, + "theme": "dark", + "errors": [], + "badResponses": [], + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 768, + "height": 74 + }, + { + "name": "about-heading", + "x": 32, + "y": 74, + "width": 704, + "height": 492 + }, + { + "name": "why-about-heading", + "x": 32, + "y": 566, + "width": 704, + "height": 546 + }, + { + "name": "practical-engineering", + "x": 32, + "y": 677, + "width": 704, + "height": 119 + }, + { + "name": "clear-communication", + "x": 32, + "y": 796, + "width": 704, + "height": 139 + }, + { + "name": "long-term-support", + "x": 32, + "y": 935, + "width": 704, + "height": 115 + }, + { + "name": "about-contact-heading", + "x": 22, + "y": 1114, + "width": 724, + "height": 267 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1409, + "width": 768, + "height": 48 + } + ] + }, + { + "name": "mobile-390", + "width": 390, + "height": 1612, + "theme": "dark", + "errors": [], + "badResponses": [], + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 390, + "height": 67 + }, + { + "name": "about-heading", + "x": 20, + "y": 67, + "width": 350, + "height": 708 + }, + { + "name": "why-about-heading", + "x": 20, + "y": 775, + "width": 350, + "height": 531 + }, + { + "name": "practical-engineering", + "x": 20, + "y": 864, + "width": 350, + "height": 122 + }, + { + "name": "clear-communication", + "x": 20, + "y": 986, + "width": 350, + "height": 167 + }, + { + "name": "long-term-support", + "x": 20, + "y": 1153, + "width": 350, + "height": 121 + }, + { + "name": "about-contact-heading", + "x": 15, + "y": 1306, + "width": 360, + "height": 206 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1534, + "width": 390, + "height": 78 + } + ] + }, + { + "name": "narrow-320", + "width": 320, + "height": 1809, + "theme": "dark", + "errors": [], + "badResponses": [], + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 320, + "height": 67 + }, + { + "name": "about-heading", + "x": 20, + "y": 67, + "width": 280, + "height": 754 + }, + { + "name": "why-about-heading", + "x": 20, + "y": 821, + "width": 280, + "height": 646 + }, + { + "name": "practical-engineering", + "x": 20, + "y": 910, + "width": 280, + "height": 168 + }, + { + "name": "clear-communication", + "x": 20, + "y": 1078, + "width": 280, + "height": 190 + }, + { + "name": "long-term-support", + "x": 20, + "y": 1268, + "width": 280, + "height": 167 + }, + { + "name": "about-contact-heading", + "x": 15, + "y": 1467, + "width": 290, + "height": 242 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1731, + "width": 320, + "height": 78 + } + ] + }, + { + "name": "light-1024", + "width": 1024, + "height": 1536, + "theme": "light", + "errors": [], + "badResponses": [], + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 1024, + "height": 74 + }, + { + "name": "about-heading", + "x": 52, + "y": 74, + "width": 920, + "height": 492 + }, + { + "name": "why-about-heading", + "x": 52, + "y": 566, + "width": 920, + "height": 608 + }, + { + "name": "practical-engineering", + "x": 52, + "y": 685, + "width": 920, + "height": 137 + }, + { + "name": "clear-communication", + "x": 52, + "y": 822, + "width": 920, + "height": 157 + }, + { + "name": "long-term-support", + "x": 52, + "y": 979, + "width": 920, + "height": 133 + }, + { + "name": "about-contact-heading", + "x": 30, + "y": 1176, + "width": 964, + "height": 275 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1488, + "width": 1024, + "height": 48 + } + ] + } + ] +} diff --git a/docs/visual-qa/bs-013/mobile-390-full.png b/docs/visual-qa/bs-013/mobile-390-full.png new file mode 100644 index 0000000..1969ae6 Binary files /dev/null and b/docs/visual-qa/bs-013/mobile-390-full.png differ diff --git a/docs/visual-qa/bs-013/narrow-320-full.png b/docs/visual-qa/bs-013/narrow-320-full.png new file mode 100644 index 0000000..5da5b42 Binary files /dev/null and b/docs/visual-qa/bs-013/narrow-320-full.png differ diff --git a/docs/visual-qa/bs-013/reference-comparison.png b/docs/visual-qa/bs-013/reference-comparison.png new file mode 100644 index 0000000..0eae46f Binary files /dev/null and b/docs/visual-qa/bs-013/reference-comparison.png differ diff --git a/docs/visual-qa/bs-013/services-regression.png b/docs/visual-qa/bs-013/services-regression.png new file mode 100644 index 0000000..243ce7e Binary files /dev/null and b/docs/visual-qa/bs-013/services-regression.png differ diff --git a/docs/visual-qa/bs-013/tablet-768-full.png b/docs/visual-qa/bs-013/tablet-768-full.png new file mode 100644 index 0000000..dbdf814 Binary files /dev/null and b/docs/visual-qa/bs-013/tablet-768-full.png differ diff --git a/react/e2e/about.spec.js b/react/e2e/about.spec.js new file mode 100644 index 0000000..abb931e --- /dev/null +++ b/react/e2e/about.spec.js @@ -0,0 +1,59 @@ +import AxeBuilder from '@axe-core/playwright' +import { expect, test } from '@playwright/test' + +for (const width of [320, 390, 768, 1024, 1440]) { + test(`About renders and navigates at ${width}px`, async ({ page }) => { + await page.setViewportSize({ width, height: 900 }) + const errors = [] + const failedRequests = [] + page.on('pageerror', error => errors.push(error.message)) + page.on('requestfailed', request => failedRequests.push(request.url())) + await page.goto('/about') + await page.evaluate(() => globalThis.document.fonts.ready) + await expect(page.getByRole('region', { name: 'Why BortStack' }).getByRole('article')).toHaveCount(3) + await expect(page.getByRole('img', { name: /approved about laptop artwork is missing/i })).toBeVisible() + expect(await page.locator('html').evaluate(el => el.scrollWidth <= el.clientWidth)).toBe(true) + for (const heading of await page.getByRole('heading').all()) { + const box = await heading.boundingBox() + expect(box.x).toBeGreaterThanOrEqual(0) + expect(box.x + box.width).toBeLessThanOrEqual(width + 1) + } + await page.getByRole('link', { name: 'Get in Touch' }).click() + await expect(page).toHaveURL(/\/contact$/) + await expect(page.getByRole('heading', { level: 1, name: 'Contact', exact: true })).toBeVisible() + expect(errors).toEqual([]) + expect(failedRequests).toEqual([]) + }) +} + +for (const theme of ['dark', 'light']) { + test(`About accessibility and persistent ${theme} theme`, async ({ page, isMobile }) => { + await page.addInitScript(theme => { if (!localStorage.getItem('bortstack-theme')) localStorage.setItem('bortstack-theme', theme) }, theme) + await page.goto('/about') + await page.evaluate(() => globalThis.document.fonts.ready) + await expect(page.locator('html')).toHaveAttribute('data-bs-theme', theme) + expect((await new AxeBuilder({ page }).analyze()).violations).toEqual([]) + await page.keyboard.press('Tab') + await expect(page.getByRole('link', { name: 'Skip to main content' })).toBeFocused() + await page.keyboard.press('Enter') + await expect(page.getByRole('main')).toBeFocused() + if (isMobile) await page.getByRole('button', { name: 'Toggle navigation' }).click() + await expect(page.getByRole('navigation', { name: 'Main navigation' }).getByRole('link', { name: 'About', exact: true })).toHaveAttribute('aria-current', 'page') + await page.getByRole('button', { name: `Switch to ${theme === 'dark' ? 'light' : 'dark'} mode` }).click() + await page.reload() + await expect(page.locator('html')).toHaveAttribute('data-bs-theme', theme === 'dark' ? 'light' : 'dark') + }) +} + +test('About aligns with reference at 1024×1536', async ({ page }, testInfo) => { + await page.setViewportSize({ width: 1024, height: 1536 }) + await page.goto('/about') + await page.evaluate(() => globalThis.document.fonts.ready) + const hero = await page.getByRole('region', { name: 'About BortStack' }).boundingBox() + for (const [actual, reference] of [[hero.x, 52], [hero.y, 74], [hero.height, 492]]) expect(Math.abs(actual - reference)).toBeLessThanOrEqual(5) + const firstRow = await page.getByRole('article', { name: 'Practical engineering' }).boundingBox() + expect(Math.abs(firstRow.y - 687)).toBeLessThanOrEqual(8) + const closing = await page.getByRole('region', { name: /From initial idea to a fully\s*deployed solution\./ }).boundingBox() + for (const [actual, reference] of [[closing.x, 30], [closing.y, 1176], [closing.width, 964], [closing.height, 275]]) expect(Math.abs(actual - reference)).toBeLessThanOrEqual(8) + await page.screenshot({ path: testInfo.outputPath('about-reference-full.png'), fullPage: true }) +}) diff --git a/react/src/App.jsx b/react/src/App.jsx index c6b0d57..682611e 100644 --- a/react/src/App.jsx +++ b/react/src/App.jsx @@ -6,11 +6,11 @@ import PageMeta from "./components/PageMeta/PageMeta"; import Homepage from "./views/Home/Homepage"; import RoutePlaceholder from "./views/RoutePlaceholder"; import Services from "./views/Services/Services"; +import About from "./views/About/About"; const pages = [ ["projects", "Projects", "Project details will be added after publication permissions and genuine imagery are confirmed."], ["projects/:slug", "Project details", "This case study is not available. Only verified, approved work will be published."], - ["about", "About BortStack", "Business background and working approach are being prepared."], ["contact", "Contact", "The enquiry form and verified business email will be available here. Enquiries cannot be submitted yet."], ["privacy", "Privacy policy", "Privacy information is awaiting review against the actual website data flows before publication."], ]; @@ -25,6 +25,7 @@ export default function App() { } /> } /> + } /> {pages.map(([path, title, description]) => ( diff --git a/react/src/views/About/About.jsx b/react/src/views/About/About.jsx new file mode 100644 index 0000000..b67539b --- /dev/null +++ b/react/src/views/About/About.jsx @@ -0,0 +1,48 @@ +import { Container } from "react-bootstrap"; +import { Link } from "react-router-dom"; +import { FiImage, FiLayers, FiMail, FiMessageCircle } from "react-icons/fi"; +import styles from "./About.module.scss"; + +const qualities = [ + { id: "practical-engineering", title: "Practical engineering", icon: , description: "Fit-for-purpose solutions built with proven tools and a focus on reliability, performance and maintainability." }, + { id: "clear-communication", title: "Clear communication", icon: , description: "A straightforward, transparent approach with regular updates and realistic planning throughout your project." }, + { id: "long-term-support", title: "Long-term support", icon: