mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[PR #2499] [CLOSED] feat: add configurable notification banners #108330
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/2499
Author: @cheahjs
Created: 5/22/2024
Status: ❌ Closed
Base:
banners← Head:feat/notification-banner📝 Commits (2)
4c428fffeat: add configurable notification banners09a62e1fix: run i18next📊 Changes
43 files changed (+555 additions, -1 deletions)
View changed files
📝
backend/apps/web/main.py(+2 -0)📝
backend/apps/web/routers/configs.py(+24 -0)📝
backend/config.py(+19 -0)📝
src/lib/apis/configs/index.ts(+58 -0)➕
src/lib/components/admin/Settings/Banners.svelte(+128 -0)📝
src/lib/components/admin/SettingsModal.svelte(+35 -0)📝
src/lib/components/chat/Chat.svelte(+5 -0)➕
src/lib/components/common/Banner.svelte(+33 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+7 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+7 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+7 -0)📝
src/lib/i18n/locales/ca-ES/translation.json(+7 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+7 -0)📝
src/lib/i18n/locales/dg-DG/translation.json(+7 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+7 -0)📝
src/lib/i18n/locales/en-US/translation.json(+7 -0)📝
src/lib/i18n/locales/es-ES/translation.json(+7 -0)📝
src/lib/i18n/locales/fa-IR/translation.json(+7 -0)📝
src/lib/i18n/locales/fi-FI/translation.json(+7 -0)📝
src/lib/i18n/locales/fr-CA/translation.json(+7 -0)...and 23 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Adds banners that are persisted into config.json. These can be configured with:
content- the plaintext to displaytype- background of bannerinfo- bluewarning- yellowerror- redsuccess- greendismissible- can the user dismiss the banner. stored in localstorage, indexed by the content string.Banners are set up to be only available to logged in users, as banners may contain sensitive information that shouldn't be publicly accessible.
Added
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.