Remove remaining references to UI Patterns

Created on 9 December 2024, 17 days ago

To remove or rename

User facing "UI Patterns" literals

components/devel/devel.component.yml:group: UI Patterns devel
sdc_devel.links.menu.yml:  description: Components definitions and templates validation, provided by UI Patterns.

Developer facing "UI Patterns" literals

src/Form/OverviewForm.php: * Provides a UI Patterns Devel form.
src/Plugin/TwigValidatorRule/TwigValidatorRuleFunction.php:      'pattern_preview' => 'Legacy UI Patterns 1, not expected in real usage components.',
src/Controller/ComponentValidatorOverview.php: * Returns responses for UI Patterns Devel routes.
tests/modules/sdc_devel_module_test/src/Template/TwigExtension.php:    return ['#markup' => 'Mocked function by UI Patterns Devel.'];

"ui*patterns" machine names

src/Drush/Commands/UiPatternsDevelCommands.php:  #[CLI\Command(name: 'ui-patterns:validate', aliases: ['upv'])]
src/Drush/Commands/UiPatternsDevelCommands.php:  #[CLI\Usage(name: 'ui-patterns:validate my_project', description: 'Validate components for this project.')]
src/Drush/Commands/UiPatternsDevelCommands.php:  #[CLI\Usage(name: 'ui-patterns:validate my_project component:id', description: 'Validate a specific component for this project.')]

To keep?

Soft dependency

src/Controller/ComponentValidatorOverview.php:    if (!$this->moduleHandler()->moduleExists('ui_patterns_library')) {

Components for test

Many references in tests/themes/sdc_devel_theme_test/components/

Or do we add ui_patterns as a sdc_devel_theme_test dependency?

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024