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

fix: hide member mappins on precious plastic #3000

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

benfurber
Copy link
Member

PR Checklist

PR Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Developer experience (improves developer workflows for contributing to the project)

Description

A more robust attempt at trying to hide member pins by default on PP. This fixes two problems:

  1. While it worked locally, how the platform version is selected for production builds is different.
  2. The pins were hidden completely and couldn't be filtered if a user wanted to.

I tried first to apply the logic necessary to the display components but I didn't find an approach that worked so I applied it to the store logic instead.

Git Issues

Closes #2927

@benfurber benfurber requested a review from a team as a code owner November 13, 2023 14:49
@benfurber benfurber added the Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview label Nov 13, 2023
Copy link
Contributor

github-actions bot commented Nov 13, 2023

Visit the preview URL for this PR (updated for commit eaffb5b):

https://onearmy-next--pr3000-2927-2-hide-member-m-t4pzmo7c.web.app

(expires Wed, 27 Dec 2023 22:30:47 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 6d65e4f8fee2f6ab2da0c1c3b85b8797d66afa59

@benfurber
Copy link
Member Author

I'm getting a different behaviour on the preview branch than locally. Reverting to a draft.

@benfurber benfurber marked this pull request as draft November 13, 2023 15:02
Copy link

cypress bot commented Nov 13, 2023

1 flaky test on run #4623 ↗︎

0 190 0 0 Flakiness 1

Details:

feat: allow member pins to still be selected on pp
Project: onearmy-community-platform Commit: eaffb5b7c2
Status: Passed Duration: 04:29 💡
Started: Nov 25, 2023 7:06 PM Ended: Nov 25, 2023 7:10 PM
Flakiness  src/integration/SignUp.spec.ts • 1 flaky test • ci-firefox

View Output

Test Artifacts
[Sign-up - new user] > sign in as new user Screenshots

Review all test suite changes for PR #3000 ↗︎

@davehakkens
Copy link
Contributor

Thanks for the try @benfurber. Feel free to leave it for someone else if it gets to complex. Can be challenging with all the instances and configurations

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (e222691) 56.21% compared to head (eaffb5b) 56.25%.

Files Patch % Lines
src/stores/Maps/maps.store.ts 0.00% 8 Missing ⚠️
src/pages/Maps/Content/Controls/Controls.tsx 0.00% 5 Missing ⚠️
...ges/Maps/Content/Controls/GroupingFilterMobile.tsx 0.00% 2 Missing ⚠️
src/config/config.ts 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3000      +/-   ##
==========================================
+ Coverage   56.21%   56.25%   +0.03%     
==========================================
  Files         345      345              
  Lines       11247    11253       +6     
  Branches     1934     1940       +6     
==========================================
+ Hits         6323     6330       +7     
+ Misses       4876     4875       -1     
  Partials       48       48              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benfurber benfurber marked this pull request as ready for review November 14, 2023 12:35
@benfurber
Copy link
Member Author

@davehakkens Thanks for the offer Dave. The issue yesterday was just some incomplete logic I'd written. The behaviour is what is required now, just the issue of checking my new approach to determining PP for production...

@thisislawatts thisislawatts added the 🤝 Awaiting author Waiting on action from the author label Nov 18, 2023
@davehakkens davehakkens merged commit c37050b into ONEARMY:master Nov 27, 2023
27 checks passed
@cypress cypress bot mentioned this pull request Nov 27, 2023
@onearmy-bot
Copy link
Collaborator

🎉 This PR is included in version 1.127.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@davehakkens
Copy link
Contributor

Should be released but member pins are still here.. @benfurber
Or am I missing something?
afbeelding

@benfurber
Copy link
Member Author

@davehakkens Next time a build is release can you please check this again? It turns out that REACT_APP_PLATFORM_THEME wasn't being set as an environment variable for the production build of PP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤝 Awaiting author Waiting on action from the author Mod: Maps 🗺 released Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[feature request] Hide "member" mappins by default on PP
4 participants