Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Category: Refactoring Only
Overview
My hope is to support specifying a custom widget type after mounting it in the components directory with docker. In order to support that the component needs to be specified in the config without mapping it to an internal known list of components. In this future you could do this:
These changes have the benefit of avoiding a lot of repetition and steps required to add new modules.
However the downside is that I needed to map the old type names to the actual component names. To avoid that mapping all of the components would need to be renamed from capital case to dash-lower-case. The alternative is to add churn and breaking changes by having users rename dash-lower-case to the actual component name. Its possible maybe some regex can remove and replace the dash with uppercase to have something that works both ways. There are a few exceptions however with iframe mapping to IframeWidget.
There is an eslint bug that I am working around by disabling the rule as well which I will detail below. I believe upping dependencies by fix it and remove the need for that.
Issue Number N/A
New Vars N/A
Screenshot N/A
Code Quality Checklist