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

Simplify state of selected account #2010

Closed
wants to merge 1 commit into from
Closed

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Mar 23, 2025

Description

Based on #2009 merged

Since we always call router.reload() after selecting an account, most of my code regarding which account is selected was not necessary.

The only difference is that we now no longer show that the selection changed even before the page reloaded but I think removing this code is worth it.

Additional Context

Cleaning up the foundation to add a useCookie function to fix #2007 (comment).

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

8. I tested switching to anon and to a different user.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis added the auth label Mar 23, 2025
@ekzyis ekzyis marked this pull request as draft March 23, 2025 01:19
@ekzyis
Copy link
Member Author

ekzyis commented Mar 23, 2025

Will test this more tomorrow together with a new useCookie hook and when #2007 (comment) is fixed.

@ekzyis ekzyis force-pushed the account-refactor-2 branch from a2b8bbe to 66608a4 Compare March 24, 2025 14:25
@ekzyis ekzyis force-pushed the account-refactor-2 branch from d2c59c4 to 21408d2 Compare March 24, 2025 18:46
@ekzyis ekzyis marked this pull request as ready for review March 24, 2025 18:47
@ekzyis ekzyis requested a review from huumn March 24, 2025 18:47
@ekzyis ekzyis force-pushed the account-refactor-2 branch from 21408d2 to 4d666e9 Compare March 24, 2025 22:51
@ekzyis
Copy link
Member Author

ekzyis commented Mar 25, 2025

This PR is useless, all changes are overriden by #2019. Closing.

@ekzyis ekzyis closed this Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant