[PR #74] [MERGED] Template creation #344

Closed
opened 2026-03-03 11:29:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dflow-sh/dflow/pull/74
Author: @jagadeesh507
Created: 4/21/2025
Status: Merged
Merged: 4/22/2025
Merged by: @jagadeesh507

Base: mainHead: template-create


📝 Commits (10+)

  • cb20c79 chore: github service addition
  • 59742de chore: database service addition
  • 53fd766 chore: unique-names-generator package installed
  • 8c453ad chore: database select options updated
  • f4be28f chore: select removed for fetching all github providers.
  • 859fda1 fix: width fixed
  • 98026f8 chore: template tab added
  • 1ad7279 chore: database types updated
  • 4d60090 fix: ui fix
  • fef5442 chore: onClick prop added for nodes

📊 Changes

22 files changed (+1238 additions, -136 deletions)

View changed files

📝 package.json (+1 -0)
📝 pnpm-lock.yaml (+9 -0)
📝 src/actions/gitProviders/index.ts (+10 -10)
src/actions/templates/index.ts (+52 -0)
src/actions/templates/validator.ts (+36 -0)
📝 src/app/(frontend)/(dashboard)/layout.client.tsx (+1 -1)
src/app/(frontend)/(dashboard)/templates/create/page.tsx (+7 -0)
src/app/(frontend)/(dashboard)/templates/page.tsx (+47 -0)
📝 src/app/(frontend)/globals.css (+10 -0)
📝 src/components/project/ServicesArchitecture.tsx (+2 -1)
📝 src/components/reactflow/CustomNodes/index.tsx (+17 -11)
📝 src/components/reactflow/reactflow.config.tsx (+1 -1)
📝 src/components/reactflow/types.ts (+20 -1)
src/components/templates/TemplateDetails.tsx (+57 -0)
src/components/templates/create/AddDatabaseService.tsx (+116 -0)
src/components/templates/create/AddGithubService.tsx (+376 -0)
src/components/templates/create/CreateNewTemplate.tsx (+305 -0)
src/components/templates/create/DeploymentOrder.tsx (+104 -0)
src/components/templates/create/types.ts (+18 -0)
src/components/templates/create/useFlowPersistence.tsx (+0 -58)

...and 2 more files

📄 Description

Template Collection Setup

  • Added a new Template collection to the database to store user-created templates.
  • Each template includes necessary metadata and node configuration data.

🎯 Floating Edges Between Nodes

  • Enhanced the node connecting experience using react-flow by implementing floating edges.
  • Provides a cleaner and more intuitive UI for linking nodes.

🧩 Template Creation UI

  • Integrated a visual UI for creating templates using react-flow.

📄 Template List Page

  • Developed a new templates page to display all saved templates.

🗑️ Template Deletion

  • Added UI controls that allow users to delete saved templates.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dflow-sh/dflow/pull/74 **Author:** [@jagadeesh507](https://github.com/jagadeesh507) **Created:** 4/21/2025 **Status:** ✅ Merged **Merged:** 4/22/2025 **Merged by:** [@jagadeesh507](https://github.com/jagadeesh507) **Base:** `main` ← **Head:** `template-create` --- ### 📝 Commits (10+) - [`cb20c79`](https://github.com/dflow-sh/dflow/commit/cb20c7939879b75dbab64c0301a0ceeb6d6eb6a1) chore: github service addition - [`59742de`](https://github.com/dflow-sh/dflow/commit/59742dee848b0389aa2e554360c0ea7076223071) chore: database service addition - [`53fd766`](https://github.com/dflow-sh/dflow/commit/53fd7661ef5d638493b4c30bfbf6e4c4bcc6319f) chore: unique-names-generator package installed - [`8c453ad`](https://github.com/dflow-sh/dflow/commit/8c453ad52aed6088bcb84160fd2b3fbaa4459c36) chore: database select options updated - [`f4be28f`](https://github.com/dflow-sh/dflow/commit/f4be28fafbc8a0f26b8efdc454a8a211d8fb6c84) chore: select removed for fetching all github providers. - [`859fda1`](https://github.com/dflow-sh/dflow/commit/859fda15ea30a532c3e10cb5d04e5dec69919a20) fix: width fixed - [`98026f8`](https://github.com/dflow-sh/dflow/commit/98026f88f7bf17c33f8503f9b97a1a4f6eb7cfd4) chore: template tab added - [`1ad7279`](https://github.com/dflow-sh/dflow/commit/1ad7279db7e439ad47c2a4ac6973a1e5abcbb352) chore: database types updated - [`4d60090`](https://github.com/dflow-sh/dflow/commit/4d60090ac4b16e6250cd34a1171cb249dc9c233d) fix: ui fix - [`fef5442`](https://github.com/dflow-sh/dflow/commit/fef544237a4be7acd03ee7d4b12e899971a77afb) chore: onClick prop added for nodes ### 📊 Changes **22 files changed** (+1238 additions, -136 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -0) 📝 `pnpm-lock.yaml` (+9 -0) 📝 `src/actions/gitProviders/index.ts` (+10 -10) ➕ `src/actions/templates/index.ts` (+52 -0) ➕ `src/actions/templates/validator.ts` (+36 -0) 📝 `src/app/(frontend)/(dashboard)/layout.client.tsx` (+1 -1) ➕ `src/app/(frontend)/(dashboard)/templates/create/page.tsx` (+7 -0) ➕ `src/app/(frontend)/(dashboard)/templates/page.tsx` (+47 -0) 📝 `src/app/(frontend)/globals.css` (+10 -0) 📝 `src/components/project/ServicesArchitecture.tsx` (+2 -1) 📝 `src/components/reactflow/CustomNodes/index.tsx` (+17 -11) 📝 `src/components/reactflow/reactflow.config.tsx` (+1 -1) 📝 `src/components/reactflow/types.ts` (+20 -1) ➕ `src/components/templates/TemplateDetails.tsx` (+57 -0) ➕ `src/components/templates/create/AddDatabaseService.tsx` (+116 -0) ➕ `src/components/templates/create/AddGithubService.tsx` (+376 -0) ➕ `src/components/templates/create/CreateNewTemplate.tsx` (+305 -0) ➕ `src/components/templates/create/DeploymentOrder.tsx` (+104 -0) ➕ `src/components/templates/create/types.ts` (+18 -0) ➖ `src/components/templates/create/useFlowPersistence.tsx` (+0 -58) _...and 2 more files_ </details> ### 📄 Description ## ✅ Template Collection Setup - Added a new `Template` collection to the database to store user-created templates. - Each template includes necessary metadata and node configuration data. ## 🎯 Floating Edges Between Nodes - Enhanced the node connecting experience using **react-flow** by implementing **floating edges**. - Provides a cleaner and more intuitive UI for linking nodes. ## 🧩 Template Creation UI - Integrated a visual UI for creating templates using **react-flow**. ## 📄 Template List Page - Developed a new **templates page** to display all saved templates. ## 🗑️ Template Deletion - Added UI controls that allow users to **delete saved templates**. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:29:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dflow#344
No description provided.