Skip to content

Refine brand pages and fix social previews - #1837

Merged
David Pine (IEvangelist) merged 2 commits into
release/17.0from
ievangelist-community-brand-assets
Oct 7, 2026
Merged

David Pine (IEvangelist) merged 2 commits into
release/17.0from
ievangelist-community-brand-assets

Conversation

@IEvangelist

@IEvangelist David Pine (IEvangelist) commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Fix brand external-link icons wrapping onto separate lines or rendering twice.
  • Refine brand card surfaces, spacing, navigation hierarchy, and wordmark galleries while preserving the existing artwork, guidance, and download agreements.
  • Compact supporting accent swatches and remove repeated filler descriptions. Match card code to code-block font sizing, group gradient arguments on one line, and bottom-align gradient Copy buttons.
  • Add the composed brand-board OG image to the overview and fix generated PNG endpoints so advertised image URLs work without trailing slashes.
  • Support a validated build-time PUBLIC_OG_IMAGE_ORIGIN for preview deployments without changing production canonical URLs, with regression coverage.

Preview deployment requirement: Set PUBLIC_OG_IMAGE_ORIGIN to the preview site's public origin before building. This PR does not update or rebuild the existing Azure deployment; changing a runtime setting alone will not update already-built metadata.

This PR contains only the follow-up changes on the release/17.0 base, not a replay of the previously merged brand implementation. The contributor guide is unchanged from the base.

Third-party links and affiliations

None. Existing external resource links are unchanged, including the link-only PowerPoint deck.

Validation

Passed: 185 unit tests across four files.

pnpm --dir src\frontend exec vitest run --config vitest.config.ts tests\unit\brand-assets.vitest.test.ts tests\unit\custom-components.vitest.test.ts tests\unit\page-metadata.vitest.test.ts tests\unit\seo-lengths.vitest.test.ts

Passed: scoped ESLint, zero warnings.

pnpm --dir src\frontend exec eslint src\utils\page-metadata.ts src\data\brand.ts tests\unit\brand-assets.vitest.test.ts tests\unit\custom-components.vitest.test.ts tests\unit\page-metadata.vitest.test.ts tests\e2e\brand-assets.spec.ts 'src\pages\og\[...slug].png.ts' --max-warnings 0

Passed: 24 browser tests across desktop, tablet, and mobile. Covers advertised 1200×630 PNG social cards, multiline external-link rendering, brand page accessibility/reflow, and exact copied color/gradient values.

$env:PLAYWRIGHT_TEST_PORT='4397'; $env:PUBLIC_OG_IMAGE_ORIGIN='http://127.0.0.1:4397'; pnpm --dir src\frontend exec playwright test brand-assets.spec.ts --grep "social cards|multiline external links|accessible and reflows|copies exact" --workers 1

Passed: git diff --check origin/release/17.0...HEAD.

Passed: contributor guide restored exactly to the base.

git diff --exit-code origin/release/17.0 -- src\frontend\src\content\docs\community\contributor-guide.mdx

The unit/browser/lint results above precede the documentation-only removal; no application code changed afterward. No local production build was run. The dev server has been stopped.

Copilot AI 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.

🟡 Changes recommended

Malformed preview-origin values bypass the actionable validation error and produce only a generic URL exception.

1 open finding
What changed in this PR

Refines brand pages and fixes social preview image handling for generated and preview deployments.

Changes:

  • Improves brand cards, galleries, links, and palette layouts.
  • Adds brand overview artwork and corrects generated PNG routes.
  • Supports configurable preview origins with regression coverage.
File Description
src/​frontend/​public/​og/​aspire-brand-assets.png Adds brand social-preview artwork.
src/​frontend/​src/​utils/​page-metadata.ts Supports preview image origins.
src/​frontend/​src/​pages/​og/​[...slug].png.ts Corrects generated PNG paths.
src/​frontend/​src/​env.d.ts Types the preview-origin variable.
src/​frontend/​src/​data/​brand.ts Removes filler accent descriptions.
src/​frontend/​src/​content/​docs/​community/​contributor-guide.mdx Documents preview configuration.
src/​frontend/​src/​content/​docs/​community/​brand/​index.mdx Selects the composed OG image.
src/​frontend/​src/​content/​docs/​community/​brand/​colors.mdx Uses compact accent cards.
src/​frontend/​src/​components/​brand/​BrandAssetGallery.astro Refines wordmark galleries.
src/​frontend/​src/​components/​brand/​BrandCopyValue.astro Adjusts copied-value typography.
src/​frontend/​src/​components/​brand/​BrandExternalLink.astro Fixes external-link suffix layout.
src/​frontend/​src/​components/​brand/​BrandIconDownloads.astro Refines icon-download styling.
src/​frontend/​src/​components/​brand/​BrandNavigation.astro Improves navigation hierarchy.
src/​frontend/​src/​components/​brand/​BrandPalette.astro Compacts accents and gradients.
src/​frontend/​src/​components/​brand/​BrandTypography.astro Refines specimen cards.
src/​frontend/​src/​components/​brand/​BrandUsageGuidance.astro Updates guidance-card styling.
src/​frontend/​tests/​unit/​page-metadata.vitest.test.ts Tests preview-origin behavior.
src/​frontend/​tests/​unit/​custom-components.vitest.test.ts Tests component rendering changes.
src/​frontend/​tests/​unit/​brand-assets.vitest.test.ts Validates overview image dimensions.
src/​frontend/​tests/​e2e/​brand-assets.spec.ts Covers image endpoints and brand UI.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

function resolveOgImageOrigin(value: string | undefined, siteUrl: string): string {
if (!value?.trim()) return siteUrl;

const url = new URL(value.trim());
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1837. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1837 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
David Pine (IEvangelist) merged commit 3f09caf into release/17.0 Oct 7, 2026
16 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the ievangelist-community-brand-assets branch October 7, 2026 17:25
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.

2 participants