Skip to content

FSHSP-271 fix(datepicker): show the time row in timeOnly mode - #197

Merged
LBU4SH merged 1 commit into
mainfrom
fix/fshsp-271-datepicker-time-only
Nov 25, 2026
Merged

LBU4SH merged 1 commit into
mainfrom
fix/fshsp-271-datepicker-time-only

Conversation

@LBU4SH

@LBU4SH LBU4SH commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Jira: FSHSP-271.

Reported by a project on 0.12.1, still present in 0.16.0: timeOnly without showTime opens an empty panel. The day grid is hidden by timeOnly, but the time steppers were gated on showTime alone.

What changes

  • ui-datepicker.html: the time row is gated on hasTimeComponent() (showTime || timeOnly) instead of showTime(). The computed already existed (ISO date-time serialization); it goes from private to protected for the template.
  • TimeOnly story: drops showTime: true — it was masking the bug, and the story now shows timeOnly the way it is documented.
  • Spec: two tests on a timeOnly-only host — the panel opens on the time row (no day cells), and stepping the hours commits 09:15 → 10:15.
  • CHANGELOG: Fixed entry under [Unreleased].

For the reviewer

  • Nothing else needed changing: applyTime() already handles timeOnly (it bases the value on today, not on the view date).
  • Workaround for projects on an older version: pass showTime together with timeOnly.
  • The two new tests fail with the template line reverted. ng test ui-kit 351/351, ESLint and docs:config:check green. Checked in a static Storybook build (Playwright): time row shown, field updated on step, Escape closes the panel.
  • The split-button chevron reported along with this bug is not a bug (the caret is a static affordance in the whole kit) — no change here.

🤖 Generated with Claude Code

The time steppers were gated on showTime alone, so timeOnly without
showTime opened an empty panel (the day grid is already hidden there).
Gate them on hasTimeComponent (showTime || timeOnly) instead.

The TimeOnly story also set showTime, which hid the bug: drop it.
@LBU4SH
LBU4SH merged commit fa81d0f into main Nov 25, 2026
4 checks passed
@LBU4SH
LBU4SH deleted the fix/fshsp-271-datepicker-time-only branch November 25, 2026 10:36
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