docs: surface permission-gated Campaign tasks
This commit is contained in:
@@ -28,7 +28,7 @@ from govoplan_core.core.modules import (
|
||||
from govoplan_core.db.base import Base
|
||||
from govoplan_campaign.backend.change_tracking import register_campaign_change_tracking
|
||||
from govoplan_campaign.backend.db import models as campaign_models # noqa: F401 - populate Campaign ORM metadata
|
||||
from govoplan_campaign.backend.documentation import documentation_topics
|
||||
from govoplan_campaign.backend.documentation import CAMPAIGN_USER_DOCUMENTATION, documentation_topics
|
||||
|
||||
register_campaign_change_tracking()
|
||||
|
||||
@@ -263,6 +263,7 @@ manifest = ModuleManifest(
|
||||
),
|
||||
),
|
||||
documentation=(
|
||||
*CAMPAIGN_USER_DOCUMENTATION,
|
||||
DocumentationTopic(
|
||||
id="campaigns.mail-profile-user-journey",
|
||||
title="Choose a Mail profile for campaign delivery",
|
||||
@@ -289,6 +290,7 @@ manifest = ModuleManifest(
|
||||
"kind": "workflow",
|
||||
"route": "/campaigns/{campaign_id}/mail-settings",
|
||||
"screen": "Campaign Mail settings",
|
||||
"help_contexts": ["campaign.server-settings"],
|
||||
"prerequisites": [
|
||||
"Campaign and Mail are installed.",
|
||||
"You may edit the current campaign version and use at least one authorized Mail profile.",
|
||||
@@ -402,6 +404,19 @@ manifest = ModuleManifest(
|
||||
"kind": "workflow",
|
||||
"route": "/campaigns/{campaign_id}/global-settings",
|
||||
"screen": "Campaign workspace",
|
||||
"help_contexts": [
|
||||
"campaign.overview",
|
||||
"campaign.settings",
|
||||
"campaign.fields",
|
||||
"campaign.template",
|
||||
"campaign.attachments",
|
||||
"campaign.recipients",
|
||||
"campaign.recipient-data",
|
||||
"campaign.server-settings",
|
||||
"campaign.global-settings",
|
||||
"campaign.review-send",
|
||||
"campaign.json",
|
||||
],
|
||||
"prerequisites": [
|
||||
"The campaign has an owner and a clear communication purpose.",
|
||||
"You may edit, validate, and build the selected campaign version.",
|
||||
@@ -448,6 +463,7 @@ manifest = ModuleManifest(
|
||||
"kind": "workflow",
|
||||
"route": "/campaigns/{campaign_id}/review",
|
||||
"screen": "Review and send",
|
||||
"help_contexts": ["campaign.review-send"],
|
||||
"prerequisites": [
|
||||
"The selected campaign version is validated and built.",
|
||||
"You may read the campaign and complete its review.",
|
||||
@@ -491,6 +507,7 @@ manifest = ModuleManifest(
|
||||
"kind": "workflow",
|
||||
"route": "/operator",
|
||||
"screen": "Campaign operator queue",
|
||||
"help_contexts": ["campaign.review-send", "campaign.report", "campaign.audit"],
|
||||
"prerequisites": [
|
||||
"You may perform the selected retry or reconciliation action.",
|
||||
"Provider, mailbox, worker, and campaign evidence has been preserved.",
|
||||
|
||||
Reference in New Issue
Block a user