# QA report (Phase 2, integration)

Project manager, 2026-11-17. Written incrementally while the checks ran; the summary at the top is final.

## Summary

Final state after the second PM session (2026-11-17): **269 tests pass, parity 15 pages / 0 differences, `npm run build` passes.** One definition-of-done item (the three forms load inside the page) can only be proven on https://idealers.net; everything else passes locally, with the visual exceptions listed below.

### Definition of done

| Item (PROJECT_OUTLINE section 9) | Result | Evidence |
|---|---|---|
| All 15 URLs return 200 with a trailing slash; non-slash form 301 | **PASS** | `php scripts/qa/seo-smoke.php --base=http://127.0.0.1:8105`: 59 pass, 0 fail, 1 warn (HSTS not sent over plain HTTP, expected) |
| Parity: no missing or changed text, links, images or meta | **PASS** | `php scripts/parity/check.php --base=http://127.0.0.1:8105`: 15 pages pass, 0 differences (run after the fixes and again at the end) |
| Animations present and equivalent; nothing breaks with JS off or reduced motion | **PASS with exceptions** | `php scripts/qa/nojs.php`: 15 pages, 0 hidden elements with JS off, 0 with reduced motion. Exceptions: IDMS cascading tiles have no hover parallax; tablet menu kept on one line (see "still different") |
| All three idealers.app forms load inside the page | **NOT VERIFIABLE HERE** | idealers.app sends `frame-ancestors 'self' https://idealers.net`, so any other origin is refused (seen in the browser for all three forms, `docs/qa/console-latest.md`). Our CSP allows the frames. Must be checked on https://idealers.net |
| All six Stripe links identical to the original | **PASS** | parity checks each Stripe URL and plan order; unchanged after the admin price edit |
| Admin: every field editable and shown on the site; non-admins cannot enter | **PASS** | `tests/Feature/Admin/SaveRoundTripTest.php` (all 16 content files saved through the real form, byte-identical output), `AdminAccessTest`; real-browser walk-through in section 6 (text, plan price, image upload, SEO title, all live immediately with the page cache on) |
| `php artisan test` passes; `npm run build` passes; no errors in `storage/logs/laravel.log` from normal browsing | **PASS** | 269 tests, 269 passed (1675 assertions); build passes; no log entry written while browsing all 15 pages at two widths (older entries come from test runs and the previous admin script, section 5) |
| No request to WordPress, Google Fonts or other third parties (only idealers.app, and GA/GTM after consent if configured) | **PASS (locally)** | `php scripts/qa/console.php` at 1440 and 390: the only external host contacted is idealers.app; `php scripts/qa/links.php`: 0 broken internal URLs, 0 references to WordPress paths or the production domain. GA/GTM with real IDs only on the server |

### Fixes made in Phase 2

First PM session (sections 1, a, b, c, f, e): `resources/views/errors/minimal.blade.php` (403 page crashed); `app/Support/Content/ContentWriter.php`, `ContentSanitizer.php`, new `SpanColorAttributeSanitizer.php` (saving damaged rich text, lost the cookie table, re-saved whole lists); legal heading colours moved to `resources/css/site/pages-inner.css` and `resources/views/pages/partials/legal.blade.php`, inline spans removed from `resources/content/privacy-policy.php` / `terms-condition.php`; table tool in `app/Filament/Support/ContentFormBuilder.php`; labels/validation in `app/Filament/Pages/SiteSettings.php`; new `public/media/.htaccess`; Tailwind removed from `package.json`/`package-lock.json`; Leads Center slider rewind in `resources/js/products.js` and `resources/css/products/device.css`; new `tests/Feature/Admin/SaveRoundTripTest.php`; `--timeout` in `scripts/qa/links.php`.

Second PM session (sections 4-6):

