Skip to content

Improve proposals selector#5863

Merged
tramuntanal merged 21 commits intodevelopfrom
feat/improve_proposals_selector
Apr 23, 2020
Merged

Improve proposals selector#5863
tramuntanal merged 21 commits intodevelopfrom
feat/improve_proposals_selector

Conversation

@leio10
Copy link
Copy Markdown
Contributor

@leio10 leio10 commented Mar 16, 2020

🎩 What? Why?

This PR improves DataPicker in order to create a ProposalsPicker, that allows searching for proposals and selecting many of them at once. This ProposalsPicker is then used on two components of the admin zone:

  • Meetings component: in the close meeting page
  • Accountability component: in the result edition page

This PR also undoes #4842, which is not necessary anymore, and that fix #5639.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add documentation regarding the feature
  • Add tests

📷 Screenshots (optional)

proposals

leio10 added a commit to codegram/decidim-staging that referenced this pull request Mar 16, 2020
leio10 added a commit to codegram/decidim-staging that referenced this pull request Mar 16, 2020
@leio10 leio10 force-pushed the feat/improve_proposals_selector branch 5 times, most recently from 75c011d to 4f070a8 Compare March 20, 2020 09:50
@leio10 leio10 force-pushed the feat/improve_proposals_selector branch 5 times, most recently from c6bf8c2 to 553f823 Compare March 20, 2020 17:12
@leio10 leio10 requested review from mrcasals and tramuntanal March 20, 2020 18:09
@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Mar 20, 2020

@decidim/product the last version of the PR is ready to be tested at staging, I don't know if its approved or if you want to try it

@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Mar 20, 2020

@decidim/core this PR is rebased to #5883 to have GitHub Actions properly, I'll return to develop once that PR is merged. Also, circle task is failing because is not configured, and codeclimate is not working.

mrcasals
mrcasals previously approved these changes Mar 23, 2020
@leio10 leio10 force-pushed the feat/improve_proposals_selector branch from 553f823 to 0074e46 Compare March 23, 2020 17:04
@leio10 leio10 added the project: PAM2020 Barcelona City Council contract label Mar 24, 2020
@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Mar 24, 2020

@decidim/product I'm waiting for your approval to this before asking for the technical review. Would you check it out at staging, please? 😬

@josanFFiG
Copy link
Copy Markdown

LGTM (looks good to me)

@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Mar 24, 2020

Thanks @josanFFiG!

@decidim/core this is ready to be reviewed! :)

@tramuntanal
Copy link
Copy Markdown
Contributor

@leio10 can you merge develop in order to solve changelog conflicts and run coverage please?

@leio10 leio10 force-pushed the feat/improve_proposals_selector branch from 0074e46 to 007a01c Compare April 1, 2020 08:51
Copy link
Copy Markdown
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very good job @leio10 ! 👍

I've left some comments, just some details 😄

@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Apr 16, 2020

@tramuntanal done it!

Sorry that I didn't answer before. ❤️ to your DataPicker test, if you prefer it, I could cherry-pick it to simplify the process.

Regarding the coverage issues, the first problem is that coverage reports are failing a lot (problems when uploading to the server are ignored, failings when re-running jobs, wrong base commits used, etc), so it's being too hard to believe that information. I've created #5991 to improve its reliability, let's see if that helps us to get out of this problem.

@tramuntanal
Copy link
Copy Markdown
Contributor

Hi @leio10 the idea with #5932 is that you merge it into your PR (it branches off from your branch) and add the check for your modification. If you need help with more checks I can help.

@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Apr 22, 2020

@tramuntanal done!

@tramuntanal tramuntanal merged commit b042210 into develop Apr 23, 2020
@tramuntanal tramuntanal deleted the feat/improve_proposals_selector branch April 23, 2020 13:46
@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Apr 23, 2020

Woohoo! 🎉
Thanks @tramuntanal!

faithngetich pushed a commit to faithngetich/decidim that referenced this pull request Apr 28, 2020
* refactor: prepare DataPicker for supporting checkbox based selection

* feat: add support for sorted checkboxes selection to DataPicker

* fix: JS lint issues

* feat: add proposals picker based on DataPicker

* feat: use proposals picker on close meeting admin page

* feat: use proposals picker on accountability result edit admin page

* fix: missing line for precompiled assets

* fix: scopes picker style broken during refactor

* fix: scopes picker test broken during refactor

* fix: don't allow selecting the same value twice in multiple mode

* fix: undo decidim#4842, as it is not needed and it breaks admin scope selector

It is not needed anymore because the proposals picker has changed and now it doesn't allow selecting a "null proposal"

* fix: minor change on scopes picker tests

It is only for coherence purposes, even when nothing is broken.

* fix: i18n issues

* feat: limits for proposals shown, using server-side filtering

* docs: changelog entries added

* style: lint issues and explicit parameters for presenter method

* docs: update DataPicker's documentation and add examples of use

* test: proposals picker test helpers updated & moved to proposals module

* style: suggested changes applied

* Test Decidim::FormBuilder#data_picker (decidim#5932)

Co-authored-by: Oliver Valls <oliver.vh@coditramuntana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review project: PAM2020 Barcelona City Council contract

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve UI for Proposals relations with Meetings Global scope not selectable in filters of processes

4 participants