Skip to content

feat(history): select and delete multiple generations - #1244

Open
mansoour wants to merge 1 commit into
jamiepine:mainfrom
mansoour:feat/history-multi-select
Open

mansoour wants to merge 1 commit into
jamiepine:mainfrom
mansoour:feat/history-multi-select

Conversation

@mansoour

Copy link
Copy Markdown

What

Adds multi-select to the history list, so several generations can be deleted at once instead of one by one. Addresses #534.

How it works

  • A Select button sits above the list, next to "Clear failed" when that is shown.
  • In select mode each row gets a checkbox; clicking a row (or Enter/Space) toggles it instead of playing it. Rows that are still generating cannot be selected.
  • Select all shown selects the rows currently loaded in the list, Delete selected asks for confirmation, and Done leaves select mode.
  • Deletion uses the existing DELETE /history/{id} for each item, then refreshes the list and reports how many were deleted, and how many failed if any.
  • All new labels go through i18n (English added; other locales fall back to English as they do today).

Frontend only: HistoryTable.tsx and the English translation file.

Testing

  • bunx tsc -p app/tsconfig.json --noEmit passes; no new biome lint findings (the list's existing ones are unchanged).
  • The same change runs in my local Windows build.

Adds a Select mode to the history list: tick generations (or "Select
all shown") and delete them in one step after a confirmation. Rows that
are still generating cannot be selected. Clicking a row toggles it
while selecting, and the usual play behaviour returns with Done.

Uses the existing delete endpoint for each item and reports how many
were deleted (and any that failed). Labels go through i18n (English
added; other locales fall back to English).

Addresses jamiepine#534.

This branch has not been deployed

No deployments
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