Conversation
Otherwise the user experience can be a bit weird as the user wouldn't find records matching the participatory space by searching with that.
|
@andreslucena This is ready to be reviewed now. The autocomplete is implemented for the participatory space selection. |
|
@ahukkanen nice job! This is what I had in mind when I've made the original issue, awesome! We've reviewed the changes with @carolromero, and found a couple of things to change:
This is what's now in the PR (it seems like it's the default one in my browser) And this is what I expected to see (taken from Meetings form)
|
andreslucena
left a comment
There was a problem hiding this comment.
Code wise I only found a typo here, the rest is great code as usual 😄
decidim-admin/app/packs/src/decidim/admin/participatory_space_search.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
… into feature/admin-log-filters
|
@andreslucena All changes done.
Fixed this issue. It turned out that when using This way we are also losing some other functionality that the Ransack form builder provides but that's not used today in Decidim admin, so I guess that's fine. In case we need more stuff in the future, we can gradually add what we need to the Decidim's own
Added this message with slight modification.
Added margin. It's probably not exactly as you imagined but I did not want to introduce any custom CSS just for this, so I solved it with the Foundation grid system which adds a bit more space than you probably thought with some resolutions. |
…ging * feature/redesign-main-footer: Reorder elements in main links of footer and define links and texts Define a cell for static_pages and topics configured to appear in footer Fix translation call Set fixed links in redesigned_main_legal partial Add FooterMenuPresenter to display menu items in footer Fix budgets seeds on non development apps (#9585) Return 404 when there isn't a valid component in program (#9576) Add missing queue close_meeting_reminder to sidekiq configuration (#9568) Make the HERE Map display in the currently selected language (#9552) Add help text for proposals' 'publish answers immediately' setting (#9549) Fix admin language selector with more than 4 locales (#9519) Fix publish event on official proposals (#9421) Prevent missing ActionLog entries to break the application (#9502) Add boilerplate structure to CHANGELOG (#9501) Add step-by-step instructions of the Crowdin releases process (#9555) Fix translated attributes field type change (#9547) Add `modifyList` option to the autocomplete element (#9548) Admin log filters (#9460) Improve the default gitignore files created by the generators (#9507)
* Implement admin log filters initial * Add system specs for the admin log filters * Also match the participatory space filter against the resource Otherwise the user experience can be a bit weird as the user wouldn't find records matching the participatory space by searching with that. * Fix the ransack predicates unused i18n keys * Add participatory space information to the API * Show all participatory spaces visible for a user through the API * Add specs covering the new API functionality regarding spaces * Implement participatory space search autocomplete for admin logs * Fix the admin logs system spec after changing the space filter * Fix typo in code comment Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Make the admin log filters use the Decidim datetime picker * Fix the admin checks logs system specs * Add specs for the search form builder * Add spacing for the logs search button * Implement different message when search returns an empty list * Add specs for the empty logs list situation in both cases Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>




🎩 What? Why?
Implements filters to the admin logs view as described at #9180.
WIP This is still partly work in progress as in the sprint review meeting we discussed today that the participatory space dropdown may be problematic in instances that have many spaces, such as Barcelona. We decided that we are going to implement an autocomplete field for the participatory space selection to tackle this problem.
📌 Related Issues
Testing
📋 Checklist
docs/.📷 Screenshots