mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #22073] [CLOSED] feat: create subfolder directly with the folder management button #42093
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22073
Author: @silenceroom
Created: 3/1/2026
Status: ❌ Closed
Base:
dev← Head:feature/folders-parent-id📝 Commits (3)
d82199dfeat: add parent_id support for nested folders129a9adfix: use folder.id instead of id when deleting subfoldersad27ea3i18n: add translation for Create Subfolder📊 Changes
9 files changed (+74 additions, -11 deletions)
View changed files
📝
backend/open_webui/models/folders.py(+1 -0)📝
backend/open_webui/routers/folders.py(+3 -3)📝
src/lib/apis/folders/index.ts(+1 -0)📝
src/lib/components/layout/Sidebar.svelte(+13 -6)📝
src/lib/components/layout/Sidebar/Folders/FolderMenu.svelte(+12 -0)📝
src/lib/components/layout/Sidebar/Folders/FolderModal.svelte(+3 -1)📝
src/lib/components/layout/Sidebar/RecursiveFolder.svelte(+39 -1)📝
src/lib/i18n/locales/en-US/translation.json(+1 -0)📝
src/lib/i18n/locales/zh-CN/translation.json(+1 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Added
parent_idfield to FolderForm model (backend)parent_idsupport in FolderForm TypeScript type (frontend)Changed
form_data.parent_idinstead of hardcodedNoneFixed
folder.idinstead of originalidwhen deleting subfoldersBreaking Changes
Additional Information
Screenshots or Videos
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.