Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Sep 2022 at 12:55 UTC
Updated:
27 Dec 2022 at 10:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
g4mbiniComment #6
g4mbiniComment #7
g4mbiniComment #8
grimreaperComment #11
grimreaperI have closed #3311342: Sort patterns library alphabetically by label on /patterns page in favor of this issue.
Comment #13
grimreaperBefore:
After:
I used ui_suite_bootstrap + ui_patterns_library_module_test + duplicate a button pattern into zbutton in the module.
As you can see now the patterns are sorted independently of the provider. If multiple patterns have the same label, sort by plugin ID.
I have added an automated test.
Thanks for the review.
Waiting until next monthly meeting to merge.
Comment #14
grimreaperFixing tests.
Comment #15
grimreaperThis time it is ready for the review.
Comment #16
duaelfrI added two minor comments about changes that are out of the scope of this issue (I ran the tests with and without these and they pass every time).
Except for these nitpicks, this is RTBC for me. Thanks for the work here!
On a side note: I'd have written the test as a Unit Test but that's fine with a Kernel one too (only a bit slower).
Comment #17
grimreaperHi,
Thanks for the review.
I have replied to the comments.
If you want to convert the test as a Unit one, feel free to do it ;)
Comment #19
grimreaperDiscussed during UI Suite monthly meeting.
Merged.
Thanks everyone!