Skip to content

Take the admin theme switch out of the store panel - #775

Merged
KrzysztofPajak merged 1 commit into
developfrom
feature/store-remove-admin-theme-option
Aug 10, 2026
Merged

Take the admin theme switch out of the store panel#775
KrzysztofPajak merged 1 commit into
developfrom
feature/store-remove-admin-theme-option

Conversation

@KrzysztofPajak

Copy link
Copy Markdown
Member

What

Removes the Allow to select admin theme option from the store panel's general settings (Store information tab) in Grand.Web.Store.

  • Dropped the StoreInformationSettings.AllowToSelectAdminTheme input from Areas/Store/Views/Setting/Partials/GeneralCommon.TabStoreInformationSettings.cshtml.
  • SettingController.GeneralCommon (POST) snapshots the stored value before ToEntity and restores it after, so saving the tab no longer writes false into the store scope from the now-missing form field.

Why

The flag drives StoreThemeContext / AdminThemeContext — panel chrome rather than storefront content — so it is admin-managed. This follows the preserve/restore lock pattern already used for the media file-manager fields in the same controller. The option stays fully manageable in Grand.Web.Admin.

Testing

  • dotnet build src/Web/Grand.Web.Store/Grand.Web.Store.csproj — succeeded, 0 warnings, 0 errors.

🤖 Generated with Claude Code

The admin theme selection drives the panel chrome for everyone, so a
store owner saving general settings should not be able to flip it.
Drop the input from the store information tab and preserve the stored
value across the save.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 10, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@KrzysztofPajak
KrzysztofPajak merged commit 9433e91 into develop Aug 10, 2026
6 checks passed
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.

2 participants