Implementing store owner settings management#695
Conversation
- Add SettingController to Grand.Web.Store with GeneralCommon, Catalog, Customer, Sales, Media (no file manager), Content actions - Create views and partials for all settings pages in Store area - Media settings preserve file manager fields (AllowedFileTypes, FileManagerEnabledCommands, FileManagerDisabledUICommands) - Add Settings model namespace to Store _ViewImports.cshtml - Restrict PushNotifications/AdminSearch/SystemSettings SiteMap entries to ManageSystem permission so store managers cannot see them - Add migration 2.5 to update existing installations Agent-Logs-Url: https://github.com/grandnode/grandnode2/sessions/e0160bcc-7e3e-4cd7-9f36-e0a1f176f95b Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
|
@copilot migration to version 2.4 |
Agent-Logs-Url: https://github.com/grandnode/grandnode2/sessions/25e0c368-068f-46b8-9ec9-e6ba9aeee5a4 Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
|
@copilot Merchandise return reasons and Merchandise return actions, need to be per store |
Agent-Logs-Url: https://github.com/grandnode/grandnode2/sessions/1bb61bfc-6900-4ff3-928d-0e52909309b9 Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Done in commit d8a2037. Both Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds a settings management interface for store owners in the Store area, and makes merchandise return reasons and actions per-store.
Changes Made
SettingController.csinGrand.Web.Store/Controllers/with GeneralCommon, Catalog, Customer, Sales, Media, and Content settings actionsGrand.Web.Store/Areas/Store/Views/Setting/_ViewImports.cshtmlto include Settings model namespacesStandardAdminSiteMap.csto restrict Push notifications, Admin search, and System settings to System permissionMigrationUpdateAdminSiteMapinMigrations/2.4/(Priority 1, runs after the DB version upgrade migration)IStoreLinkEntity(LimitedToStores+Stores) toMerchandiseReturnReasonandMerchandiseReturnActiondomain entitiesIMerchandiseReturnService.GetAllMerchandiseReturnReasons/Actions()to accept an optionalstoreIdparameter for store-scoped filteringMerchandiseReturnReasonModel/MerchandiseReturnActionModelto implementIStoreLinkModelLimitedToStoresandStoresGetMerchandiseReturnHandlerto pass the current store ID so customers only see reasons/actions for their storeSettingControllerto filter lists by current store and auto-assign the store when creating new items