Skip to content

Online tagging: toolbar Review button instead of an auto-opening dialog - #970

Merged
ajslater merged 2 commits into
developfrom
tagging-review-button
Oct 8, 2026
Merged

ajslater merged 2 commits into
developfrom
tagging-review-button

Conversation

@ajslater

@ajslater ajslater commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

During a large online-tagging run, every deferred match reopened the Match Review dialog in every admin tab. Now the dialog never opens on its own. Admins get passive cues instead:

  • Toolbar Review button: a tonal amber "Review N" in the browser and reader top toolbars and the admin title bar. Phones show the icon and count only. Clicking it opens the dialog.
  • Tab-title count: the document title gets a "(N) " prefix, e.g. (3) Browse / Publishers, so a background tab shows waiting matches.
  • Hamburger dot removed: the amber dot carried no count and the button replaces it. The drawer's "N Matches to Review" item stays as a second path, and the red errors dot is unchanged.

N counts comics, not questions. A series-level prompt counts every issue it covers. pendingComicCount now lives in the store, so the drawer label, the button and the title always show the same number.

Notes

  • The button is a plain v-btn, not ScaleButton. On phones, compact density stacks with size="small" and the button measured 16px tall.
  • The reader button hides below 360px. Nothing else in that toolbar can shrink, so on narrower phones it pushed the hamburger off-screen (with a three-digit reading order it needs 360px). The drawer item still offers the review there.
  • NEWS gets a placeholder ## v2.5.4 section. pyproject.toml is not bumped.

Test plan

  • make lint
  • make test: vitest 984 passed, pytest 1662 passed + 1 known xfail
  • New review-button.test.js. online-tag-store.test.js adds no-auto-open, pendingComicCount and pendingTitle cases. The no-auto-open test fails when the old open branch is put back.
  • Real browser (dev stack, fresh DB, admin, stubbed prompts response):
    • a prompt notification leaves the dialog closed
    • "Review 3" at desktop width, icon + "3" at 375px and 320px with no horizontal scroll
    • hit tests land on the button and clicks open the dialog
    • the button shows on the Libraries, Tagging and Stats admin tabs
    • titles read (3) Browse / … and (3) Admin / …, and the prefix goes away when the queue empties
    • no amber dot; the red errors dot still renders
    • reader: the button shows and its click opens the dialog without paging or closing the book; at 360px with a "123 / 456" reading order the hamburger stays on-screen; at 320px the button is hidden and the hamburger is back

🤖 Generated with Claude Code

ajslater and others added 2 commits October 7, 2026 01:08
Every tag-prompt socket message ran loadPrompts() with auto-open on, so a
large tagging run reopened the Match Review dialog in every admin tab each
time the daemon deferred a match. The passive cues were weak: an uncounted
amber dot on the hamburger and a drawer item.

- loadPrompts() only ever closes the dialog now; it opens from a click.
- New OnlineTagReviewButton (tonal warning, "Review N", icon + count on
  phones) in the browser top toolbar and the admin title bar.
- app.vue head() prefixes the document title with "(N) " for admins, so a
  background tab shows the count.
- pendingComicCount moves into the store so the drawer label, the button
  and the title agree; the hamburger prompts dot is removed.

The button is a plain v-btn, not ScaleButton: compact density on xs stacks
with size="small" and measured 16px tall in the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the hamburger prompts dot gone, the reader had no passive cue for
matches waiting; only the drawer item and the (tab-only) title prefix.
Mount OnlineTagReviewButton after the reader toolbar's spacer, as in the
browser toolbar.

Nothing else in the reader top toolbar can shrink, so below 360px the
button pushed the settings button off-screen (a three-digit reading
order needs 360px with it, 302px without). Hide it under 360px; the
drawer item still offers the review there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ajslater
ajslater merged commit 42836c9 into develop Oct 8, 2026
9 checks passed
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