feat(wow): add crafter mention to crafting order completion DM#305
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughAdds crafter attribution to crafting-complete messages, records DM-fallback thread deletion times on orders, provides a background cleanup loop to delete those messages/threads and clears the timestamp, and introduces a DB migration and model fields to support cleanup configuration and scheduling. (≤50 words) Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@NerdyPy/locales/lang_en.yaml`:
- Around line 692-696: The string value for the YAML key
channel_unreachable_description is exceeding the 120-character line length;
update it to use a folded scalar (>|) or otherwise wrap the long line so no
physical line exceeds 120 chars while keeping the same text and interpolation
placeholders ({form}, {guild}, {channel_id}); ensure indentation and quoting
remain valid for YAML and the key name channel_unreachable_description is
unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 5b6de729-da89-4183-b0d4-dc28771b71e2
📒 Files selected for processing (3)
NerdyPy/locales/lang_de.yamlNerdyPy/locales/lang_en.yamlNerdyPy/modules/views/crafting_order.py
| channel_unreachable_description: | ||
| "Someone tried to submit an application for form **{form}** in **{guild}**, but the review channel (ID: `{channel_id}`) is not accessible to the bot. | ||
|
|
||
|
|
||
| The submission was not saved. Please check the channel permissions or reconfigure the form." |
There was a problem hiding this comment.
Wrap Line 693 to stay within the 120-character limit.
The new text is fine, but Line 693 is still over the repo limit. A folded scalar keeps the same message while making the YAML compliant.
✂️ Proposed fix
- channel_unreachable_description:
- "Someone tried to submit an application for form **{form}** in **{guild}**, but the review channel (ID: `{channel_id}`) is not accessible to the bot.
-
-
- The submission was not saved. Please check the channel permissions or reconfigure the form."
+ channel_unreachable_description: >-
+ Someone tried to submit an application for form **{form}** in **{guild}**,
+ but the review channel (ID: `{channel_id}`) is not accessible to the bot.
+
+ The submission was not saved. Please check the channel permissions or
+ reconfigure the form.As per coding guidelines, **/*.{py,md,yaml,yml}: Line length: 120 characters.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| channel_unreachable_description: | |
| "Someone tried to submit an application for form **{form}** in **{guild}**, but the review channel (ID: `{channel_id}`) is not accessible to the bot. | |
| The submission was not saved. Please check the channel permissions or reconfigure the form." | |
| channel_unreachable_description: >- | |
| Someone tried to submit an application for form **{form}** in **{guild}**, | |
| but the review channel (ID: `{channel_id}`) is not accessible to the bot. | |
| The submission was not saved. Please check the channel permissions or | |
| reconfigure the form. |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@NerdyPy/locales/lang_en.yaml` around lines 692 - 696, The string value for
the YAML key channel_unreachable_description is exceeding the 120-character line
length; update it to use a folded scalar (>|) or otherwise wrap the long line so
no physical line exceeds 120 chars while keeping the same text and interpolation
placeholders ({form}, {guild}, {channel_id}); ensure indentation and quoting
remain valid for YAML and the key name channel_unreachable_description is
unchanged.
…rder message cleanup
5a96493 to
b6e1754
Compare
When a crafting order is marked as completed, the DM sent to the requester now includes a mention of the crafter who fulfilled it.
Changes
CompleteOrderButton.callback: readsCrafterIdfrom the order and passes it ascrafter=<@id>to the completion DM templatelang_en.yaml:dm_completeupdated to"Your crafting order for **{item}** has been completed by {crafter}! 🎉"lang_de.yaml:dm_completeupdated to"Dein Handwerksauftrag für **{item}** wurde von {crafter} abgeschlossen! 🎉"🤖 Generated with Claude Code
Summary by CodeRabbit
Localization
New Features