Skip to content

fix(about): pick team avatar variant by grid position - #1779

Merged
felixwidjaja merged 2 commits into
mainfrom
fix/team-grid-avatar-backdrops
Oct 6, 2026
Merged

felixwidjaja merged 2 commits into
mainfrom
fix/team-grid-avatar-backdrops

Conversation

@felixwidjaja

Copy link
Copy Markdown
Member

Summary

  • /about/team backdrops now rotate glacier → canyon → pine by card position, and each card shows the headshot variant tuned to its backdrop.
  • Variants are resolved per slug from the Strapi media library (teamAvatarVariants.ts, cached under the authors tag), so adding or removing a person no longer shifts the rest of the roster out of rhythm.
  • Falls back to the author's pinned avatar when a variant isn't uploaded. The profile modal uses the same result as the card.
  • Triggered by the four new bios in Add new team bios to the Datum website #1771 (Viktor, Karthik, Mykola, Andrii), which landed with mismatched backdrops.

Notes

  • Department tab filtering hides cards client-side, so the rhythm is only guaranteed in the "Everyone" view.
  • /hello still uses pine-forge and is unchanged.

Test plan

  • astro check, ESLint, Prettier pass
  • Media library has 93 variant files, all parsed by the new helper
  • /about/team shows glacier, canyon, pine in order with matching hair tones
  • Profile modal backdrop matches the card

The backdrop sequence relied on each author's pinned avatar variant, so
every hire shifted the rest of the roster out of rhythm. Resolve the
glacier/canyon/pine variant per card position from the media library,
falling back to the author's own avatar when a variant is missing.

Refs #1771

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
npm audit fix (non-breaking) also moves smol-toml and
postcss-selector-parser to their patched patch releases.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@felixwidjaja
felixwidjaja merged commit bf01614 into main Oct 6, 2026
7 checks passed
@felixwidjaja
felixwidjaja deleted the fix/team-grid-avatar-backdrops branch October 6, 2026 08:55
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