magento / magento2-phpstorm-plugin

PHPStorm Plugin for Magento 2
Open Software License 3.0
433 stars 101 forks source link

Automatic Generation of Magento Store Configurations #1945

Open JonasWijne opened 4 months ago

JonasWijne commented 4 months ago

Is your feature request related to a problem? Please describe.

The problem is the manual and time-consuming process required to add configurations in Magento's system.xml for new modules or features, which is prone to errors and inefficient. This manual process involves defining tabs, sections, groups, and fields for a wide array of configuration types, hindering productivity and increasing the potential for mistakes.

Describe the solution you'd like (*)

I propose an enhancement to the Magento plugin that introduces generator for a broader range of store configuration options. This solution would enable developers to define configurations in the system.xml file more efficiently and generate corresponding classes automatically, such as ConfigProvider classes or helpers. This feature should be designed to accommodate the full spectrum of configuration types (e.g., text fields, select options, multiselects, etc.), adhering to the established hierarchy of tabs, sections, groups, and fields within the Magento Admin configuration UI.

Describe alternatives you've considered

While continuing with the manual process is an alternative, it remains inefficient and error-prone. An automated approach to generating all types of configurations would significantly enhance productivity and reduce errors.

Additional context

The introduction of this feature would mark a significant improvement in the Magento development process by streamlining the configuration management for new features and modules. It would allow developers to focus more on the innovation and development of features rather than being bogged down by the repetitive and meticulous process of configuration setup.

m2-assistant[bot] commented 4 months ago

Hi @JonasWijne. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.