Skip to content

fix(calendar): direct /calendar on a phone hides its header and Close #319

Closed

Description

@antontcymbal

Summary

On a phone, opening the all-classes calendar directly (/calendar, no ?region=) shows the day list with its whole header off-screen: no Month/Week/List switch, no Filters and no Close. The only way out is the browser's Back button. Opened from a country (/calendar?region=gb) the header is in place.

Approach

Something moves the sheet itself on mount: no scroller has scrollTop > 0, yet the "Month" button sits at y = −70px on /calendar against 53px on /calendar?region=gb (390×844, headless Chromium). The likely cause is Schedule-X scrolling today's entries into view on mount, which scrolls the nearest scrollable ancestor — the vaul sheet — rather than the grid (src/views/CalendarView/CalendarView.tsx:238). Contain the scroll on the grid's own scroller (or stop the plugin scrolling), so the sheet's header can never leave the viewport.

Acceptance criteria

  • At 390×844, a direct load of /calendar shows the view switch, Filters and Close inside the viewport.
  • The same holds for /calendar?region=gb and after switching Month/Week/List.

Verification checklist

  • Open /calendar at 390×844 on the Cloudflare preview; the Close button's bounding box is fully inside the viewport.
  • Add a smoke or browser check asserting that bounding box for a direct /calendar load.

Notes

Found in a whole-Atlas UX audit (2026-10-25). Not related to PR #318.

Activity

  1. added theissue type on Oct 25, 2026
  2. moved this from Revising to Proposed in SYDevelopers Technical Roadmapon Oct 25, 2026
  3. Ardnived commented on Oct 25, 2026

    @Ardnived
    Contributor

    @sydevs-bot implement

  4. moved this from Proposed to Approved in SYDevelopers Technical Roadmapon Oct 25, 2026
  5. added
    bot:working
    on Oct 25, 2026
  6. sydevs-bot commented on Oct 25, 2026

    @sydevs-bot
    Contributor

    🤖 no session running

    recent dispatches
    • 19:34Z implement · attempt 1 · session · done
    • 19:34Z implement · attempt 1 · session

    Written by the sydevs dispatcher. Sessions never edit this comment.

  7. sydevs-bot commented on Oct 25, 2026

    @sydevs-bot
    Contributor

    PR #328 already fixes this. It was filed in parallel as #326 and has the same root cause: the vaul panel is overflow: hidden, which is still a scroll container, so Schedule-X's list view scrolled the panel itself when it pulled today's entries into view on mount.

    Verified on #328's branch, Chromium at 390×844 against the live feed:

    main #328
    Month button y = −70 y = 53
    Close button y = −62 y = 61
    panel scrollTop 123 0

    Both criteria hold — the view switch, Filters and Close all fully inside the viewport, on /calendar and on /calendar?region=gb, through Month/Week/List. ?region=gb never reproduced it because GB has no class today, so the selector the library scrolls to matched nothing.

    No PR from this run: a second one would collide with #328 on five files and on the same new spec filename. Two gaps it leaves are raised on #328 instead. One separate finding is filed as #331 — on a phone the Month toggle renders the day list.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  8. added and removed
    bot:working
    on Oct 25, 2026
  9. moved this from Approved to Revising in SYDevelopers Technical Roadmapon Oct 25, 2026
  10. Ardnived commented on Oct 25, 2026

    @Ardnived
    Contributor

    Implemented in #328

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    High

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions