Skip to content

feat(web): add Date/Time dock tool with locale-aware presets and refresh - #37

Open
phanex wants to merge 1 commit into
tomLadder:mainfrom
phanex:feat/date-time-presets
Open

feat(web): add Date/Time dock tool with locale-aware presets and refresh#37
phanex wants to merge 1 commit into
tomLadder:mainfrom
phanex:feat/date-time-presets

Conversation

@phanex

@phanex phanex commented Aug 30, 2026

Copy link
Copy Markdown

Summary

Adds a dedicated Date/Time element tool to the dock bar and inspector with zero hardcoded translations.

Key Changes

  • Dock Tool: Added CalendarClock icon tool in Dock bar right next to Text tool (shortcut D).
  • Template-Based Evaluation: Stores format templates (e.g. DD.MM.YYYY, MMMM YYYY) while rendering evaluated live date/time string on canvas.
  • Offset Syntax: Supports +N/-N offset tokens (e.g. DD+7, MM+3, YYYY+1) to calculate future/expiry dates (e.g., today + 7 days) across all tokens.
  • Locale Support: Accepts any BCP-47 language tag (en, uk, de, fr, etc.) with try...catch fallback to system locale during typing.
  • Inspector UI: Added Preset selector, Locale input with reset × button, and Refresh Dates button to re-evaluate all tokens on demand.

@phanex
phanex force-pushed the feat/date-time-presets branch from 9796001 to 5848423 Compare August 30, 2026 20:03
@phanex
phanex force-pushed the feat/date-time-presets branch from 5848423 to 9697398 Compare August 30, 2026 20:03
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