-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Handle pressing all go.bsky.app links in-app w/ resolution #4680
Conversation
Your Render PR Server URL is https://social-app-pr-4680.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cpurqahu0jms73eu8tig. |
|
src/Navigation.tsx
Outdated
<Stack.Screen | ||
name="StarterPackShort" | ||
getComponent={() => StarterPackScreenShort} | ||
options={{title: title(msg`Starter Pack`), requireAuth: true}} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new route that accepts a code
parameter rather than name and rkey
55457c1
to
3385238
Compare
setActiveStarterPack({ | ||
uri: starterPack.uri, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just removing this since it is unneeded. No change in functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have not run, code lgtm (after discussed changes)
Retested signup flow w/ a starter pack, works good. This is a little funky as noted but is mostly a corner case. |
Why
We want to be able to resolve any short links in the app, even if they don't get resolved while posting. This is a little challenging because we have to reach out to
go.bsky.app
first. I added JSON response support in #4671, which we can now use to perform resolution when landing on these.How
bsky.app
but we don't checkgo.bsky.app
which we add here.StarterPackScreenShort
routeThe nice thing here is this is extensible to other schemes whenever we want to. For example, post short links - which we are less worried about being very short - could use
/p/123456
and we could create a resolve query for those types of links.Test Plan