From 35a0bd412e95549dafd7f0ceec201b2e6974996c Mon Sep 17 00:00:00 2001 From: Md Afiq Iskandar Date: Fri, 11 Jul 2025 14:50:42 +0800 Subject: [PATCH] Refactor Navigation and Enhance Form Builder UI - Simplified navigation structure by consolidating child routes for Process and Form Designers, improving clarity and accessibility. - Updated Form Builder and Process Builder header styles for a more modern look, including logo and title adjustments. - Enhanced button styles and layout in the Form Builder and Process Management pages for better user interaction. - Introduced new dashboard metrics and recent activity sections in Process Management, providing users with quick insights into their processes. - Improved overall responsiveness and visual consistency across the application. --- components/ProcessJourneyTimeline.vue | 407 +++++++++++++ navigation/index.js | 62 +- pages/form-builder/index.vue | 54 +- pages/form-builder/manage.vue | 28 +- pages/process-builder/analytics/[id].vue | 405 +++++++++++++ pages/process-builder/index.vue | 32 +- pages/process-builder/manage.vue | 600 +++++++++++++++----- server/api/process/dashboard/summary.get.js | 349 ++++++++++++ 8 files changed, 1690 insertions(+), 247 deletions(-) create mode 100644 components/ProcessJourneyTimeline.vue create mode 100644 pages/process-builder/analytics/[id].vue create mode 100644 server/api/process/dashboard/summary.get.js diff --git a/components/ProcessJourneyTimeline.vue b/components/ProcessJourneyTimeline.vue new file mode 100644 index 0000000..0ef5687 --- /dev/null +++ b/components/ProcessJourneyTimeline.vue @@ -0,0 +1,407 @@ + + + + + \ No newline at end of file diff --git a/navigation/index.js b/navigation/index.js index 6895cfa..7747978 100644 --- a/navigation/index.js +++ b/navigation/index.js @@ -16,49 +16,15 @@ export default [ header: "Design & Build", description: "Create and design your workflows and forms", child: [ - { - title: "Process Designer", - icon: "material-symbols:account-tree", - child: [ - { - title: "Visual Builder", - path: "/process-builder", - child: [], - meta: { - description: "Design workflows with drag-and-drop interface" - } - }, - { - title: "Manage Processes", - path: "/process-builder/manage", - child: [], - meta: { - description: "View and manage all your processes" - } - }, - ], - }, { title: "Form Designer", icon: "material-symbols:dynamic-form", - child: [ - { - title: "Form Builder", - path: "/form-builder", - child: [], - meta: { - description: "Create dynamic forms with advanced components" - } - }, - { - title: "Manage Forms", - path: "/form-builder/manage", - child: [], - meta: { - description: "View and manage all your forms" - } - }, - ], + path: "/form-builder/manage", + }, + { + title: "Process Designer", + icon: "material-symbols:account-tree", + path: "/process-builder/manage", }, ], }, @@ -75,16 +41,16 @@ export default [ path: "/execution", child: [], meta: { - description: "Monitor active processes and performance metrics" - } + description: "Monitor active processes and performance metrics", + }, }, { title: "Start New Process", path: "/execution/new-case", child: [], meta: { - description: "Initiate a new process instance" - } + description: "Initiate a new process instance", + }, }, ], }, @@ -97,16 +63,16 @@ export default [ path: "/execution/inbox", child: [], meta: { - description: "View and complete assigned tasks" - } + description: "View and complete assigned tasks", + }, }, { title: "Process History", path: "/execution/history", child: [], meta: { - description: "Review completed processes and audit trails" - } + description: "Review completed processes and audit trails", + }, }, ], }, diff --git a/pages/form-builder/index.vue b/pages/form-builder/index.vue index c0ee70c..dcc8265 100644 --- a/pages/form-builder/index.vue +++ b/pages/form-builder/index.vue @@ -2,22 +2,28 @@
- Corrad Logo -
- Preview Mode +
+ Corrad Logo +
+

Form Builder

+

Create and manage form layouts

+
+
+ Preview Mode +
@@ -41,25 +47,25 @@
-
+
-
- - - Save +
+ + + - - {{ isPreview ? 'Edit' : 'Preview' }} + +
-
- - - Templates +
- + -