trypost/resources/js/components
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
..
accounts fix(accounts,media): address PR review findings 2026-06-25 19:06:43 -03:00
ai feat(ai): collapsible compact ContentStylePicker for tight panels 2026-06-18 11:50:04 -03:00
analytics fix(analytics): full-width account selector on mobile 2026-07-17 21:16:43 -03:00
api-keys feat: complete i18n audit fix, toast system, UI improvements 2026-03-30 14:06:10 -03:00
assets fix: refresh assets gallery after deleting an upload 2026-07-23 11:38:29 -03:00
auth feat(auth): social-first register screen 2026-06-22 12:31:53 -03:00
automations Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
labels fix(mobile): polish automations, dialogs, workspaces and post views 2026-07-18 10:58:07 -03:00
members feat(automations): implement automation features and UI enhancements 2026-05-24 09:17:19 -03:00
posts Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
settings Allow account owners to delete workspaces (#208) 2026-08-01 13:00:38 -04:00
signatures chore: remove deprecated localization files 2026-05-03 15:23:25 -03:00
ui Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
AlertError.vue feat: improvements on ui 2026-01-21 18:42:37 -03:00
AppContent.vue chore: first commit 2026-01-14 22:13:44 -03:00
AppHeader.vue refactor: localize analytics metrics and overhaul UI components and dashboard layouts 2026-05-06 15:39:10 -03:00
AppShell.vue chore: first commit 2026-01-14 22:13:44 -03:00
AppSidebar.vue Merge remote-tracking branch 'origin/main' into feat/settings-into-user-menu 2026-07-18 14:46:09 -03:00
BrandForm.vue Share a ContentLanguageOption type and close the review's test gaps 2026-07-03 19:28:28 -03:00
Breadcrumbs.vue refactor: unify social analytics, reorganize workspace settings, and implement content validation rules 2026-05-02 12:22:42 -03:00
ChannelConfigurator.vue Surface Pinterest board truncation in the web editors. 2026-07-24 23:02:40 -03:00
CodeEditor.vue Structure brand voice and make generated copy platform-aware 2026-06-12 17:09:39 -03:00
CommentBody.vue fix(ui): mobile fixes from second-pass review 2026-07-17 19:15:58 -03:00
ConfirmDeleteModal.vue refactor: remove unused imports and dead code across frontend components and pages 2026-05-08 20:12:56 -03:00
DatePicker.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
DeleteUser.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
EmptyState.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
FontPicker.vue Make the language and font dropdowns match their trigger width 2026-07-03 19:01:16 -03:00
Heading.vue chore: first commit 2026-01-14 22:13:44 -03:00
HeadingSmall.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
HexColorInput.vue feat: implement workspace management and update localization strings across multiple languages 2026-05-06 16:41:27 -03:00
Icon.vue feat: improvements on ui 2026-01-21 18:42:37 -03:00
ImageCropperDialog.vue Rewrite the image cropper as a movable/resizable selection box 2026-07-04 09:56:31 -03:00
ImagePreviewDialog.vue refactor(ui): mobile polish and dead-state cleanup from review 2026-07-17 19:15:58 -03:00
InputError.vue chore: first commit 2026-01-14 22:13:44 -03:00
JsonViewer.vue Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00
LanguagePicker.vue Share a ContentLanguageOption type and close the review's test gaps 2026-07-03 19:28:28 -03:00
MentionTextarea.vue feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
NavFooter.vue chore: first commit 2026-01-14 22:13:44 -03:00
NavMain.vue Translate the sidebar Beta badge and place it at the row end for RTL 2026-07-03 18:22:19 -03:00
NavSupport.vue style(sidebar): drop the Support section title, use lifebuoy icon for docs 2026-06-22 17:39:45 -03:00
NavUser.vue fix(sidebar): open the workspace menu to the side on desktop with a matching icon 2026-07-18 14:34:15 -03:00
NotificationBell.vue fix(ui): third-pass mobile fixes 2026-07-17 19:41:52 -03:00
PageHeader.vue fix(ui): mobile polish — responsive headings, menu placement, truncation 2026-07-17 18:38:21 -03:00
PhoneMockup.vue fix(posts): scale the preview phone mockup down on mobile for side padding 2026-07-17 19:24:55 -03:00
PhotoUpload.vue Rewrite the image cropper as a movable/resizable selection box 2026-07-04 09:56:31 -03:00
PlaceholderPattern.vue chore: first commit 2026-01-14 22:13:44 -03:00
SearchableSelect.vue feat(discord): implement channel caching and enhance UI for channel selection 2026-06-16 15:53:20 -03:00
SocialAccountsGrid.vue Polish PR: status FormRequest, sanitizer anchor guard, webhook limit, dedupe OAuth popup 2026-06-13 22:48:21 -03:00
TextLink.vue chore: first commit 2026-01-14 22:13:44 -03:00
Toast.vue feat: implement feature gating with persistent usage tracking and a reactive upgrade dialog for plan management. 2026-05-03 16:52:28 -03:00
UserInfo.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
UserMenuContent.vue Merge remote-tracking branch 'origin/main' into feat/settings-into-user-menu 2026-07-18 14:46:09 -03:00
WorkspaceSwitcher.vue refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00