page_help.py 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. """Stage 15.7 operation-aware contextual help owned by Onboarding."""
  2. from django.utils.translation import gettext_lazy as _
  3. PAGE_HELP_CONTRIBUTIONS = {
  4. "sharix_onboarding:partner": {
  5. "purpose": _("Choose the business meaning of the Service Partner without duplicating legacy boolean switches."),
  6. "terms": ("partner", "service", "relationship"),
  7. "workflow": (
  8. _("Choose whether the Service Operator is also the Partner or the Partner is a separate organization."),
  9. _("If an old project cannot be mapped unambiguously, confirm the choice before freeze."),
  10. _("Materialization uses the normal Company/Relationship/Permission lifecycle; this step does not grant access directly."),
  11. ),
  12. "operations": ({
  13. "id": "choose_partner_mode",
  14. "title": _("Choose Partner mode"),
  15. "description": _("Select one semantic Partner relationship and provide separate organization details only when needed."),
  16. "result": _("The project JSON is updated; no production Company is created yet."),
  17. },),
  18. },
  19. "sharix_onboarding:requirements": {
  20. "purpose": _("Define additional eligibility requirements with an explicit owner and reusable check/document definition when available."),
  21. "terms": ("requirement", "check", "document", "permission"),
  22. "workflow": (
  23. _("Choose who the requirement applies to, then choose its type."),
  24. _("For category-specific requirements select the category; for reusable checks/documents select an existing definition when appropriate."),
  25. _("If the referenced definition disappears before materialization, return to this step and revalidate the choice."),
  26. ),
  27. "operations": ({
  28. "id": "edit_requirement",
  29. "title": _("Add or edit an additional requirement"),
  30. "description": _("Store structured owner/type/reference data instead of an ambiguous free-form subject."),
  31. "result": _("Only the onboarding project changes until materialization."),
  32. },),
  33. },
  34. "sharix_onboarding:modules": {
  35. "purpose": _("Map each required service capability to an implementation while keeping module availability and software license as separate facts."),
  36. "terms": ("service", "integration", "requirements", "activity_status"),
  37. "workflow": (
  38. _("Read what the capability provides and why the current project requires it."),
  39. _("Compare the implementing module purpose, runtime status, repository visibility and verified license identity from canonical Sysadmin metadata."),
  40. _("If an optional or closed module is unavailable, choose a documented fallback, defer the capability or use a custom/external implementation instead of blocking design."),
  41. ),
  42. "operations": (
  43. {
  44. "id": "choose_capability_implementation",
  45. "title": _("Choose capability implementation"),
  46. "description": _("Select one currently valid implementation for each derived capability."),
  47. "result": _("The implementation resolution is stored in the onboarding project; no module is installed by this action."),
  48. },
  49. {
  50. "id": "open_sysadmin_modules",
  51. "title": _("Open module management"),
  52. "description": _("Use Sysadmin when a selected optional implementation must be configured or installed."),
  53. "result": _("Sysadmin owns installation/configuration; return to onboarding after the module is loaded."),
  54. },
  55. ),
  56. "empty_state": _("If no additional capability is required, continue without selecting optional modules."),
  57. },
  58. "sharix_onboarding:module_config": {
  59. "purpose": _("Configure only module-owned onboarding settings contributed by modules that are actually loaded in the current assembly."),
  60. "terms": ("service", "integration", "requirements", "activity_status"),
  61. "workflow": (
  62. _("Review the canonical module identity/status before editing its project-specific settings."),
  63. _("A selector with no available choices is not a valid value; check earlier project choices and the module configuration instead of inventing an identifier."),
  64. _("When a loaded contribution offers a preview, it renders the current unsaved form values through the owning module's Document Engine contract without materializing production objects."),
  65. _("Legacy module values that no longer participate in production output must be migrated through the owning module's documented replacement rather than silently previewed as active data."),
  66. _("For ordered repeatable sections, use Move up/Move down. The submitted order is stored through Django formset ORDER and survives validation re-render."),
  67. _("Saving changes only the onboarding project file; production objects are written later by materialization."),
  68. ),
  69. "operations": (
  70. {
  71. "id": "preview_module_configuration",
  72. "title": _("Preview module-specific draft"),
  73. "description": _("Render a supported draft preview from the values currently entered on the page."),
  74. "result": _("The preview is shown in-page; the onboarding project and production Documents remain unchanged."),
  75. },
  76. {
  77. "id": "reorder_module_configuration_rows",
  78. "title": _("Reorder module-owned rows"),
  79. "description": _("Move an ordered row up or down without editing its hidden stable identity."),
  80. "result": _("The saved project keeps the new row order while stable public_id/technical code values remain unchanged."),
  81. },
  82. {
  83. "id": "save_module_configuration",
  84. "title": _("Save module-specific settings"),
  85. "description": _("Validate and store the settings contributed by the loaded module."),
  86. "result": _("The project configuration is updated without performing production materialization."),
  87. },
  88. ),
  89. "empty_state": _("If no loaded module contributes settings for the selected capabilities, continue with the documented base/fallback design or return to Modules to inspect the expected module."),
  90. },
  91. "sharix_onboarding:existing_create": {
  92. "purpose": _("Create a safe local project from an existing Service without changing production state."),
  93. "terms": ("service", "service_admin", "service_category", "tariff"),
  94. "workflow": (
  95. _("Choose only a Service already visible to the current actor."),
  96. _("Onboarding records an actor-scoped runtime baseline with stable source references."),
  97. _("Continue through the ordinary editor; production objects remain unchanged until explicit Apply."),
  98. ),
  99. "operations": ({
  100. "id": "create_existing_snapshot",
  101. "title": _("Create existing-Service snapshot"),
  102. "description": _("Read the current ServiceCategory and Tariffs inside the current metaservice/actor scope."),
  103. "result": _("A local schema-v4 project is created with an immutable baseline; no domain object is written."),
  104. },),
  105. "empty_state": _("If no Service is available, the current actor has no existing Service inside the configured metaservice that this workflow may edit."),
  106. },
  107. "sharix_onboarding:existing_impact": {
  108. "purpose": _("Review baseline, current runtime and desired project state before applying changes to a running Service."),
  109. "terms": ("service", "service_category", "tariff", "ticket"),
  110. "workflow": (
  111. _("Review the normalized impact list and any concurrent runtime conflicts."),
  112. _("If runtime changed, use explicit rebase and review again instead of overwriting it."),
  113. _("Apply uses the canonical ServiceCategory/Tariff forms and their existing approval lifecycle."),
  114. _("Approval-required changes create normal Tickets; reviewer capability never causes silent auto-approval."),
  115. ),
  116. "operations": (
  117. {
  118. "id": "rebase_existing_service",
  119. "title": _("Rebase existing-Service project"),
  120. "description": _("Accept the current runtime snapshot as the new baseline while retaining project edits for another review."),
  121. "result": _("The project baseline changes; production objects are still unchanged."),
  122. },
  123. {
  124. "id": "apply_existing_service",
  125. "title": _("Apply existing-Service changes"),
  126. "description": _("Revalidate actor scope, lock and reread runtime, then submit supported changes through canonical domain forms."),
  127. "result": _("Existing objects are updated without duplication; normal approval Tickets and review links are shown when created."),
  128. },
  129. ),
  130. },
  131. "sharix_onboarding:review": {
  132. "purpose": _("Review the complete onboarding design and freeze only a semantically resolved project."),
  133. "terms": ("service", "partner", "requirement"),
  134. "workflow": (
  135. _("Resolve migration attention and existing module/contribution validation warnings before freeze."),
  136. _("Freeze records an approved revision/hash; production objects still do not exist until materialization."),
  137. ),
  138. "operations": ({
  139. "id": "freeze_project",
  140. "title": _("Freeze onboarding project"),
  141. "description": _("Approve the current semantic design revision for later materialization."),
  142. "result": _("The approved revision/hash is stored in the project file."),
  143. },),
  144. },
  145. }