Skip to content

Allow user to drag address on proposal map#6291

Merged
Leusev merged 20 commits intodecidim:developfrom
armandfardeau:feature/draggable-cursor-on-proposal-map
Nov 25, 2020
Merged

Allow user to drag address on proposal map#6291
Leusev merged 20 commits intodecidim:developfrom
armandfardeau:feature/draggable-cursor-on-proposal-map

Conversation

@armandfardeau
Copy link
Copy Markdown
Contributor

@armandfardeau armandfardeau commented Jul 10, 2020

🎩 What? Why?

When geocoding is activated, the user could have an alternative way to enter address positioning the cursor on the map. UX details : In the complete proposal stage when creating a proposal the user could click on a button to position cursor on the map which open a model with a map on which the user could navigate to position pin and validate.

📌 Related Issues

📋 Subtasks

  • Add tests

📷 Screenshots (optional)

Description

@tramuntanal
Copy link
Copy Markdown
Contributor

Hi @armandfardeau !
Is this related to some issue or feature approved by @decidim/product ? can you link please? 😄

@carolromero
Copy link
Copy Markdown
Member

Here @tramuntanal 😊 https://meta.decidim.org/processes/roadmap/f/122/proposals/13116
I haven't been able to review the PR, though. @virgile-dev @armandfardeau Is there somewhere we can take a look? Thank you!

@virgile-dev
Copy link
Copy Markdown
Contributor

@carolromero @tramuntanal here is the related issue : OpenSourcePolitics/dev#27
We'll refactor a bit the feature for this PR but you can test its current behaviour here : https://demo.decidim.opensourcepolitics.eu/processes/modules-decidim/f/2/

@armandfardeau armandfardeau marked this pull request as ready for review July 17, 2020 07:12
@tramuntanal
Copy link
Copy Markdown
Contributor

@virgile-dev @armandfardeau you said you'll "refactor a bit the feature", is the PR ready for review now?

@Leusev Leusev self-requested a review July 22, 2020 09:49
@Leusev Leusev self-assigned this Jul 22, 2020
@Leusev
Copy link
Copy Markdown
Contributor

Leusev commented Jul 22, 2020

Thanks for this work @armandfardeau .
@decidim/product / @carolromero could you test this improvement in their staging?
Thanks in advance

@virgile-dev
Copy link
Copy Markdown
Contributor

virgile-dev commented Jul 22, 2020

@tramuntanal yes this the refactored version.
We don't a staging environment for this though. Let me check with @armandfardeau if we can have one with here maps activated.

@virgile-dev
Copy link
Copy Markdown
Contributor

@armandfardeau it looks good to me !
Only feedback is the following, could you delete the 2 things I highlighted in the capture bellow please ?
Capture d’écran 2020-07-24 à 11 45 00

@Leusev
Copy link
Copy Markdown
Contributor

Leusev commented Jul 27, 2020

@armandfardeau it looks good to me !
Only feedback is the following, could you delete the 2 things I highlighted in the capture bellow please ?
Capture d’écran 2020-07-24 à 11 45 00

While I was testing, I found this screen too, but I don't understand very well what is intended for that red highlighted text.
Is there where the draggable map should appear? I also don't quite understand why it tells me it's not geocoded..

Could you briefly explain what steps to follow to activate the option where the draggable map button appears please?

Thanks in advance @armandfardeau !

Copy link
Copy Markdown
Contributor

@Leusev Leusev left a comment

Choose a reason for hiding this comment

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

Could you please also review the file conflicts?
Thank you very much!

@Leusev
Copy link
Copy Markdown
Contributor

Leusev commented Jul 29, 2020

@armandfardeau it looks good to me !
Only feedback is the following, could you delete the 2 things I highlighted in the capture bellow please ?
Capture d’écran 2020-07-24 à 11 45 00

While I was testing, I found this screen too, but I don't understand very well what is intended for that red highlighted text.
Is there where the draggable map should appear? I also don't quite understand why it tells me it's not geocoded..

Could you briefly explain what steps to follow to activate the option where the draggable map button appears please?

Thanks in advance @armandfardeau !

Thanks for checking and resolve conflict files @armandfardeau
In other hand, could you briefly explain what steps to follow to activate the option where the draggable map button appears please?
Thanks!

@Leusev
Copy link
Copy Markdown
Contributor

Leusev commented Jul 29, 2020

In the meantime, @decidim/product have you been able to test the new functionality?
// cc @carolromero
Thanks!

@andreslucena
Copy link
Copy Markdown
Member

I've checked it last week, but found the "not geocoded address" and thought that I had misconfigured my here on localhost and I was waiting for the staging environment to check it out again.

