Skip to content

feat(bots): limit access to selected projects - #1479

Merged
nixuuu merged 6 commits into
devfrom
test/bot-project-scope-fixtures
Nov 29, 2026
Merged

nixuuu merged 6 commits into
devfrom
test/bot-project-scope-fixtures

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add Project access to each bot’s settings on web, desktop, iOS, and Android. All projects retains the bot’s current access. Selected projects with an empty list grants no project access. The system No project entry can be selected separately.
  • Enforce project access on the bot’s gateway for discovery, direct resource IDs, approval preparation, execution, and new delegated thread and trigger deliveries. An omitted scope edit preserves the saved restriction, including across older clients. Invalid stored scope grants no project access.
  • Check every thread in a bulk archive before asking for approval and when executing. Lock the schedule row when admitting a schedule mutation. Selected access uses project workspaces for directory discovery.

Thanks to @marcinniewinski for the Service Desk report.

Verification

  • Local on Linux, 6e90630. Targeted formatting and lint passed for 54 changed files. The Protobuf outputs were generated, and default, selected, empty, and malformed scope passed a focused check. A local fixture confirmed that the creation preview and saved bot agree on the default access.
  • Browser fixture. The settings dialog ran against a simulated API at desktop width and at 390 px in dark mode. Checked search, long labels, project IDs, scope changes, an empty selection, and an unrelated save.
  • CI. Earlier runs caught gateway type errors and a mismatch between the creation preview and saved settings. Both were corrected. A separate shard passed when retried after a link heartbeat timeout. Required checks passed on 6e90630, including integration fixtures for default and selected access, direct resource IDs, revocation before approved execution, mixed-project bulk archives, and trigger delivery after narrowing. A retry on the same revision cleared the scratch-thread fixture’s timing failure. Native runtime and a live linked gateway remain unverified.
  • Copy audit. The new Project access field distinguishes All projects, Selected projects, and No project access. The picker announces the selected count and explains unavailable options and the gateway update requirement. Checked short and long labels at both browser widths.

@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 16:26
@nixuuu
nixuuu disabled auto-merge November 29, 2026 16:29
@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 16:32
@nixuuu
nixuuu merged commit 981db64 into dev Nov 29, 2026
46 of 48 checks passed
@nixuuu
nixuuu deleted the test/bot-project-scope-fixtures branch November 29, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant