From fc28e3ac56599d75edbf13715ad4966503bc2cd8 Mon Sep 17 00:00:00 2001 From: Codevalve <6092+codevalve@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:56:01 -0600 Subject: [PATCH 1/3] docs: update README with deployment status and features - Add GitHub Pages deployment badge - Add live demo link - Update feature list - Add acknowledgments --- README.md | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 847073e..ef8df6a 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,47 @@ -# Jira Email Template Designer +# Jira Email Template Generator -A modern Single Page Application (SPA) for designing and generating beautiful Jira notification email templates. +[![Deploy to GitHub Pages](https://github.com/codevalve/jira-email-template/actions/workflows/deploy.yml/badge.svg)](https://github.com/codevalve/jira-email-template/actions/workflows/deploy.yml) + +A modern Single Page Application (SPA) for generating professional Jira notification email templates with dynamic customization options. + +## Live Demo + +Visit the live application: [Jira Email Template Generator](https://codevalve.github.io/jira-email-template/) ## Features -- Live preview of email templates -- Customizable colors for different sections +### Product Type Support +- Jira Software templates +- Service Desk templates +- Core templates +- Dynamic field rendering based on product type + +### Template Styles +- Full template with comprehensive issue details +- Compact template for concise notifications +- Consistent styling across all templates + +### Smart Values Integration +- Toggle between mock data and Jira smart values +- Uses `{{issue.field}}` syntax +- Dynamic field rendering +- HTML support in comments + +### Comments Customization +- Toggle comments visibility +- Three display modes: + - All comments + - Latest comment only + - Last 5 comments +- Smart values support in comments +- HTML formatting and user mentions + +### UI/UX Features +- Live preview +- Color picker for header customization - Responsive design +- Modern interface with Tailwind CSS - Generates minified HTML output -- Modern UI with Tailwind CSS ## Development @@ -23,7 +56,7 @@ This project uses Vite for development and building. 1. Clone the repository: ```bash -git clone [repository-url] +git clone https://github.com/codevalve/jira-email-template.git cd jira-email-template ``` @@ -51,6 +84,7 @@ jira-email-template/ │ ├── main.js # Main JavaScript file │ └── style.css # Styles ├── dist/ # Production build output +├── .github/ # GitHub Actions workflows ├── node_modules/ # Dependencies ├── package.json # Project configuration └── vite.config.js # Vite configuration @@ -59,10 +93,16 @@ jira-email-template/ ## Contributing 1. Create a feature branch (`git checkout -b feature/amazing-feature`) -2. Commit your changes (`git commit -m 'Add some amazing feature'`) +2. Commit your changes (`git commit -m 'feat: add some amazing feature'`) 3. Push to the branch (`git push origin feature/amazing-feature`) 4. Open a Pull Request ## License This project is licensed under the ISC License. + +## Acknowledgments + +- Built with [Vite](https://vitejs.dev/) +- Styled with [Tailwind CSS](https://tailwindcss.com/) +- Hosted on [GitHub Pages](https://pages.github.com/) From 4532f17751a90f301c9dcf8425ab8a04e0a5857e Mon Sep 17 00:00:00 2001 From: Codevalve <6092+codevalve@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:09:47 -0600 Subject: [PATCH 2/3] feat: add template style switching and copy functionality - Implement full and compact template views - Add copy button for generated HTML with visual feedback - Fix smart values display in both template styles - Improve template generation and preview functionality --- src/index.html | 21 +- src/main.js | 798 ++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 670 insertions(+), 149 deletions(-) diff --git a/src/index.html b/src/index.html index 935aa68..7759990 100644 --- a/src/index.html +++ b/src/index.html @@ -138,11 +138,22 @@

Template Controls

Generated HTML

- +
+ + +