feat(profile): prefill date format presets with live examples #127

Merged
David merged 2 commits from feat/mapps-144-prefilled-date-format into main 2026-06-13 14:53:13 +02:00
Owner

The date/time format picker rendered each preset as its bare token string (e.g. MMM-DD-YYYY HH:mm), forcing the user to decode the grammar in their head to know what it produces. Prefill every option with a live example rendered against the current instant, followed by the token string in parens, so an option reads as Jun-11-2026 08:40 (MMM-DD-YYYY HH:mm). The same label helper drives the main picker, the custom-format fallback option, and the builder's "Start from a preset" select so all three stay consistent. The option value (the persisted format string) is unchanged, so saving behaves exactly as before.

#MAPPS-144

The date/time format picker rendered each preset as its bare token string (e.g. `MMM-DD-YYYY HH:mm`), forcing the user to decode the grammar in their head to know what it produces. Prefill every option with a live example rendered against the current instant, followed by the token string in parens, so an option reads as `Jun-11-2026 08:40 (MMM-DD-YYYY HH:mm)`. The same label helper drives the main picker, the custom-format fallback option, and the builder's "Start from a preset" select so all three stay consistent. The option value (the persisted format string) is unchanged, so saving behaves exactly as before. #MAPPS-144
feat(profile): prefill date format presets with live examples
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 2m3s
612a8bf2b5
The date/time format picker rendered each preset as its bare token string (e.g. `MMM-DD-YYYY HH:mm`), forcing the user to decode the grammar in their head to know what it produces. Prefill every option with a live example rendered against the current instant, followed by the token string in parens, so an option reads as `Jun-11-2026 08:40 (MMM-DD-YYYY HH:mm)`. The same label helper drives the main picker, the custom-format fallback option, and the builder's "Start from a preset" select so all three stay consistent. The option value (the persisted format string) is unchanged, so saving behaves exactly as before.

#MAPPS-144
Merge branch 'main' into feat/mapps-144-prefilled-date-format
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 2m18s
94f3b1cd4d
David merged commit 304c1efcdc into main 2026-06-13 14:53:13 +02:00
David deleted branch feat/mapps-144-prefilled-date-format 2026-06-13 14:53:13 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
psa-systems/mokosh-apps!127
No description provided.