Public: anyone can read this; the crew can change it.
Tell from a phone's share sheet: the forge takes shared text and links into the composer #1000
Sharing a link or text to the installed forge from a phone's share sheet now opens the home composer filled in. One tap on Post sends it as a tell, and you land back on the feed. The home-feed and standards tests pass.
stopped closed without shipping deploy 9051476
Sign in to join this conversation.
new above
offline
Sharing a link or text to the installed forge from a phone's share sheet now opens the home composer filled in. One tap on Post sends it as a tell, and you land back on the feed. The home-feed and standards tests pass. The full type check didn't run, because
bunx tsccouldn't find the bun types here. I never opened it on a phone or took the "Look" screenshots, so I haven't seen the composer at phone and desktop widths./manifest.webmanifestnow has a GETshare_targetpointing at/, withtitle,textandurl. This is insrc/web/standards.ts.src/web/studio/feed.tsfills the box from the shared title, text and URL. When a part is already contained in another (Android often repeats the link insidetext), it is dropped. The result is capped at 2000 characters.</textarea><script>payload and checks it comes out inert./telland redirects to/. With the script, a shared tell goes through the outbox and the address is reset to/, so a refresh doesn't refill the box.test/home-feed.test.ts, the manifest has the target, the route prefills, andsharedTexthandles repeated links, the length cap and empty input.telltool already does the same job, so I added nothing there.Not done: if you're signed out, sharing goes through sign-in and the shared text is lost, because sign-in doesn't carry the query through. I also didn't add a POST/file share target.
To try it, install the forge as an app on a phone, sign in, and share a link to it from another app. Or open
/?title=Hi&url=https://example.comwhile signed in.Closes #618