Commit eed01bf
authored
Enable Return for onboarding proceed actions (#10464)
## What changed and why
Made Return the default action for visible onboarding setup and Continue
controls, including the active Second Brain flow, legacy conversational
onboarding, and file-index completion.
## Product invariants affected
none
## How it was verified
- `xcrun swift build -c debug --package-path Desktop --scratch-path
/tmp/omi-onboarding-return-build.dFb1iG` — passed.
- `./scripts/swiftlint-wrapper.sh lint` — passed with 0 violations.
- `./scripts/swift-format-wrapper.sh lint` on the five changed Swift
files — passed.
- `python3 scripts/check_desktop_test_quality.py` — passed.
- Built and launched the isolated ad-hoc signed bundle
`/Applications/omi-onboarding-return.app`; its automation bridge
responded on port 47817. The copied profile was signed out, so
onboarding could not be driven without interactive sign-in.
- `xcrun swift test --package-path Desktop --scratch-path
/tmp/omi-onboarding-return-build.dFb1iG --filter OnboardingFlowTests` is
blocked before execution by unrelated existing test-target compilation
errors in `RealtimeHubSessionHandoffPolicyTests` and
`RealtimeVoiceContextSingleFlightTests`.
## Tests
Added
`OnboardingFlowTests.testOnboardingProceedActionsUseDefaultActionKeyboardShortcut`,
a static SwiftUI wiring tripwire for every onboarding proceed action.
## Failure class (fixes)
Failure-Class: none
## New guards (only when adding a check or ratchet)
The regression tripwire is tied to this user-reported onboarding
failure. It is not a shared primitive because it verifies a finite set
of onboarding-specific controls, including dynamically shown Continue
actions.
<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10464?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->6 files changed
Lines changed: 73 additions & 9 deletions
File tree
- desktop/macos
- Desktop
- Sources
- FileIndexing
- MainWindow/SecondBrain
- Onboarding
- SecondBrain
- Tests
- changelog/unreleased
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
108 | 123 | | |
109 | 124 | | |
110 | 125 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
463 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| |||
493 | 496 | | |
494 | 497 | | |
495 | 498 | | |
496 | | - | |
| 499 | + | |
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
| |||
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
525 | | - | |
| 528 | + | |
526 | 529 | | |
527 | 530 | | |
528 | 531 | | |
| |||
544 | 547 | | |
545 | 548 | | |
546 | 549 | | |
547 | | - | |
| 550 | + | |
548 | 551 | | |
549 | 552 | | |
550 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
390 | 428 | | |
391 | 429 | | |
392 | 430 | | |
| |||
440 | 478 | | |
441 | 479 | | |
442 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
443 | 485 | | |
444 | 486 | | |
445 | 487 | | |
446 | | - | |
447 | | - | |
| 488 | + | |
| 489 | + | |
448 | 490 | | |
449 | 491 | | |
450 | 492 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments