Skip to content

feat(ui): build bulk snippet management interface with move, export, and delete workflows (#212) - #230

Closed
jeffrey-graham wants to merge 1 commit into
SudiptaPaul-31:mainfrom
jeffrey-graham:feat/bulk-snippet-management-ui-212
Closed

jeffrey-graham wants to merge 1 commit into
SudiptaPaul-31:mainfrom
jeffrey-graham:feat/bulk-snippet-management-ui-212

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Summary

Builds a responsive, keyboard-accessible bulk snippet management UI (BulkSnippetManager) supporting multi-select, move-to-folder, bulk export, and destructive bulk deletion with confirmation dialogs.

Key Changes

  • Bulk Snippet Manager (components/snippets/BulkSnippetManager.tsx):
    • Individual snippet selection checkboxes, Select All toggle, visual selection indicators (data-selected), and live selected-item counter (aria-live="polite").
    • Preserves selection state while filtering across folders.
    • Sticky Bulk Action Toolbar (Move to Folder, Export with JSON/Markdown selector, Delete, and Clear Selection) appearing when 1 or more snippets are selected.
    • Permission-aware action states (Move to Folder and Delete disabled when only unauthorized snippets are selected; read-only folders disabled in destination selector).
    • Modal confirmation dialog (Delete N Snippets? This action cannot be undone.) for destructive deletes and destination selector modal (Move N Snippets) for moves.
    • Partial failure handling that retains failed item selections and surfaces actionable error alerts.
  • Automated Tests (components/snippets/__tests__/BulkSnippetManager.test.tsx):
    • Covers single/multiple selection, select-all, counter updates, folder filter navigation, bulk move dialog, bulk export, delete confirmation dialog, unauthorized selection handling, partial failures, and empty/loading states.

Closes #212

@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

@jeffrey-graham is attempting to deploy a commit to the Sudipta 's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Build Bulk Snippet Management UI

1 participant