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
Improvements for Admin::Budget::Investment filters #2344
Improvements for Admin::Budget::Investment filters #2344
Conversation
4333b79
to
0a80a66
Compare
dca61ea
to
4646270
Compare
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.
Looks good! Otherwise, as these changes concern files related to the frontend I'm missing some screen shots of the result to have more context, could you add them to the PR @aitbw? Thanks a lot! 🤗
@@ -15,6 +15,7 @@ class Admin::BudgetInvestmentsController < Admin::BaseController | |||
def index | |||
respond_to do |format| | |||
format.html | |||
format.js { render layout: false } |
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.
Why is this necessary?
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.
So we can make use of the advanced filters without reloading the entire page and just update what's needed —see GIF above.
4646270
to
3f6a918
Compare
…tments-filters Improvements for Admin::Budget::Investment filters
Where
What
Admin::Budget::Investment
index view when the user wants to filter shown recordsHow
feasible
,selected
,undecided
,unfeasible
andmax_supports_per_heading
filterswithout_valuator
andunder_valuation
tabbed filterstbody
HTML tag ininvestments
partialselection
header oninvestments
partial withselected
Admin::Budget::Investment
filter-related failing specs were adapted to fit the new UImax_supports_per_heading
filter (Taken from Ayuntamiento de Madrid)currently applied filters
message to the userScreenshots
Test
max_supports_per_heading
filter, fixed coverage as necessaryWarnings
These specs were commented for this PR since Improve investment's filters #1624 (as shown on the mockup and thePending
section) are, well, pending. Awaiting further requirements to re-enable the#winners
filter tabThefilters-used
combination description is the only thing missing ATM