Repository navigation
feat(companies): the Company page is one searchable table, and invites take a pasted list - #661
Merged
Merged
Conversation
… and invite a list into Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ady in a company" An address whose save fails no longer drops the rest: the others go out, the page names what was saved, and the failed addresses stay in the box (503). Someone in another company is "already in a company", not in this one. Typography stays with the shell. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
GPT 6.1 Sol review (xhigh), round 1Three findings, all fixed in 8c763ac.
Sol also ran the 19 CompanyPage and 12 Server tests and found no leak in the patch counts: they come from |
allisonmahmood
added a commit
that referenced
this pull request
Oct 13, 2026
…s and Company pages are easier to use (#667) Release 11's What's new entry, written through `a253cb2`. It ships as `patchy` `0.11.0`. **Changes** - New: Tools can show your PostHog data (#662, #664) - Improved: The Connections page stays clear with one connection or thirty (#657) - Improved: Find anyone on the Company page (#661) - New: Invite many people at once (#661) - Fixed: Browser tabs show Patchy's icon and your tool's name (#660) **Behind the scenes** - Each version of Patchy now skips kinds of connection it doesn't know, so going back to an earlier version stays safe (#657) **Deploying in two steps.** `c1e7de9` (#657 and everything before it) is released first, with no entry of its own. Then main is released with this entry. A rollback from the PostHog release therefore lands on a release that hides PostHog connections and dev-read calls instead of failing on them. Global CLIs and patch repos on `0.10.0` are told to upgrade, as on any release. Made by Claude Opus 5.5 via Claude Code in T3 Code Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
The Company page was hard to use. Three people and three invites filled a whole screen: each person was a block of prose with their own row of Promote and Deactivate buttons, invites sat in a separate list, and the invite form took one address at the bottom of the page. You couldn't search or scan for admins, and an invite whose email failed looked almost the same as one still waiting.
It's now one table, built from concept A of these four concepts:
invites.batch(50) addresses, split on commas, semicolons or new lines, with repeats counted once. If any address is bad or the list is too long, nothing is sent, the list stays in the field and the problem shows under it. Otherwise each address is its own invitation, and the page names any that were skipped because they're already in a company or already invited. An address whose save fails stays in the box while the rest go out.Members see the same page without the invite box or menus, as before.
The patch counts come from Patches, which Companies can't depend on.
CompanyPage.OwnedPatchesis aContext.Referencethat the server fills fromPatches.read, counting live patches the viewer can open, the same pattern asPatches.Openability. Without it the page leaves the column out.The shell gains
avatar,tag,tabswithcount,btn-icon,menuandfield-grow, written into theui-consistencyspec.docs/product.mddescribes the new page. The new contract limit is indocs/limits.mdand kept out of thepatchy-serverskill's table, like therate.andlook.limits.Screenshots, before and after as an admin and a member, the open menu, a refused list and a phone: https://post.patchyhq.com/d/8pmqccykookh (public but unlisted; local dev data only).
How it was verified
pnpm verifypasses: format, lint, typecheck, synth, test, postgres-concurrency, cli-smoke, tier2-smoke and browser.CompanyPage.test.ts: a pasted list with repeats, a member and an existing invite (one invitation and one event per new address, 409 naming the rest); bad, empty and oversized lists refused with 422 before any mail, with the text and role kept and escaped; tabs and search, including links that keep both; the Patches column from a suppliedOwnedPatches.Server.test.tschecks the booted server's count against the database.Release impact
emailfield are unchanged (the field may now hold a list), with no schema or API change.Made by Claude Opus 5.5 via Claude Code in T3 Code