Skip to content

Mobile: shared collapsing navy header on the organization and event pages - #755

Merged
radulescuandrew merged 6 commits into
developfrom
vic2/navy-header
Nov 28, 2026
Merged

radulescuandrew merged 6 commits into
developfrom
vic2/navy-header

Conversation

@radulescuandrew

Copy link
Copy Markdown
Contributor

A shared collapsing navy header for the detail screens, used by the organization page and the event page.

CollapsingHeader (src/components/ui/CollapsingHeader.tsx)

  • Pinned at the top: the back button, an optional tile (logo) left of the title or a card right of it (event date), the title and a subtitle under it, optional chips under the row.
  • On scroll the large title (up to 28, sized so no word breaks) cross-fades into a 17pt one-line title with an ellipsis; the tile shrinks, the chips fade out and the header's height follows, so the content stays right under it. The title stays right of the back button in every state.
  • Reduce Motion: no movement, the two states swap with a short fade.

Organization page

  • The 160pt navy hero that only held the overlapping logo is gone: no empty navy area.
  • Header: back, logo, the name and „N voluntari” (Romanian plural with „de” from 20 on) at rest; back, small logo, the name on one line and the count when scrolled.

Event page

  • Back, the title (up to three lines), the yellow date card on its right, the date under the title, the Public / status chips on their own row.

The tab screens (Acasă, Evenimente, Ore, Documente, Profil) already collapse their large title into the compact bar; they are unchanged.

Tests: the organization header test is updated; new test for the volunteer count plural. jest 589/589, tsc, eslint.

Tested on Samsung Galaxy S24.

Andrew Radulescu added 2 commits November 28, 2026 12:50
…empty hero

CollapsingHeader: the back button, a tile (logo) and the title to its right with a subtitle under
it, pinned at the top. On scroll the large title (up to 28, two lines) cross-fades into a 17pt
one-line title with an ellipsis, the tile shrinks and the header's height follows, so the content
stays right under it. Reduce Motion: the two states swap with a short fade.

Organization page: the 160pt navy hero with only the logo is gone. The header shows back, the
logo, the name and „N voluntari” at rest and when scrolled; the content starts right under it.
…of the title

Back, the title (up to three lines, sized so no word breaks) and the yellow date card on its right,
the date under the title, the Public / status chips on their own row. On scroll the header
collapses to back and the title on one line, like the organization page.
@radulescuandrew radulescuandrew self-assigned this Nov 28, 2026
Andrew Radulescu added 4 commits November 28, 2026 13:21
…ame left and tile right

The navy header of the organization and event pages now starts 20 under the
Code for Romania band (new space.top token). The back button sits alone on its
first row and never moves; the title and subtitle are on the left of the next
row with the tile on the right, 18 apart and centred on the title: the
organization logo (60, white tile) and the event's yellow date card. Collapsed,
the 74pt bar keeps the back button in place, the one-line title next to it and
the small logo on the right. Content starts 18 under the navy edge.
… 18 side margins

usePaddingTop now uses space.top (20) instead of 16, which moves the header of
every pushed page and modal (Date personale, Notificări, Join, CreateUser...)
off the band. PushedHeader (Anunțuri, document viewer) gets the same 20 instead
of 10. The page title is 24pt like the other headers, and the fields of Date
personale and the rows of Notificări align on the 18 gutter instead of 20.
Acasă, Evenimente, Ore, Organizații, Documente and Profil each started at a
different height under the band (6 to 18). They all start at space.top (20)
now, and a large title is followed by 16 (new space.titleAfter) before the
content. Documente: the title sits 14 under the back button when opened from a
volunteer page. Organizații: 14 between the search field and the list.
Bottom sheets cover the whole window, band included, so their tallest height
now stops 20 under the band (useBandBottom) instead of sliding under it on
iOS. The forms sheet (add hours) opens at that height, and the button at the
bottom keeps 18 above the navigation bar. Login and Landing start 20 under the
band and use the 18 side margin like every other screen (they had 20 and 24).
The email sheet's hint is the field's helper, right under the field. The test
for the picker's maximum height follows the new 20.
@radulescuandrew
radulescuandrew merged commit b050e7a into develop Nov 28, 2026
5 checks passed
@radulescuandrew
radulescuandrew deleted the vic2/navy-header branch November 28, 2026 13:31
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