- Visual (V1-V25, section 4): `resources/css/site/layout.css` (pre-footer desktop/tablet geometry, footer tablet rules and top padding, tablet shape height); `resources/css/site/pages-inner.css` (about tablet image, "Your success" block on four pages, tablet/phone hero spacing, icon boxes, contact/request-demo form cards, request-demo columns and image, talk-to-sales form box, legal lists/table/spacing, contact list gap, about phone title line heights); `resources/css/site/pages.css` (home leads section at all widths, decorative curve, process steps, Lottie size, product band margin collapse, 1 px sideways scroll, satisfied-clients block, phone sales card); `resources/js/site.js` (Lottie keeps its frame while out of view, as Elementor does).
- QA tooling: `scripts/qa/lib/cdp.php` (`qa_devtools_json()`; the browser scripts hung with Chrome 157, the likely cause of the earlier stalls), `scripts/qa/screenshots.php` (uses the shared library), `scripts/qa/console.php` (`--width`), `scripts/qa/nojs.php` (hung with JavaScript disabled).
- Docs: `docs/ADMIN_GUIDE.md` (sign-in code screen, throttling message, code validity, where the Upload/Library buttons are, "Upload and use", Activity log columns and "View"), `docs/qa/console-latest.md` (new), this report.

### Still different from the original

| Page | Width | Difference |
|---|---|---|
| All pages | 768-1024 (checked at 1024) | Desktop menu kept on one line; the original wraps it into a 526 px tall broken column with an overlapping "REQUEST A DEMO" button, so every page is 382 px shorter at 1024. Deliberate, needs the owner's OK |
| idms-idealers-management-system | 1440, 1024 | Mouse-hover parallax of the five cascading tiles not reproduced (positions are exact) |
| pricing | 1440 | Plan table rows 1 px shorter (not visible) |
| home | 390 | Hero and "Your success is our priority" block each 11 px shorter; "Talk to Sales" area 7 px shorter |
| home | 1024 | Product band 9 px shorter; leads section 5 px taller |
| contact | 1440, 1024 | Hero and form card within 6-12 px of the original |
| privacy-policy, terms-condition | 1440, 1024 | Long text card within 10 px of the original's height (the original spaces each legal section with separate widgets; individual gaps differ by up to 8 px) |
| website | 1440 | Hero laptop screenshot captured at a different scroll position (the screen image scrolls; animation timing, not layout) |
| contact, request-demo, talk-to-sales | all | Forms show the browser's "refused to connect" placeholder locally (idealers.app policy) |
| design-studio-tool, pricing | all | Counters have their final value in the HTML and count up with JavaScript (the original showed "0" until its script ran) |
| All pages | all | Top bar social icons have accessible names (the original had none); not visible |

Also open (not a visual difference): the Activity log writes a "login" entry when the password is accepted, even if the 2FA code step is then not completed (section 6).

### Can only be verified on the real domain or server

