trypost/resources/js/components/automations
Paulo Castellano 1af705f3fd
Localize calendar date pickers to the active UI locale (#234)
* Localize calendar date pickers to the active UI locale.

Pass the Inertia locale into Reka calendars, translate a11y labels, and use dayjs LL/LLL for DatePicker display text.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Localize remaining dayjs date displays across the UI.

Route list/calendar/preview timestamps through localized LL/LLL helpers so formats follow the active UI locale instead of English or Portuguese-locked patterns.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Use scheduled-or-now timestamps in platform previews.

Drive preview labels from the post schedule when set, localize Discord without dayjs calendar(), and expose a single formatPreviewPostedAt helper.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix preview schedule wiring and Discord/Facebook timestamp labels.

Restore hasPickedTime from any saved scheduled_at, keep time on non-today Discord labels, and use a localized just-now fallback for unschedled Facebook previews.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix API key expiry day shift and tighten calendar range titles.

Format date-only expiry in UTC calendar days, and use compact dayjs titles for calendar day/week headers.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Replace frontend date source greps with Inertia API key assertions.

Drop the Vue/TS file scanner and assert expiry calendar days through ApiKeyController props instead.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Localize calendar week titles with day-first dayjs formats.

Avoid English month-day order in week headers and chart axis labels so locales like pt-BR keep natural day-first dates.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Split preview timestamp formatting into named platform helpers.

Replace the style-switch formatPreviewPostedAt with clear per-platform helpers so call sites read as formatDiscordPreview / formatXPreview / etc.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:02:34 -03:00
..
config Enforce carousel min slides in Generate and expose min_media_count on API/MCP. 2026-07-24 23:51:10 -03:00
nodes Type node enum props with their value unions 2026-06-13 17:15:20 -03:00
AutomationConnectionLine.vue feat(automations): implement automation features and UI enhancements 2026-05-24 09:17:19 -03:00
AutomationDetailLayout.vue Add Workflow/Invocations/Metrics/Settings tabs to automations 2026-06-12 19:19:46 -03:00
AutomationHeader.vue fix(mobile): polish automations, dialogs, workspaces and post views 2026-07-18 10:58:07 -03:00
AutomationMobileBackHeader.vue fix(mobile): polish automations, dialogs, workspaces and post views 2026-07-18 10:58:07 -03:00
AutomationRunsChart.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
AutomationTabsNav.vue refactor(ui): mobile polish and dead-state cleanup from review 2026-07-17 19:15:58 -03:00
BuildPanel.vue Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00
config-validation.ts Validate webhook payload template is JSON before it can run 2026-06-13 16:03:19 -03:00
EditorSidebar.vue Validate webhook payload template is JSON before it can run 2026-06-13 16:03:19 -03:00
schedule-summary.ts Simplify the cron-to-schedule inference 2026-06-13 17:31:02 -03:00
TestRunPanel.vue Back run/node status and node type with TS consts 2026-06-13 17:50:23 -03:00
VariablesPanel.vue Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00