Closed blasferna closed 4 months ago
@GitRon and @smithdc1, could you please review this pull request when you have a moment and let me know if there's anything missing to move forward with it? Thank you.
Hi @blasferna! Sorry, didnt get an email about it from GitHub! I'll have a look as soon as I find the time! Thx for your effort!
Thx @blasferna, your changes look good!
@carltongibson @smithdc1 Whats the best way here for content review? How do you do this usually?
Best regards
Ronny
Hi @GitRon
My currently preferred approach is to use the outputs from the results folder. With the tailwind playground it's fairly easy to paste the new output files there to see how it looks.
It seems that there's not currently enough test coverage to see all the changes included in this PR. I can't see any changes in the tests for multiple
, selected
or required
, for example? 🤔
Hi @smithdc1!
Where would I find this results folder?
And the issue about missing test cases were feedback for @blasferna, am I correct?
Furthermore, I'd suggest we document how to do Content Review (with the playground). Should help future us.
Hi @GitRon and @smithdc1,
Just wanted to let you know that I've addressed the feedback regarding test coverage for the select attributes in the PR. I've added tests for multiple, selected, and required attributes.
Let me know if there's anything else I can do to move this forward.
Best regards, Blas
@blasferna Amazing! I just saw the "results" directory.
The output on the tailwind playground looks good:
@smithdc1 @carltongibson @justinmayer Do you folk want to have a look as well? Otherwise, I'd merge it in a couple of days.
And @blasferna, thx for all your effort! A very comprehensive description and clean code 👌
@smithdc1 @carltongibson @justinmayer Do you folk want to have a look as well? Otherwise, I'd merge it in a couple of days.
No news is good news. Let's get it merged 💪
@blasferna This is incredible - thank you! <3
This pull request addresses several issues related to the rendering of select element attributes. The identified problems are enumerated below and were fixed in this pull request:
Missing
id
Attribute The library fails to render theid
attribute of the select element.Fixed #125
Select option is inheriting attributes from the select The options are rendering the attributes from the select when they shouldn't according to the widget definition.
Fixed #132
Missing
multiple
andselected
Attribute The select element does not render themultiple
andselected
attribute.Fixed #119
Missing
required
AttributeThe
required
attribute of the widget is not being rendered.Custom Attributes for Options
Custom select widgets defining attributes in the
create_option
method or disabling some options do not render properly.Rendering of Grouped Select Options
Grouped options are currently rendered incorrectly.
Before
After
Django Autocomplete Light Attributes
Custom selects that override the
build_attrs
method of theWidget
object are not properly supported, leading to integration issues with other packages.Before
The dal attributes are not rendered and because of that the select is not working properly
After
Fixed #136
Also, this pull requests fixes #98
There is a repository where you can check the select with the fixes applied in this pull request.