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

feat: add debug menu to specify endpoint for mobile token server #5049

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

reidzeibel
Copy link
Member

closes https://github.com/AtB-AS/kundevendt/issues/20084

Pretty much self-explanatory, adds debug menu for specifying the mobile token server endpoint.
If there's a better alternative than using the storage function I would love to know more about it 😄

mobile.token.debug.webm

@reidzeibel reidzeibel marked this pull request as ready for review February 28, 2025 08:21
@reidzeibel reidzeibel self-assigned this Feb 28, 2025
@@ -0,0 +1,58 @@
import {Button} from '@atb/components/button';
import {ThemeText} from '@atb/components/text';
import {storage} from '@atb/storage';
Copy link
Contributor

Choose a reason for hiding this comment

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

Regarding storage, we recently created usePersistedBoolState.
We might want to either create one for string as well, or make the existing one general purpose. @gorandalum

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it is possible to refactor it into a more generic usePersistedState.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will make the refactor on another PR 👍🏼

@reidzeibel reidzeibel force-pushed the ridwan/debug-specify-endpoint-mobile-token branch from 045809b to eeaa294 Compare March 10, 2025 12:27
@reidzeibel reidzeibel requested a review from rosvik March 10, 2025 14:08
@reidzeibel
Copy link
Member Author

nudging @rosvik 😄

Copy link
Member

@rosvik rosvik left a comment

Choose a reason for hiding this comment

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

Apologies for the slow response 🫣 Looks good 👍

@reidzeibel
Copy link
Member Author

@rosvik no worries! lots of stuff happened last week, thank you for the review!

@reidzeibel reidzeibel merged commit 8ba4335 into master Mar 17, 2025
4 checks passed
@reidzeibel reidzeibel deleted the ridwan/debug-specify-endpoint-mobile-token branch March 17, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants