Repository navigation
feat(studio): rebuild the studio page with a person card per member - #332
Merged
Merged
Conversation
Export resolveExpertFields, which resolves one member's tools and drops placeholders, and toolReporter, which now takes the log function. The studio page (#244) resolves every member with them.
MemberAvatar is the round photo in a challenge colour ring, with initials behind it, in two sizes. PersonCard uses the large one; the studio hero and expertise cards use both. getFirstName ignores leading and repeated spaces.
Rebuild the page against the equipe mockup. Every active Team member gets a PersonCard with all their tools. A member without expert fields still gets a card, with the bio on its back. - Hero with the technology headline style and a member marquee - Previous companies strip, from the member files - Model, expertises (one card per challenge), team and offices sections - Offices section carries the #vie anchor - Share section and a closing section with the join card when jobs is on Mockup copy with no production equivalent is new in both locales. The v1 team card and team photo illustration are deleted.
The loader test checks that every active member gets a card, that tools and bios resolve in the page language and that placeholders drop. The TeamSection test checks that a card shows all five tools of a member and puts the bio on the back when there is no contribution.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The studio page built each member card by calling buildExpertCards on a one-member list. It now calls buildExpertCard, which buildExpertCards maps over. Challenge pages render the same cards as before.
Each card now shows the challenge name in a pill of its colour, the challenge promise as its title, then the experts' faces and first names, as in the equipe mockup. The names read "Clara et Dorian" in the page language, so the "Experts:" line and its key go. The heading is centred.
Podcast sits on dark, club on light yellow and blog on light sky, in three columns with a text link, as in the mockup. The heading is centred. The card recipe has no tone for these colours yet: each card adds one static class next to card().
Both cards use card() with xl padding and no border or shadow. The join card is dark with a yellow eyebrow and a yellow button. The dark tone stays a single static class until the card recipe gets one.
Member cards (photo, first name, role) run in two tilted rows that scroll in opposite directions, as in the mockup. A visible button pauses them (WCAG 2.2.2), as do hover and focus. Reduced motion stops them, and a team under 12 members shows as a static grid. The track, pause button, hover pause and edge fade live in studio-marquee.tsx so the companies strip can reuse them.
The label sits on the left and the previous companies scroll on one line, with an icon pause button. Vertical spacing comes from tokens.
The offices card lists the cities with a coloured dot and their note on hairline rows, next to a map of France with the three offices. Under it, a gallery of the office and seminar photos already used by the jobs page: one wide photo, then a grid of four.
Eyebrow, three-line headline with the last line in mint italic, intro and a CTA to the team section, as in the equipe mockup. English added.
Replaces the Studio model band with the mockup's "Comment nous travaillons": the three squad roles with their tags, then the two-week sprint timeline. The #squad anchor stays. ModelSection becomes SquadSection.
The map repeated the city list for screen readers: it is now hidden from them. The two office photos get their own alt text.
- Under reduced motion, the still rows sit flat, unmasked, and wrap so no card or company is clipped. - Below six companies, the strip is a static row. - The companies pause button gets its own name, apart from the team one. - The strip is labelled by its visible text, read once. - Only the first four photos of each hero row load eagerly.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #244.
Rebuilds the studio page against the
equipemockup. Every active Team member gets aPersonCardwith all their tools.What changes
headlineAccent.mint, the mockup intro, and a "Rencontrer l'équipe" CTA to#equipe. Below it, two tilted rows of member cards scroll in opposite directions, with a visible pause button (WCAG 2.2.2). With reduced motion the rows stop, sit flat and wrap. Below 12 members they are a static grid.previousCompanies, once each, in member order. One scrolling line with an icon-only pause button. Below 6 companies, a static row.#squad): mockup copy, "Comment nous travaillons". The three roles with their tags (RevOps Director "Stratégie", RevOps Manager "Builder", RevOps Engineer / Analyst "À la demande"), then the 2-week sprint timeline (planning, build and test, demo and review).ModelSectionbecomesSquadSection.#expertises): one card per published challenge, with the challenge name in a pill of its colour, its promise as the title, then its experts' faces and first names. The whole card links to the challenge page.#equipe): onePersonCardper active member, all tools, previous companies, and the challenge label (reusingchallenges:experts.label). The heading is centred.#vie, withscrollMarginTop: '24'): two-column header, a card with the city rows and a France map (decorative, hidden from screen readers), side by side from tablet. Then a photo gallery reusing the jobs page photos, laid out as in the mockup: 4 columns and 220px rows from tablet, 16px gap, the seminar photo over 2 columns and 2 rows. Each photo zooms to 1.05 on hover (mockup 0.6s ease, snapped to theslowestduration and the default curve), with no zoom under reduced motion.#partage): podcast, club and blog cards, tinted as in the mockup. The podcast card usescard({ tone: 'dark' }); the yellow and sky tints stay inline.card({ tone: 'dark' })when the jobs page is on, side by side from tablet.Shared pieces:
preset/recipes/card.tsgets atone: 'dark'variant (dark background, white text), as decided for the first open question. The/design-system/cardsshowcase shows it.MemberAvataris extracted fromPersonCard, and the studio hero and expertise cards reuse it.getFirstNamegoes intoapp/utils/first-name.ts.resolveExpertFieldsandtoolReporterare exported fromapp/modules/content/challenge-references.ts. The studio page resolves each member exactly as challenge pages do.buildExpertCardis extracted, so the studio page and the challenge pages build expert cards the same way.app/components/studio/studio-marquee.tsxholds the marquee track and pause button shared by the hero and the companies strip.Deleted, after a grep showed no other user:
app/components/studio/team-member-card.tsxandapp/components/studio/team-photo-illustration.tsx.app/components/about/team-member-card.tsxis a different file and stays.Waiting for Ocobo
Production copy is kept for the team heading and the contact card.
Mockup copy, as decided: the hero (eyebrow, headline, intro, CTA) and the squad section (heading, intro, roles, tags, sprint timeline).
The strings below have no production equivalent either. They come from the mockup, or I wrote them. The English of all mockup copy is my translation, not reviewed.
Left out, waiting for a decision:
[X]values);No bracketed placeholder renders: member fields go through the placeholder rule, and the loader test covers it.
Gradient text
None. The page uses no
headlineAccent.aiand nogradients.ai-text. The Revenue AI expertise card and labels use the coralchallengeFill, as ADR 0002 sets.Not possible: the offices chip
The brief asked to restore the offices chip in
chipsByKey.studio.chipsByKeywas removed in #324, so only the#vieanchor is added.Open questions
previousCompanies. My local content has none, so I could not check the strip visually. Which companies should appear?display-xlgives 72px at theheadingline height. I kept the token.Tests
app/routes/_main.($lang).studio.test.ts: every active member gets a card, with or without expert fields. Tools resolve and all five are kept. Placeholders drop. The bio comes in the page language. Companies are deduplicated. English works on/en. An unknown tool drops and the card stays. The loads run in parallel.app/components/studio/team-section.test.tsx: one card per member. A card shows all five tools, with no limit. Experts get the challenge label. A card with no contribution shows the bio.app/utils/first-name.test.ts.pnpm check,pnpm typecheckandpnpm test:runpass (89 files, 1256 tests).pnpm panda codegenandpnpm panda cssgen --cleanwere run./fr/studioand/en/studio: hero, squad, expertises, team, offices, share and closing render; no placeholders.Pages to review on the Vercel preview
preset/changed: the card recipe has a newtone: 'dark'value. It adds a class and changes no default, so existingcard()calls keep their classes. The J1 route checklist (docs/development/j1-route-review-checklist.md) has two new lines for it, on Studio and on the design system cards page. Pages that usecard()and are not being redesigned, to check on the preview:MemberCard).card()call.card()call.PersonCardchanged (now usingMemberAvatar), so check that these still look right:/studioand/en/studio./challenges/customer-experience)./design-system, person card section.Not redesigned and not touched by this PR: offer, blog, customer stories, legal, contact. They do not use
PersonCardorMemberAvatar.