Repository navigation
feat: start remotes and orgs from the API - #734
Merged
xHeaven merged 3 commits intoOct 22, 2026
Merged
Conversation
simonhamp
added a commit
to NativePHP/dev-null-app
that referenced
this pull request
Oct 19, 2026
…ipe to reply Remotes gets the web's two buttons at the top right, with its icons: New org (users-round) and New remote (square-pen). New remote finds a developer by name or handle and opens your conversation with them. New org takes an optional name and people, up to the web's 100 with you, and opens the new org. Someone you can't reach shows the web's reason and can't be picked. Both use the people search and org creation in dev-null-sh/dev-null.sh#734. Open, Fetched and Stashed are now pages you swipe between, like the Log and Notifications. The pager's tabs are text only, so Fetched's request count goes in its label. Swiping a message sideways replies to it, as the web does on touch screens: someone else's to the right, your own to the left. The field takes focus. Any other swipe, such as a flick while scrolling, does nothing. The typing line now sits above the composer's border, as on the web, so the Push box is tighter. Stash and Pop in a thread's menu use the web's archive icons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
simonhamp
added a commit
to NativePHP/dev-null-app
that referenced
this pull request
Oct 19, 2026
* Add Remotes: the inbox, threads and their settings, as on the web Remotes takes Saved's place in the tab bar, and Saved opens from your own profile. The inbox and threads poll as the web's do, messages push staged and then pushed, and the Account screen gains the web's Remotes switch and Share pulls. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Keep a reader's place in a Remotes thread, and fix what the simulator turned up Each message is now a row of the thread's scroll view, not of one column inside it, so SwiftUI keeps a reader's place by the rows on screen. With NativePHP/mobile-ui#141 (combined/dev-null-app 6e92378), a message arriving no longer pulls someone reading back down to it, and still follows someone at the bottom. Bubbles get a set width, since a column that only hugged its bubble measured the text on one line and clipped it. HEAD only shows when something above it was read, as on the web. The thread's own path() clashed with OpensInTab's and silently stopped View profile and mention taps. And a devnull too old to send remotes on /me no longer reads as Remotes turned off. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Start remotes and orgs from the inbox, swipe between its tabs, and swipe to reply Remotes gets the web's two buttons at the top right, with its icons: New org (users-round) and New remote (square-pen). New remote finds a developer by name or handle and opens your conversation with them. New org takes an optional name and people, up to the web's 100 with you, and opens the new org. Someone you can't reach shows the web's reason and can't be picked. Both use the people search and org creation in dev-null-sh/dev-null.sh#734. Open, Fetched and Stashed are now pages you swipe between, like the Log and Notifications. The pager's tabs are text only, so Fetched's request count goes in its label. Swiping a message sideways replies to it, as the web does on touch screens: someone else's to the right, your own to the left. The field takes focus. Any other swipe, such as a flick while scrolling, does nothing. The typing line now sits above the composer's border, as on the web, so the Push box is tighter. Stash and Pop in a thread's menu use the web's archive icons. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Tap a message for React and Reply, and even out the composer A long press on a message was unreliable, so it's gone. A tap now shows React and Reply beside the message, with the web's icons (smile-plus and reply), as the web shows them on hover. Reply sits nearest the bubble. The row keeps a gutter for them on every message, so they come and go without moving anything. React opens the reactions sheet, which no longer carries Reply. A double tap still toggles a heart, and a swipe still replies. Who's typing moves under the title in the nav bar. The empty typing line above the composer was part of the bar, so it hid messages before they reached the bar's border. The field has the same room above and below, so the bar sits evenly on the keyboard. The thread now pads its end for the bar alone. mobile-ui's bottom anchor adds the home indicator while the keyboard is down (NativePHP/mobile-ui#141, combined/dev-null-app b70ef42). With the keyboard up there's no longer a big gap above the bar, and a short thread no longer floats up the screen. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Show React and Reply right beside the tapped bubble, fading in The buttons sat in a gutter at the edge of the screen, away from short messages. Now the bubble and a slot for them share a row, so they sit right against the bubble, after someone else's and before yours. The slot keeps its width, so a long message wraps short of it either way, and nothing moves when they appear. An image-only message keeps them beside its images. Every message keeps its buttons, faded out and tucked 8 points toward the bubble. A tap fades them in and slides them into place over 180ms, and fades out the last message's. Faded out, they take no taps. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
simonhamp
marked this pull request as ready for review
October 19, 2026 23:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets the mobile app start a new remote or a new org, the way the web's New remote and New org buttons do. It's one of a few small PRs that bring Remotes to the app (NativePHP/dev-null-app) on top of the signed API from #130. It stands alone. A new remote needs no endpoint of its own: the app finds someone here, and its first push starts the conversation, as on the web. Pushing is in the messages PR (#665).
Endpoints
Both signed. They go through the web's
conversationslimiter (300 a minute).GET /api/v1/remotes/candidates?q=&for=remote|org&org={id}{"candidates": [{"user", "reason"}]}, up to 8 people, with anullreason for anyone who can be pickedPOST /api/v1/remotes/orgswithnameandmembers(usernames)201with{"org": {"id"}}useris theUserResourcethe rest of the signed API uses for people, so the app can read it with the code it already has. The candidates answer is sent withCache-Control: private, no-store, like the web's.Rules kept from the web
The form requests are copies of the web's
ListRemoteCandidatesRequestandCreateOrgRequest. The reasons come from the web'sRemoteCandidatesQuery, and the web'sCreateOrgaction makes the org.has remotes offanddoesn't follow youfor a remote, and alsoalready in the org,has a block with someone in the organdthe org is full (100)for an org.?for=orgasks about a new org and?org={id}about one the user is in. An org they aren't in is a404.422on their place inmembers, with the web's message, like@taylorotwell doesn't follow you.throttle:messages(30 a minute), as on the web.404while the user has Remotes off.One small difference. The web looks
?org=up before it validates it, so anorgthat isn't a UUID makes Postgres throw and the web answers500. The API request only looks it up when it is a UUID, so the same request gets a422there. I left the web alone to keep this PR small.Testing
New feature tests in
tests/Feature/Controllers/Api/cover both endpoints: the happy paths, every reason, the404s, validation, both limits and unsigned requests. Everything CI runs passes on this branch locally: Pint, Rector, the JS lint, PHPStan, tsc, type coverage, the JS unit tests, and all 3,417 PHP tests at 100% coverage.