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

Pass url as query string param #623

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Pass url as query string param #623

merged 2 commits into from
Feb 20, 2025

Conversation

tsmith123
Copy link
Collaborator

@tsmith123 tsmith123 commented Feb 19, 2025

Fixes #579

This PR allows a user to pass a url query string param for a guardian/gateway when loading the UI. This string value will be added to the input box automatically.

Note: whilst we could connect automatically this would potentially cause a few issues such as if a user clicked back in the browser after connecting it would then connect them again. I prefer asking the user to click the connect button because this means they will follow the same flow as those who don't provide a query string param meaning we can reuse the same logic.

Example

https://fedimint-ui.com/?url=wss://btcpp-11.cypheru.net/ws/

Screenshot 2025-02-19 at 13 25 04

@tsmith123 tsmith123 requested a review from a team as a code owner February 19, 2025 13:29
Copy link

vercel bot commented Feb 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 1:29pm

@tsmith123 tsmith123 requested review from alexlwn123 and removed request for a team February 19, 2025 13:39
Copy link
Member

@alexlwn123 alexlwn123 left a comment

Choose a reason for hiding this comment

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

looks great

@alexlwn123 alexlwn123 merged commit e3c2951 into master Feb 20, 2025
4 checks passed
@alexlwn123 alexlwn123 deleted the tom/service-url-param branch February 20, 2025 12:24
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.

Allow providing a guardian URL as URL parameter
2 participants