- The three idealers.app form iframes (embedding is allowed only on https://idealers.net) and one test submission of each form.
- `public/.htaccess` / nginx rules, `public/media/.htaccess` (no script execution in uploads), PHP upload limits (55 MB), the `public/media/uploads` shared-folder symlink across releases.
- HSTS and secure cookies over HTTPS (HSTS is correctly absent on plain HTTP locally); a TLS certificate that matches the domain (the current live one does not).
- Analytics: GA4/GTM IDs, Consent Mode (denied until "I Agree"), and the `data-track` events arriving in GA.
- External link check: `php scripts/qa/links.php --base=https://idealers.net --external` (libcurl DNS lookups hang on this machine).
- Search Console / sitemap submission and the post-launch checks in `docs/DEPLOYMENT.md`.

## 1. Test suite

`php artisan test`

- First run: 251 tests, 240 passed, **11 failed**: every `AdminAccessTest::test_non_admin_is_blocked` case returned 500 instead of 403. Cause: Laravel's built-in 403 view extends `errors::minimal`, which Frontend 1's `resources/views/errors/minimal.blade.php` overrides, and that file expected `$code`/`$fallbackTitle` variables. Fixed by making the view accept both ways of being called (variables, or the `code`/`title`/`message` sections of Laravel's views).
- The parity failures Backend 2 expected (test client trimming the trailing slash) did not occur: `PageParityTest` already sends the exact path through the HTTP kernel.
- No og:image test conflict appeared (Backend 2's SEO tests pass with Frontend 2's `/media/devices/...` values).
- New: `tests/Feature/Admin/SaveRoundTripTest.php` (18 tests, see section a).
- After all fixes: **269 tests, 269 passed, 0 failed.**

## a. Rich text sanitiser vs styling

Found by the new round-trip test (it opens every page in the admin, treats every field as edited, saves through the real Livewire form, writer and sanitiser, and compares the public HTML byte for byte). Before the fix 10 of 16 pages changed:

- The admin editor (TipTap) wraps bare text in `<p>` (adds paragraph margins), drops `id`, `class` and `style`, rewrites entities and `<br>`.
- The legal pages' 18 section headings lost their colour (`<span style="color:#00947e">` / `#0b9c9c`).
- The sanitiser had no table elements, so the cookie table in the Privacy Policy (and all its text) **disappeared** when the page was saved.
- Because a list is saved as a whole, editing one row (one plan price, one legal section title) re-saved and damaged every other row.

Fixes:

- `app/Support/Content/ContentWriter.php`: before sanitising, a submitted rich-text/text value (and each cell of each list row) that says the same thing as the trusted file default, either as written or as the editor itself rewrites it, keeps the file default byte for byte. Only a real edit is stored. Canonical comparison in `ContentSanitizer::canonicalHtml()`.
- `app/Support/Content/ContentSanitizer.php` + new `SpanColorAttributeSanitizer.php`: `<span style="color: #hex">` is kept (regex-validated, normalised, nothing else allowed in the attribute); tables (`table, thead, tbody, tfoot, tr, td, th, caption`) are allowed.
- Legal heading colours moved to CSS (`resources/css/site/pages-inner.css`, `.legal--privacy-policy` / `.legal--terms-condition`, class added in `resources/views/pages/partials/legal.blade.php`); the inline spans were removed from `resources/content/privacy-policy.php` and `terms-condition.php`.
- `app/Filament/Support/ContentFormBuilder.php`: table tool added to the rich-text toolbar so the editor keeps (and can edit) the cookie table.
- Pricing/Design Studio plan `features` are a textarea (plain sanitiser, not HTML-stripped), so `<strong>` and `<span style="color:#hex">` survive; covered by the round-trip test.

Result: all 16 content files (15 pages + Global) round-trip with byte-identical public HTML; editing one legal section title changes only that title.

Known limit: when the owner edits a rich-text field itself, the editor still drops markup it does not support in that one field (ids on headings; nothing visible on this site after the colour move).

## b. Site settings screen

The screen builds its form from every key in `config/site.php` `settings`, so `analytics.hotjar_id`, `analytics.meta_pixel_id` and `seo.default_robots` were present but with generated labels and no validation. Added plain-language labels, help text and validation (`app/Filament/Pages/SiteSettings.php`): Hotjar digits only; robots letters/digits/`:,-` only.

## c. .env.example and media execution

- `.env.example` already contains `ADMIN_PATH`, `ADMIN_2FA_ENABLED`, `ADMIN_2FA_REQUIRED`, `ADMIN_SESSION_TIMEOUT` and the other `ADMIN_*` keys (Backend 2 added them). No change.
- New `public/media/.htaccess`: no handlers, no CGI/SSI, PHP engine off, script extensions denied, `nosniff`. (`public/.htaccess` already refuses any `.php` other than `index.php`; nginx only executes `/index.php`.) Must be verified on the real Apache server.

## f. Tailwind and reference/

- Nothing imports Tailwind (`vite.config.js` and all CSS checked). Removed `tailwindcss` and `@tailwindcss/vite` from `package.json` and `package-lock.json` (`npm uninstall --package-lock-only`); `npm run build` passes.

## g. Fresh install

Throwaway SQLite file in the scratch folder (`DB_CONNECTION=sqlite DB_DATABASE=<temp file>` set as process environment, `database/database.sqlite` untouched):

- `php artisan migrate --force`: all 5 migrations ran (users, cache, jobs, admin columns, content tables).
- `php artisan site:create-admin --name --email --password`: "Created admin user".
- `php artisan site:media-sync`: "Registered 159 file(s)".
- `/`, `/about/`, `/pricing/`, `/sitemap.xml` rendered through the HTTP kernel against that database: all 200.

## Documents

- `docs/DEPLOYMENT.md`: Backend 2's nginx block, Apache notes and shared-hosting `.htaccess` copied in; deploy order (build, shared links, migrate, optimize, switch, `site:create-admin`, `site:media-sync`); **admin uploads go to `public/media/uploads/`, which is inside the release folder, so it must be a symlink to a shared folder or uploads are lost on the next release** (added); PHP `upload_max_filesize`/`post_max_size` 55M; scheduler/queue confirmed unused; table list from the migrations; placeholders removed.
- `docs/ADMIN_GUIDE.md`: rewritten from the real screens (menu groups, section names, Upload/Library buttons, "Edited"/"Reset to original", SEO tab fields, redirect types, settings sections, user fields, Reset 2FA, Activity log columns); all [confirm] marks removed. Corrections found: there is **no "Forgot password" link** (password reset is by the developer's command), the password rule is 12+ characters with mixed case, digit and symbol.
- `docs/DESIGN_PROPOSALS.md`: "replace Arial on the home products band" added under proposal 1.

## 2. Build and checks against a local server (port 8105)

- `npm run build`: passes (Vite 8, 6 assets; run again after every CSS fix below).
- `php scripts/parity/check.php`: **15 pages pass, 0 differences**. 5 warnings: `og:image` on inventory-management, leads-center, website, marketing-tools and crm-system is now `/media/devices/...` (the original pointed at a plugin file that will not exist after the move; see SEO observations). Report: `docs/qa/parity-latest.md`.
- `php artisan test --filter=Parity`: 15 page tests + baseline integrity pass.
- `php scripts/qa/seo-smoke.php`: **59 pass, 0 fail, 1 warn** (HSTS is not sent over plain HTTP, expected; must be re-checked on HTTPS). Covers 200 on all 15 slash URLs, 301 from all 14 non-slash forms, canonical, robots, title/description/h1, CSP/nosniff/Referrer-Policy/Permissions-Policy/frame protection, no X-Powered-By, no cookies on public pages, robots.txt, sitemap.xml (15 URLs with lastmod), old sitemap names 301, WordPress paths 410, `/About/` and `/index.php` redirects, 404, and `/reference/...`, `/.env`, `/composer.json`, `/storage/logs/...`, `/vendor/...`, `/scripts/...` not served. Report: `docs/qa/seo-smoke-latest.md`.
- `php scripts/qa/links.php`: 15 pages crawled, 98 internal URLs (pages, CSS/JS, images, video, fonts), **0 broken, 0 internal redirects, 0 references to the production domain or to WordPress paths**, 25 external links listed. Report: `docs/qa/links-latest.md`.
- External links (`--external`): **could not be verified from this machine.** libcurl's DNS resolution hangs here (curl reports "Resolving timed out" for every host, including idealers.net, while `nslookup` and Chrome resolve fine), and a hung lookup ignores curl's timeout. I added `--timeout=N` to `links.php`; the external check must be run on staging or after launch (`php scripts/qa/links.php --base=https://idealers.net --external`). The 25 external URLs are identical to the original's (parity proves every link href).

## 3. idealers.app iframes: who refuses them

Locally the three form iframes show the browser's "refused to connect" placeholder. Confirmed that this is **idealers.app's own policy, not ours**:

- idealers.app answers each form URL (`/apply/idealers/embedded/contact`, `/request_demo`, `/talk_to_sales`) with `Content-Security-Policy: frame-ancestors 'self' https://idealers.net` and `X-Frame-Options: ALLOW-FROM https://idealers.net` (fetched with `curl -D -` on 2026-11-17; HTTP status 403 to curl because of their bot protection, the headers are the same for browsers).
- Our CSP allows the frame: `frame-src` includes `https://idealers.app` (checked by `seo-smoke.php`: "CSP allows idealers.app frames: PASS"), and the browser console message names idealers.app's `frame-ancestors`, not our policy (see `docs/qa/console-latest.md`).
- Consequence: the forms can only be verified on https://idealers.net itself (or after idealers.app adds the staging host to its `frame-ancestors`). This is on the post-launch checklist in `docs/DEPLOYMENT.md`.

## e. Visual gaps reported by the builders

| Gap | Decision |
|---|---|
| Leads Center screenshot slider loops forward instead of sliding back at the end | **Fixed**: `resources/js/products.js` + `resources/css/products/device.css` now slide back from the last screenshot to the first (slick "rewind"). |
| Pricing table rows 1 px short on /pricing/ at 1440 | Not fixed (not visible at normal zoom; screenshots match). Recorded. |
| IDMS cascading tiles: hover parallax missing | Not fixed (medium effort; static positions are exact). Recorded. |
| Tablet menu (768-1024 px) kept on one line where the original wraps | Not changed: the original's menu breaks into a tall column with an overlapping "REQUEST A DEMO" button at 1024 px (visible in the screenshots). Keeping it on one line is a deliberate deviation by Frontend 1 and needs the owner's OK; listed under "still different". |

## 4. Visual review (Phase 2, second PM session)

Done (second PM session). All 15 pages were compared at 1440, 1024 and 390 px.

Method: the rebuilt screenshots were retaken after the last build (the old ones predated the final CSS). Pages were compared side by side (original | rebuilt crops made with PHP GD) and, where a difference was visible, the element boxes were measured in headless Chrome on both sites (`getBoundingClientRect` of the same element on idealers.net and on the local server) so fixes use measured numbers rather than guesses.

Tooling fix first: **the QA browser scripts hung** (`console.php`, `admin-e2e.php`, `screenshots.php`). The installed Chrome (157) keeps the DevTools HTTP connection open, so every `file_get_contents('http://127.0.0.1:PORT/json/version')` waited for the 60 s socket timeout, and a killed run left Chrome holding the shell's output pipe. This is very likely why the previous session stalled. Fixed: `scripts/qa/lib/cdp.php` has `qa_devtools_json()` (raw socket, reads exactly Content-Length bytes); `scripts/qa/screenshots.php` now uses the shared `lib/cdp.php` instead of its own copy. Also: in Git Bash, pass `MSYS_NO_PATHCONV=1` when a script argument starts with `/` (for example a page path), or MSYS rewrites it into a Windows path.

### Fixes

| # | Where | Width | Was | Fix |
|---|---|---|---|---|
| V1 | Pre-footer call to action, every page | 1440 | image 10 px inset on both sides (540 px wide instead of 550), block 20 px too high | `resources/css/site/layout.css`: `.prefooter__inner` padding 0 (columns span the 1140 px box), padding 194/100 px (was 174/124) |
| V2 | Pre-footer, every page | 1024 | 89 px shorter, image 10 px smaller, text 18 px, button padding 35 px (original tablet rules not applied) | tablet: padding 254/70 px, text 16/24 px, button 12/29 px (post-8656.css tablet values) |
| V3 | Footer, every page | 1024 | desktop paddings and sizes; "Follow Us" column 73 px too far right; links 14 px; copyright bar 50/50 | tablet block: padding 40/20 px, social column no offset, links 13 px, social icons 28 px, copyright bar 70/30 (post-8656.css tablet) |
| V4 | Footer, every page | 1440 | headings 4 px low | padding-top 100 px (was 104) |
| V5 | About hero, "D" team image | 1024 | placed top-right of the card; the original puts it at top 288 / left 484 px, 258 px wide (overlapping the text) | `resources/css/site/pages-inner.css` tablet rule uses the original's position |
| V6 | "Your success is OUR PRIORITY" block (about, contact, request-demo, talk-to-sales) | all | grey box 25 px (desktop) / 54 px (phone) short; section 55 px too tall on contact/request-demo/talk-to-sales; text padding 40 px instead of 60 px at 1024; video 528 px wide at 1024 so it ran 12 px past the screen edge; on phones the video did not overlap the box | `pages-inner.css`: heading margin 25 px, box padding-bottom 89 px, section padding 131/10 px (about 100/100, phone 80/60), tablet video 95 % / -10 %, phone video margin-top -60 px (post-10182 mobile rule). After the fix every box, title, text and video position matches the original to the pixel at 1440, 1024 and 390 on about and contact. |
| V7 | Contact / request-demo hero | 1024, 390 | hero text 53 px too low on tablets (the original's 103 px spacer becomes 50 px at <= 1024), 10 px short at the bottom; on phones the titles used line-height 1.2 instead of the original 43/40 px | `pages-inner.css`: tablet `.page-hero` 50/140 px (talk-to-sales/legal 60/100, about 100/0), phone line-height override removed |
| V8 | Contact / request-demo icon boxes ("CALL US", "BY EMAIL") | all | title/number 28 px line boxes centred on the icon; original: title line-height .9em, number .1em, top aligned | `.icon-box*` rules use the original values (boxes now 60 px / 120 px high as on the original) |
| V9 | Contact form card | 390 | text 20 px from the card edge instead of 40, 40 px too little space above | phone `.form-card` padding 100/30/86 px (measured) |
| V10 | Request-demo hero and form card | all | image fixed 464 px (original: 85 % of its column, so 415 px at 1024 and 315 px at 390), icon boxes 15 px too high, iframe card 10 px too narrow/short | columns 50.347/49.653 %, image 85 %, lead margin 34.4 px, card padding 90/40/81 px (phone 110/40/96) |
| V11 | Talk-to-sales form box | all | box 10 px too high (paragraph margin collapsed), 6 px short; on phones padding 15 px and radius 25 px where the original keeps 30 px / 40 px | `.lead-hero__lead--center` keeps its paragraph margin (`display: flow-root`), `.sales-form` 30/30/36 px, phone override removed. Section heights now equal the original at all three widths |
| V12 | Privacy policy / terms text | all | 14 px of extra space after every list (privacy +81 px over the page), table margin doubled (+14 px), terms 24 px tight after "Last Updated", text card 50 px short at the bottom on phones | lists margin 0, table margin collapses into the figure, terms-only 40 px after "Last Updated", phone padding-bottom 90 px. Card heights now within 10 px of the original at 1440/1024 and 1 px at 390 |
| V13 | Home "Leads & Website Optimization" | 1440 | section 222 px short: container 10 px too narrow (device frames 530 instead of 540 px), heading 25 px tight, credit-row text vertically centred (original top-aligned), decorative curve (`img-17.png`) drawn 338 px too far right inside the text column instead of over the monitor's edge, calendar row 20 px short, process steps 54 px too far right and wrapping at a different width, 140 px missing below the steps (spacer c3d9736) so the "Talk to Sales" card no longer straddled the dark/light edge | `resources/css/site/pages.css`: default container padding, heading margin 80 px, `.feature-row--credit` body top-aligned at 30 px, float positioned in the row (top 4 %, left 39 %) under the columns, calendar media padding-bottom 30 px, steps inner padding 0 14 % 0 10 %, section padding 130/240 px. Every row now starts at the original's y (2669, 3096, 3543, 4020) and the section is 2555 px as on the original |
| V14 | Home leads section | 1024 | tablet rules of the original missing: devices 50 % wide (original 241 px, rebuild 482 px), titles 24/30 px, text 15 px with no letter-spacing, heading 26/17 px | tablet block added; section 2270 px vs original 2265 px |
| V15 | Home leads section | 390 | 338 px short: heading spacing, the hidden device/image columns of the original still take 20 px each, title margin 20 instead of 25 px, missing 50 px spacer at the end | phone rules (section 1531 px vs original 1505 px) |
| V16 | Home "+500 satisfied clients" | 1440, 1024 | 31 px short at 1440; at 1024 67 px short because the middle column was 747 px wide instead of 2/3 of the screen | padding 90/76 px, button margin, column width `min(747px, 2/3)`; now 511/578 px as on the original |
| V17 | Home Lottie animation (map, car, buildings) | all | after scrolling down and jumping back, the rebuild reset the animation to frame 0 (empty) while the element was out of view; Elementor freezes the last frame while out of view | `resources/js/site.js`: scroll-linked frame only updates while the element is in the viewport |
| V18 | About: "ABOUT IDEALERS", "Mission & Vision" titles | 390 | line-height 1.1em where the original's phone rules use .8em (card 9 px and mission block 10 px too tall) | phone rule in `pages-inner.css` |
| V19 | Pre-footer white shape | 1024 | 300 px high (the original keeps 500 px at every width), so the dark area started too high | tablet override removed in `layout.css` |
| V20 | Contact details list | all | 5 px between icon and text, original 10 px | `.contact-list a` gap 10 px |
| V21 | Home product band (teal) | all | the boxes' -65 px margin collapsed through the band, so the teal background started 65 px inside the hero image (the original shows the hero photo behind the top half of the boxes) | `.products-band` is a block formatting context (`display: flow-root`); band now starts at the end of the hero as on the original |
| V22 | Home Lottie illustration | 1440, 1024 | animation box 540 x 419 (1440) / 482 x 271 (1024), so the drawing was 26 % / 50 % smaller; the original's box is 734 x 419 at both widths and overflows its column | `.lottie` 734 x 419 px, column `min-width: 0`; at 1024 the steps had been pushed off-screen by the wider box before this was added |
| V23 | Home process steps | 1024 | 46 px too far right | tablet: no left inner padding (original), right 76 px |
| V24 | Every page | all | the page scrolled sideways by 1 px (home product-band shape is 100 % + 1.3 px wide) | `.products-band` `overflow-x: clip`; an all-pages check (15 pages x 3 widths, `scrollWidth > clientWidth`) now finds nothing |
| V25 | Home leads / talk to sales | 390 | heading 10 px high, rows 20 px low; sales card title 11 px lower relative to the dark edge | phone padding 90/134 px, heading margin 85 px, card margin -119 px. Leads section now 1505 px as on the original |

### Section-by-section result (all 15 pages, 1440 / 1024 / 390)

Every top-level section of every page was measured on both sites at the three widths (script: element boxes of each Elementor top-level section vs each rebuilt section). After the fixes above:

- pricing and the seven product pages (Frontend 2): every section height is identical to the original at all three widths (largest difference 1 px). No change was needed.
- about, contact, request-demo, talk-to-sales: identical section heights at all widths (largest remaining difference 9 px, contact hero at 1024).
- privacy-policy / terms-condition: hero identical; the long text card is within 10 px at 1440 and 1024 and 1 px at 390 (the original builds each legal section from separate Elementor widgets with slightly different gaps; the rebuild uses one rich-text field per section).
- home: every section within 2 px at 1440 (page 7026 vs 7025 px), within 9 px at 1024, and at 390 the hero and intro are each 11 px shorter than the original (not traced further).
- At 1024 every page is 382 px shorter in total because of the deliberate one-line tablet menu (the original's menu wraps into a 526 px header). Everything below the header lines up.

## 5. Browser console pass

`php scripts/qa/console.php` (1440 px) and `php scripts/qa/console.php --width=390 --no-write`, all 15 pages, headless Chrome 157, each page scrolled to the end and the cookie notice accepted. Result: **0 JavaScript errors, 0 console errors or warnings, 0 CSP violations, 0 failed requests, no request to any host other than idealers.app**. The only entries are the expected ones: contact, request-demo and talk-to-sales each log idealers.app's own `frame-ancestors 'self' https://idealers.net` refusal and the matching blocked frame request (the browser received idealers.app's headers: HTTP 200, `Content-Security-Policy: frame-ancestors 'self' https://idealers.net`). Report: `docs/qa/console-latest.md`. (`console.php` gained a `--width` option.)

`storage/logs/laravel.log`: no entry was written while the 15 pages were browsed in this session. The newest entries (17:14-17:48 UTC, before this session) are Livewire "Unable to set component data" errors and one 30 s timeout from the previous PM's admin script calling the wrong Livewire component; the 14:35 `Undefined variable $code` entries are from the test run before the `errors/minimal.blade.php` fix. None come from public browsing.

## 6. Admin end-to-end in a real browser

Server: `php -S 127.0.0.1:8105` with `PAGE_CACHE=true` set as a process environment variable (`.env` untouched). Temporary admin created with `php artisan site:create-admin --name="QA Temp" --email=qa-temp@example.test --password=...`. Driven in headless Chrome through the real admin screens (`scripts/qa/admin-e2e.php`, plus a second script that clicks the image field's Upload button and attaches a file through the browser's file input).

| Step | Result |
|---|---|
| Sign in at `/admin` | PASS |
| Public `/`, `/about/`, `/pricing/` served from the page cache before editing | PASS (`X-Page-Cache: HIT`) |
| Home: hero title edited and saved | PASS, new text on `/` immediately (`X-Page-Cache: MISS`, so the cache was cleared) |
| Pricing: Premium price 199 -> 187 in the plan list | PASS, shown on `/pricing/`; the other plans and all six Stripe links unchanged |
| About: Team image replaced with the **Upload** button (PNG attached in the upload window, description typed, "Upload and use", "Save changes") | PASS: "Uploaded. Click "Save changes" to publish it." then "Saved. The live page is updated."; `/about/` showed `/media/uploads/2026/11/qa-upload-test-*.png` right away; library entry created |
| About: SEO title changed on the SEO tab | PASS, `<title>` on `/about/` changed immediately |
| Activity log (`Administration > Activity log`) | PASS: every step listed with time, user, event, page and field (created admin, logins, the four content/SEO edits, the media upload, every reset, two-factor enabled); "View" shows before/after |
| Two-factor setup on the profile page | PASS: "Set up" shows QR code + 16-character secret; TOTP code computed from the secret, typed with the password, "Next", recovery codes, "Enable authenticator app"; secret stored. Next sign-in asked "Verify your identity" and accepted a fresh code with "Confirm sign in" |
| Login throttling | Seen in passing: rapid repeated sign-ins answered "Too many login attempts. Please try again in 5 seconds." |
| Reset everything | Each edited field put back through the admin (writer then stores nothing); uploaded file and its library entry deleted (`MediaStorage::delete`), Livewire temporary upload files removed, temporary admin and its sessions deleted, one empty `page_meta` row left by the previous session removed |
| After cleanup | **0 users, 0 content overrides, 0 page_meta rows, 0 settings, 0 redirects**, 159 media (the synced originals); `/media/uploads/...` returns 404; public pages show the original title, image and price |

Findings:

- **Audit detail (not fixed, Backend 1 area):** a "login" activity entry is written as soon as the password is accepted, also when the second (code) step is then abandoned or fails. The log therefore over-reports sign-ins for 2FA users. Suggest logging "login" only after the second factor (or logging a separate "password accepted" event).
- The image Upload/Library controls are small icon buttons at the right end of the path box (names only as tooltips). `docs/ADMIN_GUIDE.md` now says so; the guide's sign-in, upload, throttling and Activity log passages were corrected from what the screens really show.
- The activity log keeps the entries of this and the previous QA run (users deleted, entries kept as history).

`scripts/qa/nojs.php` also hung (a page-side `setTimeout` never fires with scripts disabled); it now waits on the PHP side. Result: 15 pages, 0 hidden elements with JavaScript off and 0 with reduced motion.
