Repository navigation
test(app): make the sidebar brand geometry checks rebrand-proof and guard the compact mark against drift - #4835
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (6696 ms), confidentiality-review (2566 ms), spec-provenance-review (34768 ms), desktop-den-sync-review (4682 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (55eeb97ae87fa4f02dea7caa3fb638f8b9844d33). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (58847a1f6ac60c571ebc9e032c04b9198498d13f). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Summary
Small test-only follow-up to #4827 and its maintenance review. No artwork, production layout, enterprise branding, or derivation script changes. Keep the accepted compact sidebar asset and
gap-1.5.apps/app/tests/sidebar-brand-asset.test.ts: nonempty SVG paths with explicitd/fill, exactly one viewBox in each asset, and byte-identical SVG-root markup after removing only viewBox attributes and outer whitespace. Extracting the root excludes the existing explanatory preamble comment without a sanitization/comment-stripping regex. This preserves the path/fill bytes and catches unexpected transforms/groups/attributes too. Failures explicitly tell maintainers to sync the artwork and regenerate the compact viewBox after a rebrand.evals/specs/sidebar-brand-geometry.e2e.test.tsassert layout invariants rather than today's brand: painted bbox centered in the rem-scaled 20px slot within ±0.5 CSS px; bbox area occupies at least 75% of the slot; label rail alignment; nonempty app label; no clipping; centered object-position and dark inversion; and unchanged custombrandLogoUrlsource identity/geometry.OpenWorklabel, 16×20 painted size, marketing viewport, path-parity comparison, and marketing-asset fetch from the E2E spec. The new unit test owns asset parity.Enterprise branding remains runtime-only: customers supply Den-served wordmarks/square icons, not replacements for the stock SVG.
Verification — Passed
Signed head:
58847a1f6ac60c571ebc9e032c04b9198498d13f;git log -1 '--format=%G?'returns G. Only the newwt-sidebar-brand-hardeningworktree was used.Exact requested verification commands:
The geometry run tested light/dark × 16/20px root sizes and custom branding in both themes. Measured bbox occupancy: 79.84%; largest center error: <0.011 CSS px; label x difference: 0px. Eight passing assertion records. Six screenshots are supplementary and not visual pass/fail oracles. No native Windows/macOS claim; no Den required. Task-owned Daytona sandbox was deleted.
HEAD-matching source evidence:
evals/results/test-runs/2026-09-10T19-07-57-165Z-sidebar-brand-painted-bounds-align-with-the-action-rail-without-changing-custom-/.The first commit passed the three requested checks, but CodeQL flagged the unit test's comment-removal regex as incomplete HTML sanitization. Replaced it with SVG-root extraction (no suppression); reran the unit test, app typecheck, and geometry spec once on the new signed/pushed head so the evidence matches the final code. Earlier geometry evidence is superseded, not counted as final-head proof.
Option A — tighten the shared source viewport everywhere (not implemented)
Potentially preferable long-term: one tight source asset removes the duplicate and its synchronization burden. No requirement for the padded canvas was found; the manifest uses
purpose: "any", not a maskable safe area. However, global tightening changes the apparent scale/framing outside the sidebar, so it should follow visual review of these nine other production references, rather than land in this test-hardening PR:apps/app/index.html:14.apps/app/public/manifest.webmanifest:16–19.apps/app/src/app/constants.ts:175(default-hidden entry).apps/app/src/app/constants.ts:190(default-hidden entry).apps/app/src/app/extensions.ts:162.apps/app/src/app/extensions.ts:194.apps/app/src/react-app/domains/onboarding/welcome-page.tsx:69.apps/app/src/react-app/domains/cloud/enterprise-activation-gate.tsx:179.apps/app/src/react-app/domains/cloud/den-signin-surface.tsx:234.These are nine references, not necessarily nine independent screens. The SVG favicon does use this source; the separate PNG/touch favicons and packaged OS icons do not. Den Web and the landing site have separate copies of the SVG and would not automatically change from editing the app's source asset alone. Den API also returns this path as extension/marketplace metadata; which asset is served depends on the rendering client's origin.
Leave this PR ready for the user's review and merge. Do not auto-merge.