[PR #16081] [CLOSED] feat: Add Archive All Chats button to archived chats modal #39656

Closed
opened 2026-04-25 12:09:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/16081
Author: @silentoplayz
Created: 7/28/2025
Status: Closed

Base: devHead: feat/archive-all-chats-button


📝 Commits (2)

  • 4f98be9 feat: Add 'Archive All Chats' button to archived chats modal
  • b225c39 fix: archive all chats for chats in folders

📊 Changes

2 files changed (+59 additions, -2 deletions)

View changed files

📝 backend/open_webui/models/chats.py (+19 -1)
📝 src/lib/components/layout/ArchivedChatsModal.svelte (+40 -1)

📄 Description

Pull Request Checklist

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • This pull request introduces a new button to allow users to archive all their non-archived conversations at once. This includes adding a new API call, a confirmation dialog, and updating the chat list store accordingly. This enhances chat management capabilities by providing a bulk action for archiving.

Added

  • Added functionality to "Archive All Chats" from within the ArchivedChatsModal.
  • New API endpoint archiveAllChats for bulk archiving of active chats.
  • ArchiveAllConfirmDialog component for confirming the "Archive All Chats" action.
  • A new button in the ArchivedChatsModal footer: "Archive All Chats".
  • Imports for $app/navigation, $lib/stores (chats, scrollPaginationEnabled, currentChatPage), and new API functions (archiveAllChats, getChatList).
  • State variable showArchiveAllConfirmDialog to control the visibility of the new confirmation dialog.
  • archiveAllChatsHandler function to manage the logic for archiving all chats, updating the main chat list, and resetting pagination.

Changed

  • Reordered the buttons within the ArchivedChatsModal footer to place "Archive All Chats" first.
  • The ArchivedChatsModal now serves as a central point for both unarchiving all archived chats and archiving all active chats.

Additional Information

  • This feature provides users with a convenient way to clean up or organize their active chat list by moving all conversations into the archived section with a single action.
  • The currentChatPage, chats, and scrollPaginationEnabled stores are updated after archiving all chats to ensure the main chat list reflects the changes immediately and correctly.

Screenshots or Videos

image image

Screencast from 2025-07-27 21-49-38.webm

Screencast from 2025-07-27 22-44-04.webm

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/16081 **Author:** [@silentoplayz](https://github.com/silentoplayz) **Created:** 7/28/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/archive-all-chats-button` --- ### 📝 Commits (2) - [`4f98be9`](https://github.com/open-webui/open-webui/commit/4f98be91ca4a056e9cd233bad26697092e5cc6cd) feat: Add 'Archive All Chats' button to archived chats modal - [`b225c39`](https://github.com/open-webui/open-webui/commit/b225c39fb6b9d04a962b313d98582fa515f2813b) fix: archive all chats for chats in folders ### 📊 Changes **2 files changed** (+59 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/models/chats.py` (+19 -1) 📝 `src/lib/components/layout/ArchivedChatsModal.svelte` (+40 -1) </details> ### 📄 Description # Pull Request Checklist **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Please verify that the pull request targets the `dev` branch. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Have you written and run sufficient tests to validate the changes? - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - This pull request introduces a new button to allow users to archive *all* their non-archived conversations at once. This includes adding a new API call, a confirmation dialog, and updating the chat list store accordingly. This enhances chat management capabilities by providing a bulk action for archiving. ### Added - Added functionality to "Archive All Chats" from within the `ArchivedChatsModal`. - New API endpoint `archiveAllChats` for bulk archiving of active chats. - `ArchiveAllConfirmDialog` component for confirming the "Archive All Chats" action. - A new button in the `ArchivedChatsModal` footer: "Archive All Chats". - Imports for `$app/navigation`, `$lib/stores` (`chats`, `scrollPaginationEnabled`, `currentChatPage`), and new API functions (`archiveAllChats`, `getChatList`). - State variable `showArchiveAllConfirmDialog` to control the visibility of the new confirmation dialog. - `archiveAllChatsHandler` function to manage the logic for archiving all chats, updating the main chat list, and resetting pagination. ### Changed - Reordered the buttons within the `ArchivedChatsModal` footer to place "Archive All Chats" first. - The `ArchivedChatsModal` now serves as a central point for both unarchiving all archived chats and archiving all active chats. ### Additional Information - This feature provides users with a convenient way to clean up or organize their active chat list by moving all conversations into the archived section with a single action. - The `currentChatPage`, `chats`, and `scrollPaginationEnabled` stores are updated after archiving all chats to ensure the main chat list reflects the changes immediately and correctly. ### Screenshots or Videos <img width="974" height="328" alt="image" src="https://github.com/user-attachments/assets/ad3aec90-4ca8-4b16-aa7b-401506f4c947" /> <img width="948" height="365" alt="image" src="https://github.com/user-attachments/assets/548fb8fb-76ee-4c86-a054-ccc92c5aa7b7" /> [Screencast from 2025-07-27 21-49-38.webm](https://github.com/user-attachments/assets/988ec358-ddb3-4ddb-a646-edcadefa31fe) [Screencast from 2025-07-27 22-44-04.webm](https://github.com/user-attachments/assets/cf1f0c88-3ba4-4bd3-a98f-ca22d2ba8320) ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 12:09:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#39656