open-webui/backend/open_webui
Classic298 1f059fe730
feat: Prompts Atomic PR of #20243 (#20368)
* feat: Add read-only access support for Prompts

- Backend: Add write_access field to PromptAccessResponse
- Backend: Update /prompts/list to return prompts with write_access
- Frontend: Display Read Only badge in Prompts list
- Frontend: Disable inputs and save button when no write access

* feat: Add read-only visual indicators for Prompts workspace

* fix: Return write_access from getPromptByCommand endpoint

- Backend returns write_access directly in response
- Frontend extracts write_access from getPromptByCommand response
- Remove inefficient getPromptList call in edit page

* fix: Align Read Only badge to right in Prompts.svelte

- Title and command stay on left
- Badge pushed to right by justify-between

* fix: Use PromptAccessResponse in get_prompt_by_command endpoint

fix: Use PromptAccessResponse in get_prompt_by_command endpoint

- Return PromptAccessResponse Pydantic model instead of raw dict
- Properly type the response with response_model
2026-01-05 04:36:13 +04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac: get_db_context 2026-01-05 03:46:40 +04:00
migrations feat: chat_file table 2025-12-21 23:17:53 +04:00
models feat: Prompts Atomic PR of #20243 (#20368) 2026-01-05 04:36:13 +04:00
retrieval feat: Add configurable DDGS backend selection with UI support (#20366) 2026-01-05 03:05:56 +04:00
routers feat: Prompts Atomic PR of #20243 (#20368) 2026-01-05 04:36:13 +04:00
socket fix: prevent get_user_ids_from_room crash on missing session (#20271) 2025-12-31 17:39:22 +04:00
static refac 2025-08-10 00:02:58 +04:00
storage chore/perf: Remove old SRC level log env vars with no impact (#20045) 2025-12-20 08:16:14 -05:00
test rm: outdated tests 2025-12-28 23:35:09 +04:00
utils refac 2026-01-05 03:46:46 +04:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: Add configurable DDGS backend selection with UI support (#20366) 2026-01-05 03:05:56 +04:00
constants.py feat/enh: optional password validation 2025-11-20 17:44:49 -05:00
env.py refac 2026-01-03 18:47:12 +04:00
functions.py chore/perf: Remove old SRC level log env vars with no impact (#20045) 2025-12-20 08:16:14 -05:00
main.py feat: Add configurable DDGS backend selection with UI support (#20366) 2026-01-05 03:05:56 +04:00
tasks.py chore/perf: Remove old SRC level log env vars with no impact (#20045) 2025-12-20 08:16:14 -05:00