Skip to content

Update the notifications config article #7557#2026

Draft
alhambrav wants to merge 8 commits intocraftercms:masterfrom
alhambrav:update-notifications-config
Draft

Update the notifications config article #7557#2026
alhambrav wants to merge 8 commits intocraftercms:masterfrom
alhambrav:update-notifications-config

Conversation

@alhambrav
Copy link
Copy Markdown
Member

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

Update the notifications config article craftercms/craftercms#7557

Copy link
Copy Markdown
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
Copy Markdown

coderabbitai Bot commented Sep 25, 2025

Warning

Rate limit exceeded

@alhambrav has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 24 minutes and 36 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 78f6acac-2ad2-4768-8a35-9aee3b1385f7

📥 Commits

Reviewing files that changed from the base of the PR and between 3f51c12 and 3d3cb74.

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

Walkthrough

Updates Studio documentation: bumps version to 5.0.0, replaces notifications.xml references with workflow/notification-config.xml, restructures workflow notification configuration and templates (new template keys and publishPackage-driven fields), adds HTML <details> wrappers, and documents Notification Service configuration.

Changes

Cohort / File(s) Summary
Docs: Studio notifications config and templates
source/reference/modules/studio.rst
Bumped docs version to 5.0.0; replaced notifications.xml with workflow/notification-config.xml across captions and examples; reworded workflow notifications list; added HTML <details>/<summary> wrappers and inline <emailTemplates> formatting; replaced legacy email templates with new keys (contentApproved, submittedForReview, contentRejected), moved template fields to publishPackage (e.g., publishPackage.schedule, publishPackage.packageType, publishPackage.target), updated file-list rendering to include deployment action/path/package and conditional live/stage errors, revised URLs/preview links; added “Notification Service Configuration” section documenting configurable properties and defaults.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title directly describes the main change: updating the notifications config documentation article, which aligns with the summary showing comprehensive documentation updates to notification configuration, templates, and service configuration.
Description check ✅ Passed The description includes the required ticket reference (#7557) and provides context about updating the notifications config article, matching the template requirement for ticket reference or description.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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
Review rate limit: 0/1 reviews remaining, refill in 24 minutes and 36 seconds.

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

Copy link
Copy Markdown

@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.

Comment thread source/reference/modules/studio.rst Outdated
Comment thread source/reference/modules/studio.rst Outdated
Comment thread source/reference/modules/studio.rst
Comment thread source/reference/modules/studio.rst Outdated
Comment thread source/reference/modules/studio.rst Outdated
@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
Copy Markdown

@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)

Comment thread source/reference/modules/studio.rst
@alhambrav alhambrav closed this Apr 28, 2026
@alhambrav alhambrav deleted the update-notifications-config branch April 28, 2026 13:43
@github-project-automation github-project-automation Bot moved this from Todo to Done in v5.0.0 Apr 28, 2026
@alhambrav alhambrav restored the update-notifications-config branch April 28, 2026 13:54
@alhambrav alhambrav moved this from Done to Todo in v5.0.0 Apr 28, 2026
@alhambrav alhambrav reopened this Apr 28, 2026
Copy link
Copy Markdown

@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

🧹 Nitpick comments (1)
source/reference/modules/studio.rst (1)

3090-3093: Clarify timezone precedence between templates and global config.

You document studio.notification.timezone (UTC default), but examples also set <#setting time_zone='EST'> in-template. Add one note clarifying template-level timezone overrides the global property for that template.

Also applies to: 3312-3331

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@source/reference/modules/studio.rst` around lines 3090 - 3093, Add a short
clarifying note stating that the template-level tag <#setting time_zone='...'>
takes precedence over the global property studio.notification.timezone (which
defaults to UTC) for that specific template; update the text near the example
around the <#setting time_zone='EST'> snippet and repeat the same clarification
in the other section covering lines 3312–3331 so both places explicitly state
that template settings override the global timezone for that template only.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@source/reference/modules/studio.rst`:
- Around line 3045-3046: The intro sentence "Below is an example of a configured
email messages for each point in the workflow, found in between the tag
``<emailTemplates>`` in the notifications configuration file." is awkward;
update it to a cleaner phrasing such as: "Below is an example of configured
email messages for each point in the workflow, found between the
``<emailTemplates>`` tag in the notifications configuration file." Replace the
existing sentence in the Configure Templates section to use this corrected
wording and keep the reference to the ``<emailTemplates>`` tag.

---

Nitpick comments:
In `@source/reference/modules/studio.rst`:
- Around line 3090-3093: Add a short clarifying note stating that the
template-level tag <#setting time_zone='...'> takes precedence over the global
property studio.notification.timezone (which defaults to UTC) for that specific
template; update the text near the example around the <#setting time_zone='EST'>
snippet and repeat the same clarification in the other section covering lines
3312–3331 so both places explicitly state that template settings override the
global timezone for that template only.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 38a63193-261b-4490-b780-f302f9f6a3f6

📥 Commits

Reviewing files that changed from the base of the PR and between c9bb0d3 and 3f51c12.

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

Comment thread source/reference/modules/studio.rst Outdated
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