Skip to content

Commit cbf983c

Browse files
roeldebclaude
andauthored
feat: reset/override state and instant refresh from upstream (#1)
* @ feat: port reset/override state and instant refresh from upstream Bring the global and channel settings admin pages up to the latest TrueLime.XbyK.ProjectSettings behavior (v1.7.0), scoped to project settings only (custom form settings are out of scope for this fork). Global settings page: - Add "Reset to developer defaults" page action (deletes the global record) with a destructive confirmation dialog - Disable the form with a "Create override" callout whenever no global record exists, previewing the developer defaults - List channels that have their own settings when no global record exists, noting the new global settings will not apply to them Channel settings page: - Add reset page action labeled "Reset to global settings" or "Reset to developer defaults" depending on whether global settings exist, with a destructive confirmation dialog - Disable the form with a "Create override" callout when no channel record exists; seed the override from the global settings and preview the effective (global) values so values do not jump - Base all form state and callouts on record existence instead of serialized-value comparison Both pages reload via NavigateTo(refetch) after create/reset so the form and callouts update immediately without a manual browser refresh. Docs: update the README and Usage Guide admin UI sections accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> @ * Refactor channel settings and normalize line endings --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b706974 commit cbf983c

295 files changed

Lines changed: 525 additions & 390 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Severity levels of analyzers https://docs.microsoft.com/en-us/visualstudio/code-quality/roslyn-analyzers-overview?view=vs-2019#severity-levels-of-analyzers
1+
# Severity levels of analyzers https://docs.microsoft.com/en-us/visualstudio/code-quality/roslyn-analyzers-overview?view=vs-2019#severity-levels-of-analyzers
22

33
root = true
44

.gitattributes

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Auto detect text files and perform LF normalization
22

3-
# Windows developers can enable autocrlf to checkout in crlf and commit in lf
4-
# git config --global core.autocrlf true
3+
# Text files are checked out with LF on every OS, including Windows.
54

6-
* text=auto
5+
* text=auto eol=lf
6+
7+
.gitattributes text
8+
.editorconfig text
79

810
*.cs text diff=csharp
911
*.cshtml text diff=html
@@ -16,6 +18,7 @@
1618

1719
*.xproj text
1820
*.props text
21+
*.targets text
1922
*.filters text
2023
*.vcxitems text
2124

README.md

Lines changed: 8 additions & 0 deletions

docs/Usage-Guide.md

Lines changed: 23 additions & 7 deletions

examples/DancingGoat/AdminComponents/Apps/SampleDataGenerator/SampleDataGeneratorApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Threading.Tasks;
33

44
using CMS.Activities;

examples/DancingGoat/AdminComponents/UIPages/ProductLinkedOnceRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Threading.Tasks;

examples/DancingGoat/AdminComponents/UIPages/ProductLinkedOnceRuleProperties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CMS.Core;
1+
using CMS.Core;
22

33
using Kentico.Xperience.Admin.Base.Forms;
44

examples/DancingGoat/AdminComponents/UIPages/UniqueProductSkuValidationRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Threading.Tasks;
33

44
using CMS.ContentEngine;

examples/DancingGoat/Commerce/Checkout/DancingGoatCheckoutController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Threading;

examples/DancingGoat/Commerce/EventHandlers/ProductSkuValidationEventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Threading.Tasks;
33

44
using CMS.ContentEngine;

0 commit comments

Comments
 (0)