Skip to content
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

Show budgets map only if feature is enabled #4810

Merged
merged 5 commits into from
May 3, 2022
Merged

Show budgets map only if feature is enabled #4810

merged 5 commits into from
May 3, 2022

Conversation

decabeza
Copy link
Collaborator

Objectives

The Participatory budgets page shows a map with Budget investments' proposals located geographically. 🗺️

This PR hides the map if the setting "Proposals and budget investments geolocation" (Setting["feature.map"]) is disabled to avoid showing an empty map.

@javierm javierm added the Bug label Apr 12, 2022
@javierm javierm added this to Reviewing in Consul Democracy via automation Apr 12, 2022
@javierm javierm self-assigned this May 2, 2022
@javierm javierm force-pushed the budgets_map branch 3 times, most recently from 2f49cfc to 68845f7 Compare May 2, 2022 17:52
We're going to make a change, and it's easier if we've already got a
component with tests so we don't have to write system tests to check
whether the map is rendered.
These helpers aren't used here since commit 090f1bc.
We forgot to do so in commit 04605d5. Before that commit, we were
testing the links weren't displayed in the "informing" phase as opposed
to the "finished" phase. After that commit, they weren't displayed
anywhere since a <select> field was shown instead.

Since then, we've replaced the <select> field with the links generated
by the `Budgets::Investments::FiltersComponent`. We've already got tests
for these links.
@javierm javierm force-pushed the budgets_map branch 2 times, most recently from 075c1d0 to 64efd7d Compare May 2, 2022 18:32
@taitus taitus self-assigned this May 3, 2022
Consul Democracy automation moved this from Reviewing to Testing May 3, 2022
@javierm javierm merged commit 01634e8 into master May 3, 2022
Consul Democracy automation moved this from Testing to Release 1.5.0 May 3, 2022
@javierm javierm deleted the budgets_map branch May 3, 2022 17:27
@javierm
Copy link
Member

javierm commented May 3, 2022

@decabeza Cool, thanks! 🎉

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.

None yet

3 participants