-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [#2686] Add dropdown with checkboxes #1384
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1384 +/- ##
========================================
Coverage 95.24% 95.24%
========================================
Files 1007 1007
Lines 37347 37348 +1
========================================
+ Hits 35572 35573 +1
Misses 1775 1775 ☔ View full report in Codecov by Sentry. |
84ff796
to
bf4c974
Compare
@pi-sigma as you can see this simple version of the dropdown has a lot of moving parts. It is not pixel-perfect yet but we need this to be functional first so it can be part of the release, etc. If this simple version would be approved, then I can start tackling the 3 leftover issues that are separate from this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is currently no way to reset the filter, you have to select all statuses to see all the cases. This is not a big thing if the statuses are few, but gets annoying when the number increases. Is this addressed in one of the outstanding tasks?
src/open_inwoner/components/templates/components/FilterBar/FilterBar.html
Outdated
Show resolved
Hide resolved
src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html
Outdated
Show resolved
Hide resolved
src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html
Outdated
Show resolved
Hide resolved
console.log('-> SiteImprove _sz object exists: ', _sz) | ||
} else { | ||
console.log('-> SiteImprove _sz is not defined yet.') | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be commented out or deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we have these logs in both Develop and Production due to the ongoing Siteimprove issues, so until https://taiga.maykinmedia.nl/project/open-inwoner/issue/2622 is solved - we still need these logs because sometimes we tend to do 'hacky' things on Production🙈
{# Submit button appears on select #} | ||
<div class="form__actions form__actions--fullwidth" id="filterFormActions"> | ||
<button class="button button--primary hide" type="submit" value="" title="{% trans 'Toon resultaten' %}" aria-label="{% trans 'Toon resultaten' %}" id="filterCases"> | ||
{% trans 'Toon' %}<span class="filter-bar__frequency-sum" id="frequencySum">0</span>{% trans 'resultaten' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plural is currently hard coded. It would be nice to make this dynamic ("1 resultat" vs. "2 resultaten"), though it's not a big thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, agreed - but I'd like to pick that up in #1389 because that one has a bunch of innerHTML replacements that's variable in the same way.
cc73cc0
to
6bcda1b
Compare
6bcda1b
to
0ea76e7
Compare
self.assertTrue(filter_form.is_valid) | ||
# check filter form | ||
filter_form = response.context["filter_form"] | ||
self.assertTrue(filter_form.is_valid()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, that was a mistake on my part
issue: https://taiga.maykinmedia.nl/project/open-inwoner/task/2686
Making it functional first, so it looks better already like this: https://www.figma.com/design/iKGhWhstaLIlFSaND2q7cE/OIP---Designs-(new)?node-id=3830-16059&t=DRxUxA55fDr62tdz-1
Full accessibility and 'selected' and mobile-version coming up in split up issues.
Test: http://localhost:8000/mijn-aanvragen/