- Issue created by @Eli-T
- First commit to issue fork.
- last update
about 1 year ago Custom Commands Failed - 🇮🇳India deborahblessy
Hi @Eli-T,
I have attached the patch to have the 3 character hex-color. Please verify and add comments.
- 🇬🇧United Kingdom Eli-T Manchester
Hi @deborahblessy,
Thanks for helping with the issue.
There is already an issue fork and merge request in this issue that would conflict with the changes you propose. If you would like to contribute to this issue I would suggest you co-ordinate with @andy-blum in the #Olivero channel in Drupal slack to avoid working at cross purposes.
- last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,427 pass - Status changed to Needs review
about 1 year ago 7:12pm 23 October 2023 - last update
about 1 year ago 30,427 pass - 🇺🇸United States andy-blum Ohio, USA
@deborahblessy
As Eli said, thank you for contributing!
I took a quick look at your patch and wanted point out that while {3,6} does match the 3-character syntax for hex codes, the regex as you've written it will also match to invalid 4- and 5-character strings. Additionally, the HTMLColorInput that we create in color-picker.js will only accept a full 6-character string, so we have to also flesh out any 3-character strings before we try to set that element's value.
Since your patch passes the tests but would cause problems in real situations, we probably have a need for some additional tests. I'll open a followup issue for those.
- Status changed to Needs work
about 1 year ago 7:37pm 24 October 2023 - 🇺🇸United States mherchel Gainesville, FL, US
Found a bug:
if you manually input
0df
into the field, it thinks it works. The JS looks good, etc. But when you navigate to the homescreen the color is all black - last update
about 1 year ago 30,435 pass - last update
about 1 year ago 30,435 pass - Status changed to Needs review
about 1 year ago 8:04pm 24 October 2023 - Status changed to Needs work
about 1 year ago 10:03am 25 October 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
One nit, one question 🤓
- last update
about 1 year ago 30,437 pass - Status changed to RTBC
about 1 year ago 8:54pm 29 October 2023 - 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
I agree with @andy-blum, that we should follow the same regex in the config here as there is in the config.
- last update
about 1 year ago 30,464 pass - last update
about 1 year ago 30,483 pass - last update
about 1 year ago 30,485 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,488 pass 5:19 2:12 Running- last update
about 1 year ago 30,516 pass - last update
about 1 year ago 30,528 pass - 🇺🇸United States xjm
Hiding the patch file that was posted incorrectly. Thanks!
- last update
about 1 year ago 30,551 pass - last update
about 1 year ago 30,560 pass - last update
about 1 year ago 30,602 pass - last update
about 1 year ago 30,605 pass - last update
about 1 year ago 30,606 pass - last update
about 1 year ago 30,668 pass - last update
about 1 year ago 30,675 pass - last update
about 1 year ago 30,299 pass, 79 fail - last update
about 1 year ago 30,688 pass - last update
about 1 year ago 30,688 pass - last update
about 1 year ago 30,688 pass - last update
about 1 year ago 30,696 pass - last update
about 1 year ago 30,698 pass - last update
about 1 year ago 30,712 pass - last update
about 1 year ago 30,724 pass - last update
about 1 year ago 30,764 pass - last update
about 1 year ago 30,766 pass - last update
about 1 year ago 25,922 pass, 1,801 fail - last update
about 1 year ago 25,930 pass, 1,799 fail - last update
about 1 year ago 25,946 pass, 1,819 fail - last update
about 1 year ago 25,914 pass, 1,834 fail - last update
about 1 year ago 25,904 pass, 1,806 fail - last update
about 1 year ago Build Successful - last update
about 1 year ago 25,889 pass, 1,805 fail - last update
about 1 year ago 25,929 pass, 1,813 fail - last update
about 1 year ago 25,995 pass, 1,806 fail - last update
about 1 year ago Build Successful - last update
about 1 year ago 25,970 pass, 1,841 fail - Status changed to Needs work
about 1 year ago 12:43pm 11 January 2024 - 🇬🇧United Kingdom longwave UK
Added a maintainability suggestion to the MR.
- 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
Well, I guess the plan is to use the config validation instead of having it defined in the validation method? So this will end up being the canonical source in the future.
- Status changed to RTBC
about 1 year ago 3:02pm 11 January 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Agreed with @borisson_: the regex will eventually be moved out of PHP/form logic and into
*.schema.yml
.Scratch "eventually": very soon actually: his issue was opened specifically because it blocks 📌 [PP-1] Add validation constraints to olivero.settings Postponed which was doing exactly that!
Once this lands, we can update #3395555 and update it to use
#config_target
(which only became usable after that MR was originally created, see the CR at https://www.drupal.org/node/3373502 → ). - 🇬🇧United Kingdom longwave UK
To me this is borderline for backport; on one hand it's tagged as feature request but on the other you could perhaps consider it a bug. For now committing to 11.x (10.3.x) only, if anyone feels strongly that it should be backported then feel free to reopen.
Committed 441307e and pushed to 11.x. Thanks!
- Status changed to Fixed
about 1 year ago 6:11pm 11 January 2024 -
longwave →
committed 441307e9 on 11.x
Issue #3396018 by andy-blum, Eli-T, Wim Leers, borisson_, mherchel:...
-
longwave →
committed 441307e9 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.