Skip to content

Organization settings page; setup steps can be shown again once complete - #172

Merged
ndbroadbent merged 9 commits into
mainfrom
org-settings
Dec 4, 2026
Merged

ndbroadbent merged 9 commits into
mainfrom
org-settings

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Setup steps can be shown again once complete

https://app.visualci.com/docspring showed no setup steps and nobody could get them back: the org page hid the checklist once setup.complete was true, and "Show setup steps" only appeared for a checklist that was dismissed but not complete.

Now there's one stored show/hide choice that an admin can switch either way, complete or not:

  • organizations.setup_shown (nullable boolean) replaces setup_dismissed_at. NULL means nobody has chosen yet, and the checklist shows until it's complete. true or false is an admin's choice. The migration carries a dismissed checklist over as false.
  • I picked a nullable boolean over reusing setup_dismissed_at because the default ("shown until complete") needs a third state, and a timestamp can't hold "shown after completion" cleanly.
  • POST /api/ui/orgs/{org}/setup now takes {shown}. The state returns shown (the admin's choice, else !complete) in place of dismissed. The MCP's get_organization and whoami goldens change to match.
  • On the org page, admins get "Show setup steps" whenever it's hidden. The checklist's Hide button is for admins only, since the endpoint already refused anyone else. A complete checklist shows every step ticked.
  • STEPS on main is already install_github_app, connect_agent, add_to_ci, review_changes, and next follows it. No change needed.

Organization settings page (/<org>/settings)

Reached from a "Settings" button next to "+ New project" on the org page, and from a "Settings" item next to Billing in the account menu. Admins edit; other members see it read-only.

  • General: display name (editable). The slug is read-only, with a copy button.
  • Getting started: a "Show getting started steps" checkbox (the state above).
  • Members: the existing Members component. It lists people with their roles, invites by GitHub login or email, changes roles and removes people. The UI API already had all of these endpoints, and they never let anyone demote or remove the last admin.
  • GitHub: each connected installation with its account (personal or organization), the number of repositories its projects link, and "Manage on GitHub" (/settings/installations/<id> for users, /organizations/<login>/settings/installations/<id> for orgs). Admins also get "Add a GitHub organization" (/github/install). The checklist's install step links here ("Manage installations").
  • Project defaults: threshold, and "comment on pull requests when nothing changed". Both are existing per-project settings. They're stored as new organizations.project_threshold / project_comment_when_unchanged columns and copied when a project is made. Existing projects keep their own values.
  • Billing email (admins): the Billing page's existing form, reused.
  • Danger zone: leave the organization. The server refuses for your own (sign-up) organization, for access that comes from GitHub (it would come back at the next sign-in), and for the last admin. The button explains why it's off.

Left out:

  • Delete organization. The only delete is staff's org:delete console command. It refuses an organization with projects or Stripe history, and nothing cleans up blobs, builds and billing for a self-serve delete. The page says to email support.
  • Notifications ("who gets emailed when a build waits for review"). The backend sends no such email, so there is no setting to show. The billing email does exist, so it's included. Each person's own email settings stay on the Account page.
  • Auto-approve the default branch's first build. It isn't a setting: a suite's first build is always the baseline.

New endpoints:

  • PATCH /api/ui/orgs/{org}: name, project_threshold, project_comment_when_unchanged. Admins only: a member gets 403, an outsider 404.
  • POST /api/ui/orgs/{org}/leave: any member. An outsider gets 404.
  • GET /api/ui/orgs/{org} also returns personal, source (where your own access comes from), project_defaults and github_installations.

Migration: 2026_12_06_000000_organization_settings.rs.

Also:

  • Project slugs can no longer be settings or repositories (only billing was reserved). Both are the organization's own pages, and a project with either slug would be hidden behind them.
  • The repository picker keeps the pick exactly as it was, with the button showing "Adding…", until the importer replaces it. Before, the selection was cleared on success, so it flashed "Nothing picked yet" while the importer loaded. The selection is now cleared only on coming back for more. A failure keeps the pick and shows the error.
  • The app's logo links to / on every page except the app's home. On the home page it links to the site (siteUrl('/')).

Tests

  • app/: org_settings.rs (new): admin vs member vs outsider, defaults applied to new projects, reserved slugs, the leave rules. setup.rs: the tri-state, complete-but-shown, permissions.
  • Frontend: org-settings.test.ts (manage URLs, why you can't leave, threshold parsing). The menu test now expects Settings.
  • Screenshots: app/org/settings (light and dark, 1440 and 390 px wide) and app/org/settings/member (Grace, a GitHub-derived member, read-only).
  • Journeys:
    • organization-settings: rename; hide the steps and show them again; invite; can't leave your own organization; the invitee's read-only view; light and dark.
    • The picker journey now asserts that the pick doesn't change between the click and the importer.
    • The sign-in journey now checks the logo's link on /<org> and on /.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #492 · 14 added, 400 unchanged · approved by visualci features agent for Nathan Broadbent

visualci subdomains: #172 after the merge script's rebase; the same 14 Settings page shots as build 476.

This PR vs base: 6 changed, 8 added since #388, across 6 builds

Snapshot Before After
screenshots/app/org/settings/1440-dark (added) –
screenshots/app/org/settings/1440-dark-2x (added) –
screenshots/app/org/settings/1440-light (added) –
screenshots/app/org/settings/1440-light-2x (added) –
screenshots/app/org/settings/390-dark (added) –
screenshots/app/org/settings/390-dark-2x (added) –
screenshots/app/org/settings/390-light (added) –
screenshots/app/org/settings/390-light-2x (added) –
and 6 more in the build

docspring/visualci · journeys · build #490 · 1 changed, 7 added, 34 unchanged · approved by visualci features agent for Nathan Broadbent

visualci subdomains: #172 after the merge script's rebase; the same dashboard change and organization-settings journey as build 472.

This PR vs base: 5 added since #386, across 8 builds

Snapshot Before After
journeys/sign-in-from-the-site/02-dashboard (changed)
journeys/organization-settings/01-site (added) –
journeys/organization-settings/02-admin (added) –
journeys/organization-settings/03-admin-invited (added) –
journeys/organization-settings/04-admin-dark (added) –
journeys/organization-settings/05-site (added) –
journeys/organization-settings/06-member (added) –
journeys/organization-settings/07-member-dark (added) –

Updated as builds change. Agents can review with VisualCI's MCP tools.

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