From cd0468172c53bb722e636e03174dede9d6dc6b27 Mon Sep 17 00:00:00 2001 From: Jay George Date: Mon, 24 Aug 2026 17:36:14 +0100 Subject: [PATCH 1/4] Fix CI failures for Log facade and Statamic\trans imports PHPStan could not resolve root \Log aliases, and the trans-import check required use function Statamic\trans as __ in Entry. --- src/Entries/Entry.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Entries/Entry.php b/src/Entries/Entry.php index 30f6b5a074e..1b6de7a3c70 100644 --- a/src/Entries/Entry.php +++ b/src/Entries/Entry.php @@ -54,7 +54,6 @@ use Statamic\Support\Str; use Statamic\Support\Traits\FluentlyGetsAndSets; use Statamic\View\Cascade; - use function Statamic\trans as __; class Entry implements Arrayable, ArrayAccess, Augmentable, BulkAugmentable, ContainsQueryableValues, Contract, Localization, Protectable, ResolvesValuesContract, Responsable, SearchableContract From 8e3e097c8fbe14524e21bf0c01ed6677a535352d Mon Sep 17 00:00:00 2001 From: Jay George Date: Tue, 25 Aug 2026 12:48:46 +0100 Subject: [PATCH 2/4] Show sync state and origin badges on globals site dropdown Indicate fully synced localizations and Origin/Active/Root like entries, keep the dropdown icon in sync while editing, order sites by sites.yaml, and guard badge props as booleans for shared SiteSelector consumers. --- lang/en/messages.php | 1 + resources/js/components/SiteSelector.vue | 27 ++- .../js/components/globals/PublishForm.vue | 25 +++ .../CP/Globals/GlobalVariablesController.php | 15 +- .../Globals/EditGlobalVariablesTest.php | 179 ++++++++++++++++++ 5 files changed, 241 insertions(+), 6 deletions(-) diff --git a/lang/en/messages.php b/lang/en/messages.php index 5899880f2c1..c1663902873 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -94,6 +94,7 @@ 'field_conditions_instructions' => 'When to show or hide this field.', 'field_desynced_from_origin' => 'Desynced from origin. Click to sync and revert to the origin\'s value.', 'field_synced_with_origin' => 'Synced with origin. Click or edit the field to desync.', + 'localization_fully_synced_with_origin' => 'All fields synced with origin.', 'field_validation_advanced_instructions' => 'Add more advanced validation to this field.', 'field_validation_required_instructions' => 'Make this field required or optional.', 'field_validation_sometimes_instructions' => 'Only validate when this field is visible or submitted.', diff --git a/resources/js/components/SiteSelector.vue b/resources/js/components/SiteSelector.vue index b3107763568..20e3cec30b5 100644 --- a/resources/js/components/SiteSelector.vue +++ b/resources/js/components/SiteSelector.vue @@ -1,6 +1,6 @@