Repository navigation
Settings: choose which field is focused when the pills open - #116
Conversation
Adds a Default field setting (days, hours or minutes). The pills open on it for a start and for an extend. Hours stays the default, and a config from an earlier build keeps working.
Pre-landing review: #116 "Settings: choose which field is focused when the pills open"Tier: HIGH (7 files changed; one setting, read where the pills open; a persisted config key) What I checked
Findings[MEDIUM] Process: no real-Mac report yet for bfceef9, and the hand check you mention doesn't meet CONTRIBUTING's rule [MEDIUM] docs/releasing.md: no "Real-Mac checks before a release" item for this behavior [LOW] SettingsView.swift:136: tooltip uses "pill", which users don't see anywhere else [LOW] Config.swift:151: an unknown value is dropped without a log line [LOW] Model now depends on a UI type [LOW] ConfigTests: the saved names come from ConventionsThe commit message follows the repo's "Area: summary" style. The change has tests as CONTRIBUTING asks, and spec.md is updated in both places (settings list and pill behavior). Not done yet: the real-Mac report (above), and the owner's Not verified hereI couldn't run Status: DONE_WITH_CONCERNS (the code is ready; the open items are process and copy) Verdict: APPROVE on the code. Merging is up to the maintainer and the merge gate. |
…ed when the pills open
End-to-end test in a VM on macOS 27.0.1The new Default field setting works. With the default (Hours), typing 5 and Enter starts a 5 hour session, as on main. After choosing Days in Settings, the pills open with Days focused, and the same 5 and Enter starts a 5 day session. The choice is saved to SetupA Tart VM on the maintainer's Mac mini, macOS 27.0.1 (26A434) with Xcode 27.0. Each version was built from source and installed with Main (76e517d) against this PR's head (bfceef9). The script ( Results
The pills as they open, main, then this PR with Hours, then this PR with Days: After typing 5, with Hours and then with Days: The setting in Settings: Not covered
The full log is 🤖 Generated with Claude Code |
Conflicts: - SettingsView.swift: main added a Default field picker (krishhgg#116), the version line and the update check (krishhgg#117) to the old layout. They sit in General on the one page: Default field after Default session length, the version and the update check after Open at login, as main ordered them. releaseCheck is main's, unchanged. - InsomniaApp.swift: SettingsView without AnyView, as this branch has it, with main's ReleaseChecker passed in. - docs/spec.md: both edits to the presets line. Also from the merge: the Settings window test passes a ReleaseChecker, and main's "Settings > App" in README.md, docs and ReleaseCheck.swift reads "Settings > General", the section's name on the one page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>






Fixes #115.
Adds a "Default field" setting (Days, Hours or Minutes) under Settings → Session. The pills open on that field for a start and for an extend. Hours stays the default, and a config from an earlier build keeps working (an unknown value falls back to Hours). I also added it to the settings list in
docs/spec.md.Tests: the config default, an older config, saving by name and a bad value, and the pills opening on each field for a start and an extend. I ran the config and UI tests locally and left the full suite to CI.
By hand on a MacBook Pro (M1), macOS 27.0.1, in a build with #93 on top: the picker shows in Settings and the app works. I did not try macOS 26.


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Adds a “Default field” picker under Settings → Session.
Tests and visual checks were not run. This Linux environment cannot run the native macOS app.
Reviews (3) · Last reviewed commit: "Settings: choose which field is focused ..." · Reviewed by Greptile