Skip to content

refactor(shared): make @shared the single home for brand logo assets#6714

Open
reecebrowne wants to merge 1 commit into
mainfrom
feat/shared-branding
Open

refactor(shared): make @shared the single home for brand logo assets#6714
reecebrowne wants to merge 1 commit into
mainfrom
feat/shared-branding

Conversation

@reecebrowne

Copy link
Copy Markdown
Contributor

What

Makes @shared the single home for the Stirling brand logo assets. Moves the editor's two logo sets — classic-logo + modern-logo (22 files: marks, wordmarks, favicons, login headers, PNGs) — out of editor/public/ into shared/assets/brand/, and adds a Storybook Brand/Logos gallery.

Why this shape (not a plain move)

The editor serves logos by URL from public/ and switches classic/modern by a user preference (useLogoAssets, manifest.json / manifest-classic.json, index.html favicon links). Rewiring all that to module imports would be a large, risky change to the variant system.

Instead the editor keeps its variant system unchanged and just sources the files from shared: vite-plugin-static-copy copies shared/assets/brand/{classic,modern}-logo/* back to the served /{classic,modern}-logo paths (the editor already uses this plugin for pdfium/pdfjs assets). Single source of truth in shared, zero editor code/manifest/markup changes.

Verified

  • Build: editor builds with both sets present at dist/{modern,classic}-logo/; manifest.json + favicon refs resolve.
  • Dev: the vite dev server serves the bridged paths — /modern-logo/logo512.png, /modern-logo/StirlingPDFLogoNoTextDark.svg, /classic-logo/favicon.ico all return HTTP 200 (the plugin's dev middleware).
  • Typecheck clean on core/proprietary/saas; prettier clean; storybook build succeeds with the Brand/Logos gallery bundled.
  • The portal's existing @shared/assets brand imports are untouched.

Follow-ups (not in this PR)

  • Dedup: shared/assets/stirling-mark-*.svg is byte-identical to brand/modern-logo/StirlingPDFLogoNoTextDark.svg, and stirling-pdf-logo-* is a near-twin of the modern wordmark. Reconciling these (and re-pointing the portal) needs a designer eye on which wordmark is canonical, so it's left out here to avoid changing the portal's rendered logo.
  • editor/src/logo.svg appears unused (no references) — candidate for deletion separately.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines ignoring generated files. enhancement New feature or request labels Jun 17, 2026
@stirlingbot stirlingbot Bot added Front End Issues or pull requests related to front-end development refactor Code changes that neither fix a bug nor add a feature and removed enhancement New feature or request labels Jun 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Frontend Check Failed

There are issues with your frontend code that will need to be fixed before they can be merged in.

Run task frontend:fix to auto-fix what can be fixed automatically, then run task frontend:check:all to see what still needs fixing manually.

Move the editor's classic-logo + modern-logo sets (22 files: marks, wordmarks,
favicons, login headers, PNGs) out of editor/public into shared/assets/brand, so
all brand assets live in the shared design system. The editor's vite build copies
them back to the served /{classic,modern}-logo paths via vite-plugin-static-copy,
so its URL-based variant system, manifests, index.html and useLogoAssets are
unchanged. Adds a Storybook "Brand/Logos" gallery.

Verified: editor builds with the assets in dist, the vite dev server serves them
(HTTP 200), typechecks pass on all flavors, and storybook builds with the gallery.
The portal's existing @shared/assets brand imports are untouched.
@reecebrowne reecebrowne force-pushed the feat/shared-branding branch from f9d2982 to eb58346 Compare June 17, 2026 22:13
@stirlingbot

stirlingbot Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🚀 V2 Auto-Deployment Complete!

Your V2 PR with embedded architecture has been deployed!

🔗 Direct Test URL (non-SSL) http://54.175.155.236:6714

🔐 Secure HTTPS URL: https://6714.ssl.stirlingpdf.cloud

This deployment will be automatically cleaned up when the PR is closed.

🔄 Auto-deployed for approved V2 contributors.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Tauri Desktop Builds Ready!

The desktop applications have been built and are ready for testing.

Download Artifacts:

🐧 Linux x64: Download Stirling-PDF-linux-x86_64 (.deb, .rpm, .AppImage) - 830.7 MB
🪟 Windows x64: Download Stirling-PDF-windows-x86_64 (.exe, .msi) - 249.2 MB
🍎 macOS Universal: Download Stirling-PDF-macos-universal (.dmg) - 319.0 MB


Built from commit 2513300
Artifacts expire in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Front End Issues or pull requests related to front-end development refactor Code changes that neither fix a bug nor add a feature size:L This PR changes 100-499 lines ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant