From f2d4763ec09f652901569577b67d6fadc535554e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Feb 2026 19:55:54 +0500 Subject: [PATCH] Refine EC2 deploy and email templates UI Co-authored-by: Cursor --- .github/workflows/deploy-ec2.yml | 33 +---------- .../juno-engine/email-templates/page.tsx | 56 +++++++++---------- 2 files changed, 31 insertions(+), 58 deletions(-) diff --git a/.github/workflows/deploy-ec2.yml b/.github/workflows/deploy-ec2.yml index 2b05401..7034a23 100644 --- a/.github/workflows/deploy-ec2.yml +++ b/.github/workflows/deploy-ec2.yml @@ -18,7 +18,7 @@ on: - 'README.md' jobs: - build-app: + build-and-deploy: runs-on: ubuntu-22.04 steps: - name: Checkout code @@ -40,37 +40,10 @@ jobs: - name: Save application image run: | - docker save -o junohub-app_latest.tar ${{ env.IMAGE_NAME }}:latest + mkdir -p docker + docker save -o docker/junohub-app_latest.tar ${{ env.IMAGE_NAME }}:latest echo "✅ Saved application image" - - name: Upload application image - uses: actions/upload-artifact@v4 - with: - name: app-image - path: junohub-app_latest.tar - - deploy: - runs-on: ubuntu-22.04 - needs: [build-app] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Download application image - uses: actions/download-artifact@v4 - with: - name: app-image - path: docker - - - name: Verify image tar - run: | - if [ ! -f docker/junohub-app_latest.tar ]; then - echo "ERROR: Application image tar missing after download" - ls -la docker/ || true - exit 1 - fi - echo "✅ Application image tar ready for deploy" - - name: Set up environment file run: | # Base env for production container diff --git a/src/app/dashboard/juno-engine/email-templates/page.tsx b/src/app/dashboard/juno-engine/email-templates/page.tsx index 9e460d9..a047173 100644 --- a/src/app/dashboard/juno-engine/email-templates/page.tsx +++ b/src/app/dashboard/juno-engine/email-templates/page.tsx @@ -189,7 +189,7 @@ export default function EmailTemplatesPage() { : "" return ( -
+
@@ -288,21 +288,21 @@ export default function EmailTemplatesPage() {
{editing && ( -
-
-
+
+
+
-

+

{editing.id ? "Edit template" : "New template"}

-

+

Use {"{{variable}}"} placeholders to personalize replies.

@@ -312,7 +312,7 @@ export default function EmailTemplatesPage() {
-
-
-
-
-

+

+

Available variables

  • - + {"{{customer_name}}"} {" "} – Customer’s name
  • - + {"{{customer_email}}"} {" "} – Customer’s email
  • - + {"{{store_name}}"} {" "} – Store name
  • - + {"{{ticket_summary}}"} {" "} – Short summary of the customer’s email @@ -439,7 +439,7 @@ export default function EmailTemplatesPage() {
-