Features: 1) Add STOREFRONT_DOMAIN to UNFOLD config; 2) Update sidebar to show all applications; 3) Rename Prometheus endpoint to /prometheus/metrics/;

Fixes: 1) Remove commented-out TABS config; 2) Set collapsible to False for menu;

Extra: 1) Add SITE_SYMBOL and SHOW_VIEW_ON_SITE; 2) Update SITE_URL to use STOREFRONT_DOMAIN; 3) Minor config cleanup.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-11-15 03:19:15 +03:00
parent e4bf40c48e
commit e9ccbace94
2 changed files with 7 additions and 16 deletions

View file

@ -90,7 +90,7 @@ The API supports multiple response formats:
## Health & Monitoring ## Health & Monitoring
- Health checks: `/health/` - Health checks: `/health/`
- Prometheus metrics (basic-auth protected): `/prometheus/` - Prometheus metrics: `/prometheus/metrics/`
## Version ## Version
Current API version: {EVIBES_VERSION} Current API version: {EVIBES_VERSION}

View file

@ -2,14 +2,17 @@ from django.templatetags.static import static
from django.urls import reverse_lazy from django.urls import reverse_lazy
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from evibes.settings.base import PROJECT_NAME, SUPPORT_CONTACT, TASKBOARD_URL from evibes.settings.base import PROJECT_NAME, STOREFRONT_DOMAIN, SUPPORT_CONTACT, TASKBOARD_URL
UNFOLD = { UNFOLD = {
"SITE_URL": STOREFRONT_DOMAIN,
"SITE_TITLE": f"{PROJECT_NAME} Dashboard", "SITE_TITLE": f"{PROJECT_NAME} Dashboard",
"SITE_HEADER": PROJECT_NAME, "SITE_HEADER": PROJECT_NAME,
"SITE_LOGO": "favicon.png", "SITE_LOGO": "favicon.png",
"SITE_ICON": "favicon.ico", "SITE_ICON": "favicon.ico",
"SITE_SYMBOL": "money",
"SHOW_LANGUAGES": True, "SHOW_LANGUAGES": True,
"SHOW_VIEW_ON_SITE": False,
"LOGIN": { "LOGIN": {
"image": lambda request: static("favicon.png"), "image": lambda request: static("favicon.png"),
}, },
@ -53,11 +56,12 @@ UNFOLD = {
}, },
"SIDEBAR": { "SIDEBAR": {
"show_search": True, "show_search": True,
"show_all_applications": True,
"navigation": [ "navigation": [
{ {
"title": _("Menu"), "title": _("Menu"),
"separator": True, "separator": True,
"collapsible": True, "collapsible": False,
"items": [ "items": [
{ {
"title": _("Dashboard"), "title": _("Dashboard"),
@ -98,17 +102,4 @@ UNFOLD = {
}, },
], ],
}, },
# "TABS": [
# {
# "models": [
# "core.product",
# ],
# "items": [
# {
# "title": _("Your custom title"),
# "link": reverse_lazy("admin:core_product_changelist"),
# },
# ],
# },
# ],
} }