From 4c6367b328704d3b5661a0b1a0271dd3ef6bf6ac Mon Sep 17 00:00:00 2001 From: ReLoia Date: Fri, 12 Jun 2026 19:04:19 +0200 Subject: [PATCH] feat: implement dynamic dashboard routing with role-specific views - Create unified dashboard page that renders dashboard view based on user role - Implement CitizenDashboard with local filtering, pagination, and user rewards points visualization - Implement OperatorDashboard with list of open/assigned reports and assignment actions - Implement AdminDashboard with admin statistics overview card components and management links --- app/components/dashboard/AdminDashboard.vue | 61 +++++ app/components/dashboard/CitizenDashboard.vue | 250 ++++++++++++++++++ .../dashboard/OperatorDashboard.vue | 60 +++++ app/pages/dashboard/index.vue | 80 ++++++ 4 files changed, 451 insertions(+) create mode 100644 app/components/dashboard/AdminDashboard.vue create mode 100644 app/components/dashboard/CitizenDashboard.vue create mode 100644 app/components/dashboard/OperatorDashboard.vue create mode 100644 app/pages/dashboard/index.vue diff --git a/app/components/dashboard/AdminDashboard.vue b/app/components/dashboard/AdminDashboard.vue new file mode 100644 index 0000000..349b7a1 --- /dev/null +++ b/app/components/dashboard/AdminDashboard.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/app/components/dashboard/CitizenDashboard.vue b/app/components/dashboard/CitizenDashboard.vue new file mode 100644 index 0000000..3307547 --- /dev/null +++ b/app/components/dashboard/CitizenDashboard.vue @@ -0,0 +1,250 @@ + + + + + \ No newline at end of file diff --git a/app/components/dashboard/OperatorDashboard.vue b/app/components/dashboard/OperatorDashboard.vue new file mode 100644 index 0000000..a3e222b --- /dev/null +++ b/app/components/dashboard/OperatorDashboard.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/app/pages/dashboard/index.vue b/app/pages/dashboard/index.vue new file mode 100644 index 0000000..cdff40d --- /dev/null +++ b/app/pages/dashboard/index.vue @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file