Skip to content

fix(template): personal (my) form uses Harmonia date/time pickers, not native inputs#6266

Merged
delchev merged 1 commit into
masterfrom
fix/harmonia-my-form-date-pickers
Jul 11, 2026
Merged

fix(template): personal (my) form uses Harmonia date/time pickers, not native inputs#6266
delchev merged 1 commit into
masterfrom
fix/harmonia-my-form-date-pickers

Conversation

@delchev

@delchev delchev commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Problem

The generated personal (my) form still rendered native date controls:

<input x-h-input type="date" ... />
<input x-h-input type="datetime-local" ... />

even though the main form-view and the Harmonia form-builder already use the Harmonia components. Native pickers are not to be used where a Harmonia component exists.

Fix

Mirror the canonical form-view markup in ui/my/my-form-view.html.template:

  • DATEx-h-date-picker
  • DATETIME-LOCALx-h-datetime-picker
  • TIMEx-h-time-picker (added; previously fell through to a text input)

The model formats are identical to the native inputs (YYYY-MM-DD / ISO-with-T), so the form page's existing toDateInput / toPayload conversions round-trip unchanged — same as the main form-view proves.

Audit result (all Harmonia templates)

After this change, the only remaining native date-family inputs across every Harmonia template are type="month" and type="week" in the main form-view — because Harmonia ships no month or week picker (it has date-picker, datetime-picker, time-picker, calendar, inline-calendar, slot-picker). See the notify note in the PR discussion.

🤖 Generated with Claude Code

…t native inputs

The my-form-view still rendered native <input type="date"> / type="datetime-local",
even though the main form-view (and the Harmonia form-builder) already use the Harmonia
components. Mirror them: DATE -> x-h-date-picker, DATETIME-LOCAL -> x-h-datetime-picker,
TIME -> x-h-time-picker. The model formats are identical (YYYY-MM-DD / ISO-with-T), so the
page's existing toDateInput/toPayload conversions round-trip unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@delchev delchev merged commit 7fa2704 into master Jul 11, 2026
9 checks passed
@delchev delchev deleted the fix/harmonia-my-form-date-pickers branch July 11, 2026 19:47
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