Repository navigation
Chat: select several chats and delete them together; no empty band in the yes/no dialog - #434
Merged
Merged
Conversation
… the yes/no dialog The chat list gets a select mode: Select by the search box, Select in a chat's menu, or Shift-click / Cmd-click on a chat. Checkboxes are labelled inputs, Select all takes what the search shows, Cancel and Delete stay on screen, Escape leaves. Delete asks once and sends one request to POST /api/brain/threads/delete; failed chats stay selected. The shared Modal no longer draws an empty body between two rules, and the confirm dialog is a short sheet on a phone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lets you select several chats in the chat list and delete them together. Also fixes the empty band in the shared yes/no dialog ("Delete this chat?" and the other confirm dialogs that use it).
Needs CoderHelm/coderhelm-platform#728 (
POST /api/brain/threads/delete) deployed first.Changes
Modal). An empty body is no longer drawn, and the title row drops its rule when there is no body, so the text is followed by at most one rule and then the buttons. The confirm dialog now uses thesheetlayout: on a phone it is a short sheet at the bottom of the screen instead of a full, mostly empty screen. This applies to everyuseConfirmquestion.Verification
e2e/chat-bulk-delete.spec.ts, with every API call mocked. It covers:npm run typecheck,npm run lint, and the full e2e suite against the static build: every spec passed (1 skipped).