This will need a rework as there are going to be huge changes on the maps API on #6340

@virgile-dev
Copy link
Copy Markdown
Contributor

Hello @carolromero

We revamped this feature updating our code to the changes Antti added in its PR to make maps configurable (#6340 ).
You can test this feature on this staging env : https://staging-map.osp.dev/
Here is an example of a proposal made using the feature : https://staging-map.osp.dev/processes/incidunt-provident/f/12/proposals/46?locale=en the address inputed is vague (a neighbourhood in Paris) and I position my point on a place that has no address per say, which is one of the use case of the feature.
You can test using the test logins user@example.org

Happy testing !
Hoping we can merge this finally 🤞

@armandfardeau armandfardeau marked this pull request as ready for review November 6, 2020 10:03
@carolromero
Copy link
Copy Markdown
Member

Hey @virgile-dev I tested this and seems to be working fine. This is a cool feature 😎 thanks!

@virgile-dev
Copy link
Copy Markdown
Contributor

@Leusev this was accepted and tested by product. It's finally ready to be merged 🥳
Thanks in advance !

@Leusev Leusev self-requested a review November 13, 2020 12:12
Copy link
Copy Markdown
Contributor

@Leusev Leusev left a comment

Choose a reason for hiding this comment

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

Hi @armandfardeau
in first place, thanks a lot for your work! 😄
In general, seems good for me, but it noticed that codecov/patch is too low
image
there is a difference in the percentage of missing codecov/patch tests too large...

Could you check if is possible to add/improve a bit the current tests please?
Thanks in advance!

@virgile-dev
Copy link
Copy Markdown
Contributor

@Leusev Armand improved the codecov by a lot. Do you think you can merge it now ? Thanks in advance !

@armandfardeau
Copy link
Copy Markdown
Contributor Author

@Leusev The Failing initiative test works perfectly locally, could you retry? Looks like a flaky to me.

@tramuntanal
Copy link
Copy Markdown
Contributor

I'm re-running initiatives' workflow

Copy link
Copy Markdown
Contributor

@Leusev Leusev left a comment

Choose a reason for hiding this comment

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

All ok now @armandfardeau ! 😄
Thanks a lot for your effort & tests improvement 👍

@Leusev Leusev merged commit d458745 into decidim:develop Nov 25, 2020
entantoencuanto added a commit that referenced this pull request Dec 2, 2020
…ngs_content_block

* develop: (22 commits)
  Fix email CTA alignment on Outlook and Windows Mail (#6895)
  Fix mailer meeting registration invitation using path instead of URL (#6965)
  Fix the data portability exporter when zip is not in the gemfile (#6969)
  Convert technical docs to Antora (#6526)
  New Crowdin updates (#6957)
  Bugfix - moderated meetings are displayed in the meetings index page  (#6927)
  Add HTML Content Blocks in Process Groups  (#6823)
  Prevent error in view due to optional html not showing (#6942)
  Improve layout for standalone T&C page (#6944)
  chore: move rubocop ruby config to own file (#6952)
  Fix some strings (#6958)
  Fix newsletter html containing style tag content (#6876)
  New Crowdin updates (#6945)
  New Crowdin updates (#6926)
  Localize a string in conference speaker (#6866)
  Fix broken dashboard action logs under certain conditions (#6857)
  Fix traceability logs with invalid record (#6879)
  Allow user to drag address on proposal map (#6291)
  New Crowdin updates (#6898)
  Update release notes documentation (#6809)
  ...
entantoencuanto added a commit that referenced this pull request Dec 2, 2020
…_content_block

* develop: (22 commits)
  Fix email CTA alignment on Outlook and Windows Mail (#6895)
  Fix mailer meeting registration invitation using path instead of URL (#6965)
  Fix the data portability exporter when zip is not in the gemfile (#6969)
  Convert technical docs to Antora (#6526)
  New Crowdin updates (#6957)
  Bugfix - moderated meetings are displayed in the meetings index page  (#6927)
  Add HTML Content Blocks in Process Groups  (#6823)
  Prevent error in view due to optional html not showing (#6942)
  Improve layout for standalone T&C page (#6944)
  chore: move rubocop ruby config to own file (#6952)
  Fix some strings (#6958)
  Fix newsletter html containing style tag content (#6876)
  New Crowdin updates (#6945)
  New Crowdin updates (#6926)
  Localize a string in conference speaker (#6866)
  Fix broken dashboard action logs under certain conditions (#6857)
  Fix traceability logs with invalid record (#6879)
  Allow user to drag address on proposal map (#6291)
  New Crowdin updates (#6898)
  Update release notes documentation (#6809)
  ...
entantoencuanto added a commit that referenced this pull request Dec 2, 2020
…cipatory_processes_content_block

* develop: (22 commits)
  Fix email CTA alignment on Outlook and Windows Mail (#6895)
  Fix mailer meeting registration invitation using path instead of URL (#6965)
  Fix the data portability exporter when zip is not in the gemfile (#6969)
  Convert technical docs to Antora (#6526)
  New Crowdin updates (#6957)
  Bugfix - moderated meetings are displayed in the meetings index page  (#6927)
  Add HTML Content Blocks in Process Groups  (#6823)
  Prevent error in view due to optional html not showing (#6942)
  Improve layout for standalone T&C page (#6944)
  chore: move rubocop ruby config to own file (#6952)
  Fix some strings (#6958)
  Fix newsletter html containing style tag content (#6876)
  New Crowdin updates (#6945)
  New Crowdin updates (#6926)
  Localize a string in conference speaker (#6866)
  Fix broken dashboard action logs under certain conditions (#6857)
  Fix traceability logs with invalid record (#6879)
  Allow user to drag address on proposal map (#6291)
  New Crowdin updates (#6898)
  Update release notes documentation (#6809)
  ...
entantoencuanto added a commit that referenced this pull request Dec 2, 2020
…link

* develop: (22 commits)
  Fix email CTA alignment on Outlook and Windows Mail (#6895)
  Fix mailer meeting registration invitation using path instead of URL (#6965)
  Fix the data portability exporter when zip is not in the gemfile (#6969)
  Convert technical docs to Antora (#6526)
  New Crowdin updates (#6957)
  Bugfix - moderated meetings are displayed in the meetings index page  (#6927)
  Add HTML Content Blocks in Process Groups  (#6823)
  Prevent error in view due to optional html not showing (#6942)
  Improve layout for standalone T&C page (#6944)
  chore: move rubocop ruby config to own file (#6952)
  Fix some strings (#6958)
  Fix newsletter html containing style tag content (#6876)
  New Crowdin updates (#6945)
  New Crowdin updates (#6926)
  Localize a string in conference speaker (#6866)
  Fix broken dashboard action logs under certain conditions (#6857)
  Fix traceability logs with invalid record (#6879)
  Allow user to drag address on proposal map (#6291)
  New Crowdin updates (#6898)
  Update release notes documentation (#6809)
  ...
entantoencuanto added a commit that referenced this pull request Dec 2, 2020
…ighted_groups

* develop: (22 commits)
  Fix email CTA alignment on Outlook and Windows Mail (#6895)
  Fix mailer meeting registration invitation using path instead of URL (#6965)
  Fix the data portability exporter when zip is not in the gemfile (#6969)
  Convert technical docs to Antora (#6526)
  New Crowdin updates (#6957)
  Bugfix - moderated meetings are displayed in the meetings index page  (#6927)
  Add HTML Content Blocks in Process Groups  (#6823)
  Prevent error in view due to optional html not showing (#6942)
  Improve layout for standalone T&C page (#6944)
  chore: move rubocop ruby config to own file (#6952)
  Fix some strings (#6958)
  Fix newsletter html containing style tag content (#6876)
  New Crowdin updates (#6945)
  New Crowdin updates (#6926)
  Localize a string in conference speaker (#6866)
  Fix broken dashboard action logs under certain conditions (#6857)
  Fix traceability logs with invalid record (#6879)
  Allow user to drag address on proposal map (#6291)
  New Crowdin updates (#6898)
  Update release notes documentation (#6809)
  ...
entantoencuanto added a commit that referenced this pull request Dec 2, 2020
…s_and_processes_block

* develop: (22 commits)
  Fix email CTA alignment on Outlook and Windows Mail (#6895)
  Fix mailer meeting registration invitation using path instead of URL (#6965)
  Fix the data portability exporter when zip is not in the gemfile (#6969)
  Convert technical docs to Antora (#6526)
  New Crowdin updates (#6957)
  Bugfix - moderated meetings are displayed in the meetings index page  (#6927)
  Add HTML Content Blocks in Process Groups  (#6823)
  Prevent error in view due to optional html not showing (#6942)
  Improve layout for standalone T&C page (#6944)
  chore: move rubocop ruby config to own file (#6952)
  Fix some strings (#6958)
  Fix newsletter html containing style tag content (#6876)
  New Crowdin updates (#6945)
  New Crowdin updates (#6926)
  Localize a string in conference speaker (#6866)
  Fix broken dashboard action logs under certain conditions (#6857)
  Fix traceability logs with invalid record (#6879)
  Allow user to drag address on proposal map (#6291)
  New Crowdin updates (#6898)
  Update release notes documentation (#6809)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants