- Issue created by @penyaskito
- Merge request !9Issue #3404083: Allow to remove field items with a button → (Merged) created by penyaskito
- last update
about 1 year ago 4 pass - Status changed to Needs review
about 1 year ago 7:35pm 24 November 2023 - Status changed to Needs work
about 1 year ago 8:01pm 24 November 2023 - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Found an issue, the button is not showing when we are already at the limit of items (e.g. cardinality 3 and I have 3 items).
- last update
about 1 year ago 4 pass - Status changed to Needs review
about 1 year ago 8:18pm 24 November 2023 - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
We just needed to process everything no matter if all items were not empty.
- last update
about 1 year ago 4 pass - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Fixed another bug when we remove the last item, we want to show the button and the number of pending items again.
- Status changed to Needs work
about 1 year ago 2:55pm 27 November 2023 - 🇪🇸Spain marcoscano Barcelona, Spain
First of all, I am 👍 to include this, thanks! (I too have been asked by editors "how do I empty an existing value?" :) )
I left a minor comment in the MR, doesn't look like we need too many changes IMO.
However, in testing this on Tugboat, I see a couple things we probably want to address:
1) In testing with the seven admin theme, the button displays uncentered:
would it be worth adding a little bit of CSS to try to make this look good(-ish) in all admin themes?
2) (the error appeared when revealing a bunch of values and then removing some of them), but now I can't reproduce it... 🤯 I need to go for now but I'll come back and try to reproduce it again.
Maybe we can add a few assertions to https://git.drupalcode.org/project/sam/-/blob/1.0.x/tests/src/Functional... to add test coverage for the new feature? That would be great.
Thanks!
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Thanks for the feedback!
Definitely needs tests. I've been seeing weird looping issues in our playwright tests, but that might be an issue on the tests or playwright itself.
- last update
about 1 year ago 4 pass - last update
about 1 year ago 4 pass - last update
about 1 year ago 4 pass - last update
about 1 year ago 4 pass - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
I think this is ready now. Needs tests though.
- last update
about 1 year ago 4 pass - last update
12 months ago 4 pass - last update
12 months ago 5 pass - Status changed to Needs review
12 months ago 1:51am 8 February 2024 - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Added tests.
1) In testing with the seven admin theme, the button displays uncentered:
Drupal 9 is end of life while this issue was fixed, so not sure if still a requirement? Being fair I only tested with Claro.
- Status changed to Needs work
10 months ago 8:51am 3 April 2024 - 🇪🇸Spain marcoscano Barcelona, Spain
Thanks for working on this! (and apologies for the delay in reviewing it)
I think this is very close. To me the only remaining issues are:
1- Add support for CKEditor5 textareas
2- Adjust the theming in Seven. (I know D10 no longer includes it, but there are a lot of D10 sites still using it in the contrib namespace, it would be uncool to break those sites... :) )Thanks!
- First commit to issue fork.
- last update
9 months ago 5 pass - 🇬🇧United Kingdom minirobot London
1- Add support for CKEditor5 textareas
2- Adjust the theming in Seven.I added ckeditor 5 support based on @penyaskito's notes.
It looks like the remove button alignment was fixed by @penyaskito already. - Status changed to Needs review
9 months ago 3:11pm 12 April 2024 - last update
9 months ago 5 pass - last update
9 months ago 5 pass - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
I even forgot that I added tests, thought those were still needed!
I've no strong feelings about ckeditor explicit coverage.
Will defer on Marcos if those are requested. If he doesn't require them this LGTM. - last update
9 months ago 5 pass -
marcoscano →
committed 16c0bdb9 on 1.0.x authored by
penyaskito →
Issue #3404083 by penyaskito, minirobot, marcoscano: Allow to remove...
-
marcoscano →
committed 16c0bdb9 on 1.0.x authored by
penyaskito →
- Status changed to Fixed
9 months ago 8:57am 17 April 2024 - 🇪🇸Spain marcoscano Barcelona, Spain
Great work @penyaskito and @minirobot! I don't believe we need extra tests for now.
Merged and tagged 1.2.0 → with it.
Thanks! 🎉 Automatically closed - issue fixed for 2 weeks with no activity.