Repository navigation
fix(settings): compact access pickers for workers and bots - #741
Merged
Merged
Conversation
Connector access, provider instance workers and environment computers share one compact picker: a summary row that opens a searchable checklist with an "All" switch. Access saves when the picker closes. Mobile uses the same model in a checklist sheet.
This was referenced Nov 16, 2026
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.
What
Settings access pickers listed every worker and bot as a large checkbox with a description, about 90 px per row, so long lists were hard to read. Connector accounts, provider instance workers and environment "specific computers" now share one compact picker:
All workers,No bots,Canopy Bot, Main Bot(up to 2 names), or3 of 12 workers.All …switch with "Includes … added later.", a search field when there are more than 8 items, 32 px rows (40 px on touch) with a computer/bot icon, name, connection state orRead-only, group headings for linked computers, and a footerN of M chosenwithChoose all/Clear all.--duration-fast,ease-smooth-out, none with reduced motion). The footer keeps its place.Saving…meanwhile; errors keep the existing alert. Turning "All" off starts from everyone, so nobody loses access until unchecked.Shared logic (summary, toggles, search, threshold) lives in
@canopy/domain/access-pickerand is used by web and mobile.Mobile:
PickerSheetgets a checklist mode (selected,header). Connector access, provider workers and environment assignment use the newSettingAccessrow with the same model. JS only: no new modules or native config, so the fingerprint is unchanged (OTA-able).Related: 271a062 (connector access picker), #512
Copy audit (docs/copy.md §8)
All workerscheckbox +Including those added later.All workersswitch +Includes workers added later.Only these workers get the instance; elsewhere it is absent.The instance runs only on the chosen workers.Or choose specific computers (3)Specific computers—Chosen computers get it even without matching tags.Save accessbuttonSaving…)All includes future workers and bots belonging to you.(mobile)Only these workers and bots can use this account.3 of 12 workers,No bots,N of M chosen,Choose all,Clear all,Read-only,Connected/Disconnected,No workers match “x”.,Search workersGlossary: only worker, bot, computer, instance. No new terms. State uses text as well as colour (dot +
Connected).Checks
bun install,bun run typecheck(web, mobile, domain),bun run lint,bun run format:check, the web build, andexpo exportfor iOS and Android: clean.Browser review
Real Chromium against a private stack (Postgres, gateway, web), seeded through SQL with 2 and then 50 workers and bots, plus long names. Light and dark, at 1280 px and 390 px (touch):
All workersdims the list in place.Main Botand pressing Escape showedSaving…, thenCanopy Bot, Main Bot. The header changed toAll workers · 2 bots, and the DB has both grants with the revision bumped. TurningAll workersoff, searchingworker-1, thenClear allsaved40 of 50 workers(DB: 40 grants). While searching,Choose all/Clear allact on the matching rows only.Mobile was not run on a device. It is checked with typecheck and
expo export(iOS + Android).