From 086262933387cb1196337d83f8fd6b2474833aa4 Mon Sep 17 00:00:00 2001
From: Varun
Date: Wed, 1 Apr 2026 01:19:14 +0530
Subject: [PATCH] Add Create New button to home dashboard and i18n translations
- Restore missing Create New button to dashboard header when flows exist
- Add home.createNew translation key across all 7 locales
Co-Authored-By: Claude Sonnet 4.6
---
public/locales/de/translation.json | 1 +
public/locales/en/translation.json | 1 +
public/locales/es/translation.json | 1 +
public/locales/fr/translation.json | 1 +
public/locales/ja/translation.json | 1 +
public/locales/tr/translation.json | 1 +
public/locales/zh/translation.json | 1 +
src/components/home/HomeDashboard.tsx | 9 +++++++++
src/i18n/locales/de/translation.json | 1 +
src/i18n/locales/en/translation.json | 1 +
src/i18n/locales/es/translation.json | 1 +
src/i18n/locales/fr/translation.json | 1 +
src/i18n/locales/ja/translation.json | 1 +
src/i18n/locales/tr/translation.json | 1 +
src/i18n/locales/zh/translation.json | 1 +
15 files changed, 23 insertions(+)
diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json
index 064ff06..d854fed 100644
--- a/public/locales/de/translation.json
+++ b/public/locales/de/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "Erstellen Sie Ihren ersten Flow",
"homeEmptySubtitle": "Entwerfen Sie sofort Enterprise-Architekturen. Beginnen Sie mit einer leeren Leinwand, beschreiben Sie Ihre Infrastruktur mit unserem KI-Builder oder verwenden Sie eine maßgeschneiderte Vorlage.",
"homeBlankCanvas": "Leere Leinwand",
+ "createNew": "Neu erstellen",
"homeFlowpilotAI": "Flowpilot KI",
"homeTemplates": "Vorlagen",
"homeImportFile": "Oder eine bestehende Datei importieren",
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index 3a8c5f9..b82a69d 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -287,6 +287,7 @@
"homeEmptyTitle": "Create your first flow",
"homeEmptySubtitle": "Design enterprise-grade architectures instantly. Start from a blank canvas, describe your infrastructure with our AI builder, or use a tailored template.",
"homeBlankCanvas": "Blank Canvas",
+ "createNew": "Create new",
"homeFlowpilotAI": "Flowpilot AI",
"homeTemplates": "Templates",
"homeImportFile": "Or import an existing file",
diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json
index 6ed7325..1602436 100644
--- a/public/locales/es/translation.json
+++ b/public/locales/es/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "Crea tu primer flujo",
"homeEmptySubtitle": "Diseña arquitecturas de nivel empresarial al instante. Comienza con un lienzo en blanco, describe tu infraestructura con nuestro constructor de IA, o usa una plantilla adaptada.",
"homeBlankCanvas": "Lienzo en blanco",
+ "createNew": "Crear nuevo",
"homeFlowpilotAI": "Flowpilot IA",
"homeTemplates": "Plantillas",
"homeImportFile": "O importar un archivo existente",
diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json
index 4720325..3f6bdcf 100644
--- a/public/locales/fr/translation.json
+++ b/public/locales/fr/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "Créez votre premier flux",
"homeEmptySubtitle": "Concevez des architectures de qualité entreprise instantanément. Commencez avec un canevas vierge, décrivez votre infrastructure avec notre constructeur IA, ou utilisez un modèle adapté.",
"homeBlankCanvas": "Canevas vierge",
+ "createNew": "Créer nouveau",
"homeFlowpilotAI": "Flowpilot IA",
"homeTemplates": "Modèles",
"homeImportFile": "Ou importer un fichier existant",
diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json
index bc01444..f3b5597 100644
--- a/public/locales/ja/translation.json
+++ b/public/locales/ja/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "最初のフローを作成",
"homeEmptySubtitle": "エンタープライズグレードのアーキテクチャを即座に設計。空白のキャンバスから始めるか、AIビルダーでインフラを描述するか、カスタマイズテンプレートを使用してください。",
"homeBlankCanvas": "空白のキャンバス",
+ "createNew": "新規作成",
"homeFlowpilotAI": "フローパイロット人工知能",
"homeTemplates": "テンプレート",
"homeImportFile": "または既存のファイルをインポート",
diff --git a/public/locales/tr/translation.json b/public/locales/tr/translation.json
index 45a5ee5..26ef691 100644
--- a/public/locales/tr/translation.json
+++ b/public/locales/tr/translation.json
@@ -294,6 +294,7 @@
"homeEmptyTitle": "İlk akışınızı oluşturun",
"homeEmptySubtitle": "Kurumsal düzey mimariileri anında tasarlayın. Boş bir tuvalden başlayın, altyapınızı AI builderımızla tanımlayın veya hazır bir şablon kullanın.",
"homeBlankCanvas": "Boş Tuval",
+ "createNew": "Yeni oluştur",
"homeFlowpilotAI": "Flowpilot Yapay Zeka",
"homeTemplates": "Şablonlar",
"homeImportFile": "Veya mevcut bir dosyayı içe aktarın",
diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json
index b60cec1..bdfb4b6 100644
--- a/public/locales/zh/translation.json
+++ b/public/locales/zh/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "创建您的第一个流程",
"homeEmptySubtitle": "即时设计企业级架构。从空白画布开始,用我们的AI构建器描述您的基础设施,或使用定制模板。",
"homeBlankCanvas": "空白画布",
+ "createNew": "新建",
"homeFlowpilotAI": "流程领航人工智能",
"homeTemplates": "模板",
"homeImportFile": "或导入现有文件",
diff --git a/src/components/home/HomeDashboard.tsx b/src/components/home/HomeDashboard.tsx
index 63c551c..7dcf0c9 100644
--- a/src/components/home/HomeDashboard.tsx
+++ b/src/components/home/HomeDashboard.tsx
@@ -87,6 +87,15 @@ export function HomeDashboard({
{t('home.description', 'Manage your flows and diagrams.')}
+
diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.json
index 064ff06..d854fed 100644
--- a/src/i18n/locales/de/translation.json
+++ b/src/i18n/locales/de/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "Erstellen Sie Ihren ersten Flow",
"homeEmptySubtitle": "Entwerfen Sie sofort Enterprise-Architekturen. Beginnen Sie mit einer leeren Leinwand, beschreiben Sie Ihre Infrastruktur mit unserem KI-Builder oder verwenden Sie eine maßgeschneiderte Vorlage.",
"homeBlankCanvas": "Leere Leinwand",
+ "createNew": "Neu erstellen",
"homeFlowpilotAI": "Flowpilot KI",
"homeTemplates": "Vorlagen",
"homeImportFile": "Oder eine bestehende Datei importieren",
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json
index 3a8c5f9..b82a69d 100644
--- a/src/i18n/locales/en/translation.json
+++ b/src/i18n/locales/en/translation.json
@@ -287,6 +287,7 @@
"homeEmptyTitle": "Create your first flow",
"homeEmptySubtitle": "Design enterprise-grade architectures instantly. Start from a blank canvas, describe your infrastructure with our AI builder, or use a tailored template.",
"homeBlankCanvas": "Blank Canvas",
+ "createNew": "Create new",
"homeFlowpilotAI": "Flowpilot AI",
"homeTemplates": "Templates",
"homeImportFile": "Or import an existing file",
diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.json
index 6ed7325..1602436 100644
--- a/src/i18n/locales/es/translation.json
+++ b/src/i18n/locales/es/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "Crea tu primer flujo",
"homeEmptySubtitle": "Diseña arquitecturas de nivel empresarial al instante. Comienza con un lienzo en blanco, describe tu infraestructura con nuestro constructor de IA, o usa una plantilla adaptada.",
"homeBlankCanvas": "Lienzo en blanco",
+ "createNew": "Crear nuevo",
"homeFlowpilotAI": "Flowpilot IA",
"homeTemplates": "Plantillas",
"homeImportFile": "O importar un archivo existente",
diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.json
index 4720325..3f6bdcf 100644
--- a/src/i18n/locales/fr/translation.json
+++ b/src/i18n/locales/fr/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "Créez votre premier flux",
"homeEmptySubtitle": "Concevez des architectures de qualité entreprise instantanément. Commencez avec un canevas vierge, décrivez votre infrastructure avec notre constructeur IA, ou utilisez un modèle adapté.",
"homeBlankCanvas": "Canevas vierge",
+ "createNew": "Créer nouveau",
"homeFlowpilotAI": "Flowpilot IA",
"homeTemplates": "Modèles",
"homeImportFile": "Ou importer un fichier existant",
diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.json
index bc01444..f3b5597 100644
--- a/src/i18n/locales/ja/translation.json
+++ b/src/i18n/locales/ja/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "最初のフローを作成",
"homeEmptySubtitle": "エンタープライズグレードのアーキテクチャを即座に設計。空白のキャンバスから始めるか、AIビルダーでインフラを描述するか、カスタマイズテンプレートを使用してください。",
"homeBlankCanvas": "空白のキャンバス",
+ "createNew": "新規作成",
"homeFlowpilotAI": "フローパイロット人工知能",
"homeTemplates": "テンプレート",
"homeImportFile": "または既存のファイルをインポート",
diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.json
index 45a5ee5..26ef691 100644
--- a/src/i18n/locales/tr/translation.json
+++ b/src/i18n/locales/tr/translation.json
@@ -294,6 +294,7 @@
"homeEmptyTitle": "İlk akışınızı oluşturun",
"homeEmptySubtitle": "Kurumsal düzey mimariileri anında tasarlayın. Boş bir tuvalden başlayın, altyapınızı AI builderımızla tanımlayın veya hazır bir şablon kullanın.",
"homeBlankCanvas": "Boş Tuval",
+ "createNew": "Yeni oluştur",
"homeFlowpilotAI": "Flowpilot Yapay Zeka",
"homeTemplates": "Şablonlar",
"homeImportFile": "Veya mevcut bir dosyayı içe aktarın",
diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.json
index b60cec1..bdfb4b6 100644
--- a/src/i18n/locales/zh/translation.json
+++ b/src/i18n/locales/zh/translation.json
@@ -274,6 +274,7 @@
"homeEmptyTitle": "创建您的第一个流程",
"homeEmptySubtitle": "即时设计企业级架构。从空白画布开始,用我们的AI构建器描述您的基础设施,或使用定制模板。",
"homeBlankCanvas": "空白画布",
+ "createNew": "新建",
"homeFlowpilotAI": "流程领航人工智能",
"homeTemplates": "模板",
"homeImportFile": "或导入现有文件",