Repository navigation
Offer signing in or an API key at setup, either one enough - #290
Merged
Merged
Conversation
A new install where sign-in is configured saw only Sign In: pasting a key
was treated as the legacy path and its row hidden. Teams rolling Blurt out
share one key rather than adding every member to their AssemblyAI account,
so they were sent back to old releases to get past setup.
- CredentialRows is now the layout itself: .choice, .keyRow, .accountRow.
Nothing connected gives one "Connect to AssemblyAI" row with Use API Key…
beside a filled Sign In… ("Sign in, or use an API key. Either works."),
instead of two rows that read as two steps.
- Once connected, only the way in use shows: a pasted key's row alone (a
Sign In… beside it read as a step still to do), or the signed-in account.
- The choice row's wording lives in the engine beside APIKeyDisplay's; the
setup header and the key sheet no longer say a key or a sign-in is required.
- A settled decision and guardrail keep pasting a key from being dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alexkroman
force-pushed
the
setup-key-or-sign-in
branch
from
November 3, 2026 21:47
ebd4da4 to
e56ea22
Compare
alexkroman
enabled auto-merge (squash)
November 3, 2026 22:07
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
Where sign-in is configured (every release build since #265), a new install saw only Sign In: pasting an API key was treated as the legacy path and its row was hidden. Teams rolling Blurt out share one key rather than adding every member, engineer or not, to their AssemblyAI account. They were installing an old release to get past setup, and worried the key path would be dropped entirely.
What
Setup offers both, as one choice. With nothing connected, the AssemblyAI section is a single row:
Sign In… stays the filled, recommended action; Use API Key… opens the existing key sheet. One row with two buttons reads as pick one; the earlier two-row layout read as two steps.
Once connected, only the way in use shows. A pasted key gets its key row alone (••••4eab, Change…). A Sign In… beside it read as an unfinished step. Signed in shows "Signed in as …" and Sign Out, as before.
Under the hood
CredentialRowsis now the layout itself:.choice,.keyRow(connectIsPrimary:)or.accountRow. The view switches on it instead of recombining flags, and the rule is unit-tested.APIKeyDisplay's.Trade-off: a user who pasted a key can't switch to sign-in from this screen. If that's ever wanted, it belongs in the Change… sheet.
Testing
swift test(1002 tests),check-invariants.sh, and a Debug app build pass on this branch alone; the fullscripts/check.shpassed on the combined working tree..choicerow has no UI-test coverage.🤖 Generated with Claude Code