Skip to content

fix(app): align the sidebar logo and wordmark - #4827

Merged
yomgui merged 4 commits into
devfrom
fix/sidebar-brand-optical-alignment
Sep 10, 2026
Merged

yomgui merged 4 commits into
devfrom
fix/sidebar-brand-optical-alignment

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Fix the stock sidebar identity appearing undersized, detached from its name, and misaligned with the navigation labels. Preserve the original mark's paths/colors and organization wordmarks.

  • Add a sidebar-only compact viewport (146 7 468 585) for the existing artwork; keep the shared marketing asset untouched.
  • Reduce the brand-row gap from 8px to 6px, keeping the 20px icon slot, 44px row, and typography unchanged.
  • Add real Electron geometry coverage and correct a stale managed-brand source test that contradicted the existing stock-header fallback.

Root cause and measured UI analysis

This is not diagnosed from a screenshot alone. The test measures production DOM rectangles and the shipped SVG paths with getBBox(), then maps painted bounds through the image viewport.

The shared mark has a 0 0 834 649 canvas around artwork approximately 467.46 × 584.46, with asymmetric empty margins. items-center centered the image element, not the visible mark. Separately, the stock brand label started 2 CSS px farther right than the action label.

At 16px root Before After
Brand/action label x 44 / 42 42 / 42
Visible mark width × height 11.210 × 14.016 15.982 × 19.982
Mark horizontal center offset −0.884px +0.005px
Mark vertical center offset −0.605px −0.008px

The underlying isometric drawing is intentional; the integration into the compact sidebar was the bug. Earlier coverage checked brand presence/replacement, not painted bounds. New coverage prevents that gap.

Product/design assessment and options

No repository guideline specifying stock-sidebar optical offsets or logo proportions was found. packages/docs/start-here/on-prem-branding.mdx distinguishes sidebar wordmarks from square OS icons. This is an engineering/design recommendation, not a claim of designer approval.

  1. Compact sidebar asset + aligned label rail (chosen): corrects the measured defect without redesigning the mark, typography, or enterprise branding.
  2. CSS nudge/enlarge the existing padded image: fragile because it compensates for an asymmetric asset canvas; makes the slot/gap harder to reason about. Rejected.
  3. Dedicated fixed horizontal wordmark: more consistent across platform fonts, but a broader brand decision and needs an approved lockup.
  4. Wordmark only: a valid simpler identity treatment, but unnecessarily removes an established symbol for this bug fix.

Relevant external precedents (brand guidance, not pixel specifications for OpenWork):

  • Slack provides dedicated small-size variants. Its published guidelines explicitly discuss optical baseline alignment and more open small-size construction.
  • Linear prefers the wordmark where space permits and the mark in tight layouts.
  • OpenAI uses fixed wordmark proportions and says not to pair its primary wordmark with the Blossom: symbol-plus-name is not mandatory.

Suggested future brand work: document compact/standard assets, minimum sizes, intentional internal spacing versus external clearspace, and light/dark lockups; optically review the mark with the wordmark at actual 1× sizes. Do not confuse bounding-box centering with a universal optical rule or copy another brand's numeric clearspace requirements.

Verification

Feature Passed — Daytona Linux Electron, isolated app/profile. No user's live app was driven. Screenshots supplement coded assertions; native macOS/Windows/mobile layouts are not claimed.

  • Baseline app 2fcbae60e: 0 passed / 1 failed / 0 skipped, exit 1; reproduced original geometry failure.
  • PR HEAD 599aebefb2f6257d924065bbd5e617299463e571: 1 passed / 0 failed / 0 skipped, exit 0. Four stock combinations (light/dark × 16/20px root) plus both custom-wordmark themes. Assertions include actual painted size/center, centered object-position, label alignment, containment/no clipping, unchanged path data/colors and marketing viewport, and unchanged custom branding including exact configured image identity.
  • bun test apps/app/tests/managed-brand-header.test.ts: 1 passed, 5 expectations, exit 0.
  • node evals/scripts/check-browser-code.mjs: 851 callbacks checked, exit 0.
  • git diff 2fcbae60e --check: exit 0.

