Skip to content

Conversation

@alhambrav
Copy link
Member

Ticket reference or full description of what's in the PR

Update the notifications config article craftercms/craftercms#7557

Copy link
Member

@sumerjabri sumerjabri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for v5.0.0? If so, we need to update the file to be last updated v5 and make this a draft PR.

@alhambrav alhambrav marked this pull request as draft June 5, 2025 14:17
@coderabbitai
Copy link

coderabbitai bot commented Sep 25, 2025

Summary by CodeRabbit

  • Documentation
    • Updated Notification Service Configuration documentation with new configuration paths and enhanced template examples.
    • Restructured notification templates with expanded context variables including site, target, schedule, and reviewer comments.
    • Improved documentation organization with collapsible sections for better navigation.
    • Updated version to 5.0.0 to reflect significant documentation improvements.

Walkthrough

Replaces references to notifications.xml with workflow/notification-config.xml, updates last_updated to 5.0.0, restructures and expands workflow notification configuration docs, and revises email/HTML notification templates with added fields, conditional publishPackage logic, and HTML <details>/<summary> wrappers.

Changes

Cohort / File(s) Summary of changes
Docs: Studio notifications config and templates
source/reference/modules/studio.rst
Bumped version to 5.0.0; replaced notifications.xml references with workflow/notification-config.xml; reworked Workflow Notifications Configuration section captions and code-block captions; added HTML <details>/<summary> wrappers; expanded and restructured notification templates (email/HTML) with new templates/keys (contentApproved, submittedForReview, contentRejected, contentConfigured), conditional publishPackage logic, and additional fields (site, target, schedule, reviewer comments); updated deploymentError and related caption blocks.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "Update the notifications config article #7557" is clear and specific, accurately reflecting the main change in the changeset. The raw summary confirms the pull request updates the notifications configuration documentation (source/reference/modules/studio.rst), introducing new notification templates and restructuring the workflow notifications section. The title is concise, avoids vague language, and directly communicates the primary objective to readers scanning the project history.
Description Check ✅ Passed The pull request description follows the required template structure by including the section heading "### Ticket reference or full description of what's in the PR" and providing both a clear description of the changes ("Update the notifications config article") and a direct reference to the related ticket (GitHub issue #7557). The description satisfies the template requirement with concise but sufficient information about the purpose of the pull request.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
source/reference/modules/studio.rst (2)

2961-2973: Fix path in caption (same inconsistency as above)

Use workflow/notification-config.xml to match the default property and actual location.

-    :caption: *CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/notification-config.xml*
+    :caption: *CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/workflow/notification-config.xml*

2984-3019: Fix path in caption (same inconsistency as above)

Align caption path with workflow/notification-config.xml.

-    :caption: *CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/notification-config.xml*
+    :caption: *CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/workflow/notification-config.xml*
🧹 Nitpick comments (3)
source/reference/modules/studio.rst (3)

3077-3080: Verify variable naming/source consistency (reviewer/submitter fields)

This template mixes snake_case (first_name, last_name) and camelCase (elsewhere you use approver.firstName). If the backing model uses consistent keys, this will break.

Please confirm the actual variables passed to FTL in Studio 5.x and standardize (all camelCase or whatever Studio emits). Based on learnings


3097-3108: Good: schedule/target/reviewer comment surfaced; add variables to docs

You reference publishPackage.* fields not listed in “Template Variables.” Document these (packageType, schedule, target, reviewerComment, submitterComment, etc.) and new file.* fields (page, browserUri, action, path, packageId, liveError, stagingError).


3178-3216: Template variable consistency (reviewer. fields) and links look fine otherwise*

After fixing “&&”, please also verify reviewer.first_name/last_name names as above.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5600fe4 and 930f2a9.

📒 Files selected for processing (1)
  • source/reference/modules/studio.rst (12 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-02T20:40:32.613Z
Learnt from: alhambrav
PR: craftercms/docs#2042
File: source/reference/modules/studio.rst:0-0
Timestamp: 2025-09-02T20:40:32.613Z
Learning: When reviewing CrafterCMS Studio documentation, property names in configuration examples should match the actual Studio source code implementation, even if the underlying Git config keys are different. Studio may have a translation layer that maps Studio property names to actual Git configuration keys.

Applied to files:

  • source/reference/modules/studio.rst
🔇 Additional comments (8)
source/reference/modules/studio.rst (8)

2-2: Meta update looks good

Updated last-updated to 5.0.0 is consistent with the new content.


100-102: Good addition to the config properties index

New “Notification Service Configuration” entry improves discoverability.


105-105: Description reads well

Wording aligns with the section content below.


3023-3030: Nice use of collapsible details

The expandable block improves readability.


3051-3052: LGTM: clearer itemization of deployment failures

The extra details per file are helpful.


3067-3067: Subject logic: good conditional for scheduled vs approved

Looks correct.


3086-3095: Inline link around pages is correct

Conditional anchor wrapping by file.page is solid.


3267-3314: Great addition: Notification Service Configuration defaults

Section is clear and useful. Ensure the configuration file path here matches all captions above (workflow/notification-config.xml) to avoid user confusion.

@github-project-automation github-project-automation bot moved this to Todo in v5.0.0 Oct 23, 2025
@alhambrav alhambrav changed the base branch from 5 to master October 24, 2025 16:59
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 28ffe79 and c9bb0d3.

📒 Files selected for processing (1)
  • source/reference/modules/studio.rst (8 hunks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants