Closed areski closed 2 years ago
Thanks for this. At an initial glance this looks ok. 👍
Could we add some tests to show those templates no longer cause a crash?
Merging #96 (3eb488b) into main (2ff9135) will increase coverage by
5.73%
. The diff coverage is90.00%
.
@@ Coverage Diff @@
## main #96 +/- ##
==========================================
+ Coverage 71.11% 76.85% +5.73%
==========================================
Files 37 37
Lines 637 635 -2
Branches 28 28
==========================================
+ Hits 453 488 +35
+ Misses 174 138 -36
+ Partials 10 9 -1
Impacted Files | Coverage Δ | |
---|---|---|
crispy_tailwind/templatetags/tailwind_field.py | 50.45% <0.00%> (+1.83%) |
:arrow_up: |
crispy_tailwind/templatetags/tailwind_filters.py | 17.30% <ø> (ø) |
|
.../templates/tailwind/layout/field_with_buttons.html | 100.00% <100.00%> (+100.00%) |
:arrow_up: |
...ilwind/templates/tailwind/layout/inline_field.html | 94.73% <100.00%> (+94.73%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2ff9135...3eb488b. Read the comment docs.
Hi @areski --thanks for this. I've added some tests and docs for these two fields. For the field with buttons the template also needed a bit of work to make it work for tailwind.
Do you want to take a look at this?
Hi @smithdc1 Thanks for jumping on this, sorry I had a busy week and didn't find the time to follow up. really like the tests and the extra documentation. It looks good to me!
@smithdc1 I hate to be that guy that put pressure when you have done so much already. Is there anything I can do to help? There is also some other valid PRs that might need some love.
Can this PR be merged? I've run into the same issues here and this seems to be a sensible fix.
Thanks for the PR and thanks for the review @grundleborg
Fix issue https://github.com/django-crispy-forms/crispy-tailwind/issues/95