Skip to content

feat(admin): library Poll / Force Update as a split button - #1002

Merged
ajslater merged 2 commits into
developfrom
vuetify-split-btn
Oct 29, 2026
Merged

ajslater merged 2 commits into
developfrom
vuetify-split-btn

Conversation

@ajslater

Copy link
Copy Markdown
Owner

Summary

The library table's Poll and Force Update icons become one Vuetify labs VSplitBtn: Poll is the button, Force Update its menu item.

  • Labs registration: vuetify({ autoImport: { labs: true } }), the same one-line change as vuetify-checkbox-groups, so whichever merges second applies cleanly.
  • ConfirmDialog controlled mode: a modelValue prop (default null, since Vue casts an absent Boolean prop to false and would flip all existing consumers). Bound, the dialog renders no activator and reports every close, scrim click and Escape included, through update:modelValue. Unbound, it works as before.
  • Library table: both confirmations sit outside the menu, controlled by the row, because the menu unmounts its content when it closes and would take a nested dialog with it. The split button uses density="comfortable" (28px in a group, the size of a lone compact icon) and a zero-padding toggle, and the action-cell dimming covers it.

Test plan

  • New specs: confirm-dialog (both modes, scrim/Escape close), library-table-poll (button confirms then polls, menu item confirms then force-polls, cancel runs nothing). The existing mark-read-button specs pass unchanged.
  • make lint, make test-frontend, make build-frontend pass.
  • Checked in the dev stack at desktop (md and xl) and phone width: icon sizes match the edit/delete icons, the Force Update dialog stays open after the menu closes, Escape dismisses cleanly. On phones the menu chevron is a small (15×20px) target.

🤖 Generated with Claude Code

ajslater and others added 2 commits October 29, 2026 14:47
Auto-import the labs components (VCheckboxGroup, VSplitBtn).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Experiment. Poll is the button and Force Update its one menu item. Both
confirmations sit outside the menu, which unmounts its content when it
closes, so ConfirmDialog gains a controlled mode: bound to a modelValue
it renders no activator and reports every close.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ajslater
ajslater merged commit 69fcd2b into develop Oct 29, 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