Reproduce after fetching this branch:

OPENWORK_EVAL_DAYTONA=1 OPENWORK_EVAL_REF=599aebefb2f6257d924065bbd5e617299463e571 OPENWORK_EVAL_E2E_TESTS=1 pnpm --dir evals exec vitest run --config vitest.config.ts --project e2e specs/sidebar-brand-geometry.e2e.test.ts

Final source evidence: evals/results/test-runs/2026-09-10T18-40-22-609Z-sidebar-brand-painted-bounds-align-with-the-action-rail-without-changing-custom-/. Published HEAD-matching assertions and screenshots.

Addressed CI test-quality advisory TQ2-7DB: custom branding now compares rendered image.src with the independently retained configured logo URL. Reran on the new signed HEAD in a fresh Daytona app: 1 passed, zero failed/skipped; 8 assertion records.

Final HEAD CI: core/build/required checks, CodeQL, i18n audit, legacy-flow guard, and Warden completed successfully. Warden reports zero findings/advisories on the final HEAD. Non-applicable extended/docs/models/revert jobs were skipped, not counted as tests passed. Vercel built the production change on the initial HEAD and intentionally ignored the subsequent test-only commit.

Known repository check issue: node evals/scripts/spec-boundary-ratchet.mjs exited 1 with the same 18 violations across seven unrelated specs on both clean base and initial tested HEAD (same Daytona/Node runtime); the new sidebar spec is not listed. This is not counted as a passing check. GitHub core/build/required checks passed on the initial HEAD; current check results remain visible below.

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 10, 2026 6:40pm UTC
openwork-den Ignored Ignored Preview Sep 10, 2026 6:40pm UTC
openwork-diagnostics Ignored Ignored Preview Sep 10, 2026 6:40pm UTC
openwork-landing Ignored Ignored Preview Sep 10, 2026 6:40pm UTC

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native 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 (28875 ms), confidentiality-review (32350 ms), spec-provenance-review (57586 ms), desktop-den-sync-review (38738 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 2
  • Distinct heads in retained window: 2
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 2/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 10, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (30ca21aa15e7ddd1f96b4cb6327d51893f4d451e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (599aebefb2f6257d924065bbd5e617299463e571). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 599aebefb2f6257d924065bbd5e617299463e571 · selected evidence

Open review report

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Review: approach OK, two hardening changes before merge

Context. Enterprise branding is runtime-only (Den-served wordmark + square icon), so customers never replace openwork-mark.svg; the stock mark is ours and changes rarely. A sidebar-specific compact asset is therefore acceptable. Nothing found needs the padded canvas (manifest icon is purpose: any, favicons/OS icons are separate files), so tightening the source asset everywhere (Option A) stays open as a design call, not required here.

Please change before merge:

  1. Drift guard. Add a unit test asserting that every <path d> and fill in apps/app/public/openwork-sidebar-mark.svg is byte-identical to the corresponding path in apps/app/public/openwork-mark.svg (only the viewBox may differ). The paths now live in two files; this makes a future rebrand fail loudly instead of drifting. No derivation script needed.

  2. Spec asserts invariants, not brand constants. In evals/specs/sidebar-brand-geometry.e2e.test.ts, keep: painted mark centered in its 20px slot within ±0.5px, mark fills ≥ 75% of the slot, brand label x == nav label x, nothing clipped, dark:invert applied, custom brandLogoUrl path unaffected. Drop the hard-coded "OpenWork" label, the 16×20 size, marketingViewBox === "0 0 834 649", and pathsUnchanged (covered by the unit test above). A future mark or rename must not break a geometry test.

Keep the gap-1.5 change.

Open design question (not blocking): should the mark be tighter on the other nine surfaces too (welcome page, activation gate, sign-in, extension/marketplace icons)? If yes, the right fix is a tight viewBox on the source asset and no second file. Before/after screenshots of those surfaces would settle it.

@yomgui
yomgui merged commit 61c9db6 into dev Sep 10, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant