Skip to content

RepeaterBook search: make "select all" visibly work (#167) - #179

Merged
ww8l merged 1 commit into
mainfrom
fix-167-rb-select-all
Dec 4, 2026
Merged

ww8l merged 1 commit into
mainfrom
fix-167-rb-select-all

Conversation

@ww8l

@ww8l ww8l commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Closes #167.

Cause (from a screenshot of the dev app): select-all took only the repeaters not yet imported. In a Michigan search those sat below the fold, under rows already in the library, so the header box ticked while every row on screen stayed blank.

Changes (RepeaterBookDialog.tsx, rb_api.rs)

  • After select-all, the first row it took is scrolled into view.
  • When every row is already imported, select-all takes them to refresh. Before, it sat disabled while the rows themselves could still be ticked.
  • Already-imported rows are never mixed into a select-all of new ones. Re-importing overwrites RepeaterBook-owned fields (offset, duplex, mode), which would lose hand edits unasked.
  • Select-all works off unique ids, and a search keeps one row per repeaterbook_id. A repeated id stopped the box from ever reading as checked or being cleared. It's not known whether RepeaterBook actually sends duplicates; this is defensive. There's a new Rust test for it.

Verified

  • npm run ci passes locally.
  • An interim version was checked in the dev app against a live Michigan search, and it worked.
  • The final version (new rows only, then scroll) was checked only in a stubbed-IPC browser harness: 469 rows, 440 already imported, so 29 were ticked and scrolled into view.

No release for this one.

🤖 Generated with Claude Code

Select-all took only the repeaters not yet imported. When those sat below
the fold, under rows already in the library, the header box ticked and
every row on screen stayed blank, so it looked like nothing happened.

- After select-all, the first row it took is scrolled into view.
- When every row is already imported, select-all takes them to refresh
  instead of sitting disabled while the rows themselves stay tickable.
- Already-imported rows are never mixed into a select-all of new ones:
  re-importing overwrites RepeaterBook-owned fields (offset, duplex,
  mode), so that would lose hand edits unasked.
- Select-all works off unique ids, and a search keeps one row per
  repeaterbook_id (filter_records), so a repeated id can no longer stop
  the box from reading as checked or being cleared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ww8l
ww8l merged commit 1a3be09 into main Dec 4, 2026
3 checks passed
@ww8l
ww8l deleted the fix-167-rb-select-all branch December 4, 2026 18:18
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.

Repeaterbook import bug

1 participant