Skip to content

fix(web): make connector setup instructions actionable - #123

Merged
nixuuu merged 1 commit into
devfrom
fix/ux-connector-setup
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/ux-connector-setup

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

The connect dialog now says which credential each connector needs and how to get it.

  • Connection methods: "How to connect" shows one card per method. Each method has short numbered steps, a link to the page where you create the credential, and a link to the connector's setup guide. The text comes from a new additive proto field, ConnectorType.auth_methods = 8, filled by apps/gateway/src/connectors/auth-methods.ts.
  • Token field: named after the credential (for example "Personal access token") and required where the service needs it.
  • OAuth: GitHub and Slack need a registered OAuth app. For them, the app form is inline, with a copyable callback URL, and sign-in is disabled until the app is saved. Services with automatic registration keep scopes and a registered app under an Advanced section.
  • Advanced paths: custom MCP endpoints, transport and custom secret headers work as before.

Checked with GitHub (token and OAuth app), Slack, Atlassian and a custom server, with short and long names, in light and dark, at 1440, 768 and 390 px.

Copy audit (docs/copy.md §8):

  • Setup steps are imperative, one action each.
  • Labels name the credential.
  • Field help is at most one sentence ("Sent as a bearer token. Stored encrypted in the gateway.").
  • No jargon on the surface.

@nixuuu
nixuuu merged commit 27d3516 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/ux-connector-setup branch November 5, 2026 05:37
nixuuu added a commit that referenced this pull request Nov 12, 2026
The Link pull request picker used three-line rows, a wrapping status
column and a separate URL form button. Web/desktop and mobile now use
two-line rows with compact branch/linked icons, short ages, reserved
status space and a single header containing the repository, optional
account switcher and Open/All control.

Search uses “Search or paste a link”. A number or GitHub PR URL adds
“Link #123” or “Link <url>” as the first selectable result. The existing
Combobox handles keyboard navigation. Direct links use the existing
owner-scoped gateway action; failed direct links retain the
repository-access form. The separate “Link by URL” button is removed.
Mobile changes are JavaScript only.

Fixes: #553

## Verification

- Rebased on current `dev`, including #589 and #592. `bun install
--frozen-lockfile`, `gen:check`, `typecheck`, `lint`, `format:check` and
the web build passed on the dedicated review computer with `nice -n 10`.
`git diff --check` passed. GitHub CI runs the full test shards with
their temp-directory checks. No web UI tests were added or run.
- Reviewed actual picker components in one Chromium session using
temporary in-memory API fixtures: 0, 1 and 50 PRs; short and long
titles, branches and account names; current branch + linked icons;
Open/All; account selection; internal scrolling; numeric and URL linking
with the keyboard; failed-link recovery; URL linking without a GitHub
remote. Covered light/dark, desktop 1280×800 and phone 390×844, plus a
320px width check. No real GitHub API calls. Browser review caught and
fixed long account-name overflow; the 390px page has no horizontal
overflow. Temporary fixture files and processes were removed.
- EAS CLI 27.4.1 production fingerprints generated locally with `nice -n
19` match `dev`: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Mobile changes are
JavaScript only. The native mobile sheet was typechecked but not
reviewed in a simulator.

## Copy audit — docs/copy.md §8

- “#123, title, branch, author or URL” → “Search or paste a link”: the
maintainer-requested short search hint retains the accessible “Find a
pull request” label.
- “Link by URL” → first result “Link #123” / “Link <url>”: verb-led
actions in sentence case; no duplicate input or permanent footer action.
- Visible “Current branch”, “Yours” and “Linked” text → labelled icons
(tooltips on web, accessible labels on mobile). Reserved space prevents
status changes from shifting the title. Long metadata uses truncation
and the shared compact age formatter.
- Existing connection/access/rate-limit messages and recovery actions
remain. No new glossary terms, jargon, humor, or color-only status cues.
Short/typical/long text was reviewed across desktop/phone and
light/dark. Audit checklist §8: sentence case and concise actions,
glossary unchanged, verb-led linking actions, actionable errors, concise
empty states, no duplicate status text, dependency recovery preserved,
no “soul” copy, long names checked, icon states have accessible labels.
nixuuu added a commit that referenced this pull request Nov 23, 2026
## Change

Type `#` or choose **+ → Mention** in the thread composer to search
Canopy threads, Jira Cloud and Linear issues, GitHub issues and GitHub
pull requests. Search by key, title or URL. In a GitHub workspace,
`#123` prioritizes the matching issue or pull request from that
repository. A prompt can reference several results together.

The gateway searches connector accounts granted to the project or the No
project scope and checks access again when submitting a mention. Agents
receive the selected item's type, key, title, link and available status
and description. Selecting a pull request leaves linking it to the
thread as a separate action.

## Verification

- Passed 22 domain tests, 9 tracker adapter tests and 3 gateway
integration tests. The integration tests exercised linked gateways,
owner scoping, grant revocation and delivery to the worker.
- Checked search, keyboard selection and sending in Chromium at 1152 and
390 px. Checked selecting and sending an issue, a pull request and a
thread on an Android emulator.
- Gateway, web and mobile typechecks and targeted lint passed.
Regenerated the protobuf bindings.
- Copy audit (§8) passed. Changed the thread-only menu action to
**Mention** because it now searches three result groups. The picker
labels each group and shows **PR** on pull request chips.
- Runtime verification used simulated MCP or RPC responses. Live tracker
accounts and iOS still need validation. Repository-wide checks run in
CI.
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