Skip to content

feat(ui): edit a saved scope in the app Settings#77

Merged
ErikChevalier merged 1 commit into
mainfrom
feat/lens-editing
Jun 10, 2026
Merged

feat(ui): edit a saved scope in the app Settings#77
ErikChevalier merged 1 commit into
mainfrom
feat/lens-editing

Conversation

@ErikChevalier

Copy link
Copy Markdown
Contributor

Final parity item. The app could only create or delete scopes (lenses); the browser Settings page already renders an editable pre-filled form per scope. This brings the app to parity.

Change

  • Each scope row in the app Settings gets an Edit button that opens the scope dialog pre-filled with its name, include/exclude domains, and include/exclude keywords.
  • Saving upserts by name (existing SettingsViewModel.saveLens), so an edit replaces the scope in place. Dialog title reads "Edit" when editing, "Add scope" when creating.

Verified

The Edit buttons render on every scope row (screenshot-checked when SearchMob was foregrounded). I couldn't capture the full tap-through of the pre-filled dialog because a second agent was driving the same emulator and kept stealing foreground (my Edit tap once landed in its unrelated Chrome tab — I did not interact with it). The pre-fill is straightforward Compose state seeded from the existing lens; ktlint + app unit tests pass.

Note on the web side

The investigation flagged "lens edit" as missing on both surfaces, but the browser Settings page already renders a pre-filled lensForm(lens) per scope (each is editable, upserting by name). So only the app needed this; no web change.

🎉 Parity epic complete

With this, the app GUI ↔ web UI parity work is done: web Settings gained language + media/history/update-check toggles (#71), personalization controls (#73), and per-engine toggles (#74); the app gained the domain-rule add form (#75), the summary thumbnail (#76), and now scope editing. (BYO API keys and the network-mode toggle remain intentionally app-only, per your security call.)

🤖 Generated with Claude Code

The app could only create or delete scopes (lenses); each had a Delete button
but no way to adjust it. The browser Settings page already renders a pre-filled
form per scope (editable in place). Bring the app to parity: add an Edit button
on each scope row that opens AddLensDialog pre-filled with that scope's name,
include/exclude domains, and include/exclude keywords; saving upserts by name
(via the existing SettingsViewModel.saveLens), so an edit replaces the scope in
place. The dialog title reads "Edit" when editing, "Add scope" when creating.

Verified the Edit buttons render on every scope row in the app Settings
(screenshot). Full tap-through of the pre-filled dialog wasn't captured because a
second agent was driving the same emulator and kept stealing foreground; the
pre-fill is straightforward Compose state seeded from the existing lens, and
ktlint + app unit tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ErikChevalier ErikChevalier merged commit 52b18f0 into main Jun 10, 2026
2 checks passed
@ErikChevalier ErikChevalier deleted the feat/lens-editing branch June 10, 2026 07:34
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