Skip to content

fix: disable inspector in config and update layout reference#175

Merged
dermatz merged 1 commit intomainfrom
fix/inspector-cache-hit
Apr 22, 2026
Merged

fix: disable inspector in config and update layout reference#175
dermatz merged 1 commit intomainfrom
fix/inspector-cache-hit

Conversation

@dermatz
Copy link
Copy Markdown
Member

@dermatz dermatz commented Apr 22, 2026

This pull request updates the configuration and layout for the MageForge Inspector feature to better control its availability. The inspector block is now conditionally displayed based on a configuration setting, and the feature is disabled by default in the development configuration.

Configuration changes:

  • Disabled the MageForge Inspector by default in the development configuration by setting <enabled> to 0 in src/etc/config.xml.

Frontend/layout changes:

  • Updated the mageforge.inspector block in src/view/frontend/layout/default.xml to display only if the configuration dev/mageforge_inspector/enabled is set, replacing the unconditional display and removing the cacheable attribute.

Copilot AI review requested due to automatic review settings April 22, 2026 14:06
Copy link
Copy Markdown
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 makes the MageForge Inspector (toolbar) opt-in by default and conditionally renders the frontend layout block based on a configuration flag.

Changes:

  • Set dev/mageforge_inspector/enabled default value to 0 in module config.
  • Update the frontend mageforge.inspector layout block to render only when dev/mageforge_inspector/enabled is enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/view/frontend/layout/default.xml Adds ifconfig to conditionally include the inspector block (and removes cacheable="false").
src/etc/config.xml Disables the inspector by default via <enabled>0</enabled>.

Comment thread src/view/frontend/layout/default.xml
Co-authored-by: Copilot <copilot@github.com>
@dermatz dermatz force-pushed the fix/inspector-cache-hit branch from 19a0283 to fe9a82b Compare April 22, 2026 14:18
@dermatz dermatz merged commit 99c71a9 into main Apr 22, 2026
13 checks passed
@dermatz dermatz deleted the fix/inspector-cache-hit branch April 22, 2026 17:19
@github-actions github-actions Bot mentioned this pull request Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants