Closed rumzledz closed 1 month ago
~Actually hang on @iamsamgibbs , product has updated that spec this morning actually, I forgot to update when Mel messaged me this morning. The team should be cleared on refresh too. Bear with me!~
UPDATE: After speaking to Arren, the team param should definitely persist after a reload and it should continuously persist in other pages within the Colony as long as that page has a Team Filters component
Description
This PR enables a selected team filter to persist across Colony pages that uses the
<TeamFilter />
component.However, it will not persist the selected team filter for a Colony if you:
Testing
Soft Navigation Scenario
Visit the Planex Colony
Visit the Dashboard page
Select team Andromeda using the Teams Filter component
Verify that the URL is: http://localhost:9091/planex?team=2 and the Team Filter is component is correctly set
Click the "View all" button on the Recent Activity table
Verify that the URL is http://localhost:9091/planex/activity?team=2 and the Team Filter is component is correctly set
Click Teams on the left Colony sidebar
Verify that the URL is http://localhost:9091/planex/teams?team=2 and the Team Filter is component is correctly set
Click Extensions on the left Colony sidebar
Verify that the URL is http://localhost:9091/planex/extensions because this page does not have a Teams Filter
Click Permissions on the left Colony sidebar
Verify that the URL is http://localhost:9091/planex/permissions?team=2 and the Team Filter is component is correctly set
Visit the account page
Verify that URL doesn't have a team param and that the Teams Filter component doesn't have a pre-selected value
Head back to the Planex Colony
Verify that the URL doesn't have a team param
Select team Serenity using the Teams Filter component
Verify that the URL is http://localhost:9091/planex?team=3
Visit the Wayne colony
Verify that the URL doesn't have a team param
Hard Navigation Scenario
Diffs
New stuff ✨
ColonyFiltersContextProvider
Resolves #3203