feat: align notifications with shared UI foundations
This commit is contained in:
@@ -13,6 +13,7 @@ from govoplan_core.core.modules import (
|
|||||||
ModuleInterfaceProvider,
|
ModuleInterfaceProvider,
|
||||||
ModuleManifest,
|
ModuleManifest,
|
||||||
PermissionDefinition,
|
PermissionDefinition,
|
||||||
|
ProductAreaContribution,
|
||||||
RoleTemplate,
|
RoleTemplate,
|
||||||
)
|
)
|
||||||
from govoplan_core.core.provider_governance import declared_module_architecture
|
from govoplan_core.core.provider_governance import declared_module_architecture
|
||||||
@@ -155,6 +156,17 @@ manifest = ModuleManifest(
|
|||||||
surface_id="notifications.route.notifications",
|
surface_id="notifications.route.notifications",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
product_areas=(
|
||||||
|
ProductAreaContribution(
|
||||||
|
id="communication",
|
||||||
|
module_id=MODULE_ID,
|
||||||
|
label="i18n:govoplan-core.product_area.communication",
|
||||||
|
icon="mail",
|
||||||
|
description="i18n:govoplan-core.product_area.communication_description",
|
||||||
|
surface_ids=("notifications.route.notifications",),
|
||||||
|
order=40,
|
||||||
|
),
|
||||||
|
),
|
||||||
view_surfaces=(
|
view_surfaces=(
|
||||||
ViewSurface(
|
ViewSurface(
|
||||||
id="notifications.page.inbox",
|
id="notifications.page.inbox",
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.notifications-message p {
|
.notifications-message p {
|
||||||
max-width: 840px;
|
max-width: 900px;
|
||||||
margin: 0 0 14px;
|
margin: 0 0 14px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
width: max-content;
|
width: max-content;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 14px 0 0;
|
margin: 14px 0 0;
|
||||||
border-radius: 6px;
|
border-radius: var(--radius-compact);
|
||||||
background: var(--danger-soft);
|
background: var(--danger-soft);
|
||||||
color: var(--danger-text);
|
color: var(--danger-text);
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
@@ -233,7 +233,7 @@
|
|||||||
grid-template-columns: minmax(0, 1fr) auto;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
gap: 3px 12px;
|
gap: 3px 12px;
|
||||||
border: var(--border-line);
|
border: var(--border-line);
|
||||||
border-radius: 6px;
|
border-radius: var(--radius-compact);
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.notifications-permission-state {
|
.notifications-permission-state {
|
||||||
max-width: 860px;
|
max-width: 900px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 32px 20px;
|
padding: 32px 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user