Skip to content

feat: email template in settings #1528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2025

Conversation

pateljannat
Copy link
Collaborator

@pateljannat pateljannat commented May 23, 2025

You can now create and edit Email Templates from the frontend

Screenshot 2025-05-23 at 1 31 26 PM
Screenshot 2025-05-23 at 1 31 34 PM

@pateljannat pateljannat requested a review from Copilot May 23, 2025 08:02
Copy link

cypress bot commented May 23, 2025

lms    Run #1318

Run Properties:  status check passed Passed #1318  •  git commit 1f629d6e86 ℹ️: Merge eb089f2b58668e745d710db3d76d6ab5a2ea250c into ef7180f23ff2f9e8d9e213ead41d...
Project lms
Branch Review email-template-list
Run status status check passed Passed #1318
Run duration 00m 32s
Commit git commit 1f629d6e86 ℹ️: Merge eb089f2b58668e745d710db3d76d6ab5a2ea250c into ef7180f23ff2f9e8d9e213ead41d...
Committer Jannat Patel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 1
View all changes introduced in this branch ↗︎

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds the ability to manage Email Templates directly in the frontend settings, including list, create, edit, and delete flows.

  • Hooked up “Create” action in BatchForm to open the Email Templates modal
  • Extended SettingFields and Settings modal to include a new “Email Templates” tab
  • Introduced EmailTemplates.vue and EmailTemplateModal.vue, plus layout tweaks in PaymentSettings, SettingFields, and BrandSettings

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frontend/src/pages/BatchForm.vue Added onCreate handler to link into the Email Templates settings
frontend/src/components/SettingFields.vue Updated width classes and bound description prop on Link
frontend/src/components/PaymentSettings.vue Added transform + arrangeFields to reorder fields
frontend/src/components/Modals/Settings.vue Imported and wired up the new Email Templates tab
frontend/src/components/Modals/EmailTemplateModal.vue New modal component for creating/editing email templates
frontend/src/components/EmailTemplates.vue New list view component to display and delete templates
frontend/src/components/Categories.vue Minor padding and font-size adjustment
frontend/src/components/BrandSettings.vue Fixed div nesting and moved update button into correct wrapper
Comments suppressed due to low confidence (2)

frontend/src/components/EmailTemplates.vue:1

  • This new component covers list display and modal interactions but has no accompanying unit or integration tests; consider adding tests for row clicks, opening the modal, and delete flows.
<template>

frontend/src/components/Modals/EmailTemplateModal.vue:1

  • The modal for creating/editing templates includes multiple branches (new vs edit, HTML vs text) but currently lacks tests; add coverage for form validation, save success/error, and toggle logic.
<template>

@pateljannat pateljannat marked this pull request as ready for review May 23, 2025 08:58
@pateljannat pateljannat merged commit 9c76c54 into frappe:develop May 23, 2025
6 checks passed
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 2.29.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants