Skip to content

Conversation

@Hanmac
Copy link
Contributor

@Hanmac Hanmac commented Apr 17, 2025

Description (*)

Done by Suggestion of #1216 (comment)

Related Pull Requests

  • see OpenMage/magento-lts#<issue_number>

Fixed Issues (if relevant)

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@Hanmac Hanmac added Component: Adminhtml Relates to Mage_Adminhtml XML Layout labels Apr 17, 2025
@github-actions github-actions bot added Component: PayPal Relates to Mage_Paypal Component: Core Relates to Mage_Core Component: Catalog Relates to Mage_Catalog Template : admin Relates to admin template Component: Cms Relates to Mage_Cms Component: Reports Relates to Mage_Reports Component: AdminNotification Relates to Mage_AdminNotification Component: Sales Relates to Mage_Sales Component: Usa Relates to Mage_Usa Component: Customer Relates to Mage_Customer Component: Eav Relates to Mage_Eav Component: Page Relates to Mage_Page Component: Api PageRelates to Mage_Api Component: Captcha Relates to Mage_Captcha Component: Tag Relates to Mage_Tag Component: CurrencySymbol Relates to Mage_CurrencySymbol Component: Admin Relates to Mage_Admin Component: Widget Relates to Mage_Widget Component: Weee Relates to Mage_Weee Component: Tax Relates to Mage_Tax Component: Review Relates to Mage_Review Component: Rating Relates to Mage_Rating Component: Payment Relates to Mage_Payment Component: Oauth Relates to Mage_Oauth Component: Newsletter Relates to Mage_Newsletter Component: Index Relates to Mage_Index Component: Giftmessage Relates to Mage_Giftmessage and removed XML Layout labels Apr 17, 2025
@Hanmac
Copy link
Contributor Author

Hanmac commented Jan 16, 2026

Just needs an rebase
Will do next week

@Hanmac Hanmac force-pushed the designLayoutUpdates branch from b3d605b to d9302bf Compare January 19, 2026 12:25
@addison74 addison74 requested a review from Copilot January 19, 2026 13:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves admin theme handling by restructuring the theme configuration to use a package-based approach instead of theme-based switching. The changes move the admin theme from "default/default" and "default/openmage" to a package-level selection between "default" and "openmage" packages, both using the "default" theme.

Changes:

  • Restructures admin theme configuration to use package selection instead of theme selection
  • Adds fallback logic to handle non-existent themes and parent theme layout updates
  • Updates file paths in configuration files to reflect the new "base/default" structure

Reviewed changes

Copilot reviewed 7 out of 776 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
app/design/adminhtml/base/default/etc/theme.xml Adds new theme configuration file for base/default admin theme
app/code/core/Mage/Core/Model/Layout/Update.php Implements layout update fallback for parent themes
app/code/core/Mage/Core/Model/Design/Fallback.php Adds theme existence check and fallback to default theme
app/code/core/Mage/Adminhtml/etc/config.xml Moves openmage configuration from theme to package level
app/code/core/Mage/Adminhtml/Controller/Action.php Updates theme selection logic to use package instead of theme
.phpstan.dist.neon Updates file paths from default/default to base/default
.phpstan.dist.baseline.neon Updates file paths from default/default to base/default

Hanmac and others added 2 commits January 19, 2026 14:52
Signed-off-by: Frank Rochlitzer <f.rochlitzer@b3-it.de>
theroch
theroch previously approved these changes Jan 20, 2026
Add @param Mage_Core_Model_Config_Element $updates and @return Mage_Core_Model_Config_Element to improve API documentation.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Explanation for array manipulation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
theroch
theroch previously approved these changes Jan 20, 2026
theroch
theroch previously approved these changes Jan 20, 2026
Removed unnecessary docblock comments from the method.
@addison74 addison74 requested a review from Copilot January 20, 2026 09:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 778 changed files in this pull request and generated 5 comments.

Hanmac and others added 2 commits January 20, 2026 11:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
13.6% Duplication on New Code (required ≤ 3%)
D Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@addison74 addison74 requested a review from Copilot January 20, 2026 17:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 778 changed files in this pull request and generated 2 comments.

@addison74 addison74 merged commit 892e482 into OpenMage:main Jan 26, 2026
21 of 22 checks passed
Copilot AI pushed a commit that referenced this pull request Jan 26, 2026
* Fix #1216 and the fallback theme

* ~ copilot hints

* Clean cache on update

Signed-off-by: Frank Rochlitzer <f.rochlitzer@b3-it.de>

* Update app/code/core/Mage/Core/Model/Layout/Update.php

Add @param Mage_Core_Model_Config_Element $updates and @return Mage_Core_Model_Config_Element to improve API documentation.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update app/code/core/Mage/Core/Model/Design/Fallback.php

Explanation for array manipulation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* ~ cs-fixer

* Rector fix - Clean up docblock in addFallbackThemesLayoutUpdates

Removed unnecessary docblock comments from the method.

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* ~rector

---------

Signed-off-by: Frank Rochlitzer <f.rochlitzer@b3-it.de>
Co-authored-by: Frank Rochlitzer <f.rochlitzer@b3-it.de>
Co-authored-by: Frank Rochlitzer <theroch@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Addison <8360474+addison74@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Component: Admin Relates to Mage_Admin Component: Adminhtml Relates to Mage_Adminhtml Component: AdminNotification Relates to Mage_AdminNotification Component: Api PageRelates to Mage_Api Component: Api2 Relates to Mage_Api2 Component: Authorizenet Relates to Mage_Authorizenet Component: Bundle Relates to Mage_Bundle Component: Captcha Relates to Mage_Captcha Component: Catalog Relates to Mage_Catalog Component: CatalogSearch Relates to Mage_CatalogSearch Component: Centinel Relates to Mage_Centinel Component: Cms Relates to Mage_Cms Component: Core Relates to Mage_Core Component: CurrencySymbol Relates to Mage_CurrencySymbol Component: Customer Relates to Mage_Customer Component: Dataflow Relates to Mage_Dataflow Component: Directory Relates to Mage_Directory Component: Downloadable Relates to Mage_Downloadable Component: Eav Relates to Mage_Eav Component: Giftmessage Relates to Mage_Giftmessage Component: ImportExport Relates to Mage_ImportExport Component: Index Relates to Mage_Index Component: Media Relates to Mage_Media Component: Newsletter Relates to Mage_Newsletter Component: Oauth Relates to Mage_Oauth Component: Page Relates to Mage_Page Component: Paygate Relates to Mage_Paygate Component: Payment Relates to Mage_Payment Component: PayPal Relates to Mage_Paypal Component: Rating Relates to Mage_Rating Component: Reports Relates to Mage_Reports Component: Review Relates to Mage_Review Component: Rss Relates to Mage_Rss Component: Sales Relates to Mage_Sales Component: Tag Relates to Mage_Tag Component: Tax Relates to Mage_Tax Component: Usa Relates to Mage_Usa Component: Weee Relates to Mage_Weee Component: Widget Relates to Mage_Widget phpstan Template : admin Relates to admin template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin theme changed by default config value

4 participants