From 67fc37c76c116cc9c62680e6cd2a95b63120da42 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 8 May 2025 14:53:34 +0530 Subject: [PATCH 1/4] fix: ui of job details --- frontend/src/pages/JobDetail.vue | 125 +++++++++++++------------------ 1 file changed, 54 insertions(+), 71 deletions(-) diff --git a/frontend/src/pages/JobDetail.vue b/frontend/src/pages/JobDetail.vue index 8fe771fd..1712a785 100644 --- a/frontend/src/pages/JobDetail.vue +++ b/frontend/src/pages/JobDetail.vue @@ -67,86 +67,61 @@
-
-
+
+
-
- {{ job.data.job_title }} +
+
+ {{ job.data.job_title }} +
+
+ {{ job.data.company_name }} - {{ job.data.location }}, + {{ job.data.country }} +
-
-
-
- -
- - {{ __('Organisation') }} - - - {{ job.data.company_name }} - -
-
-
- -
- - {{ __('Location') }} - - - {{ job.data.location }}, {{ job.data.country }} - -
-
-
- -
- - {{ __('Category') }} - - - {{ job.data.type }} - -
-
-
- -
- - {{ __('Posted on') }} - - - {{ dayjs(job.data.creation).format('DD MMM YYYY') }} - -
-
-
- -
- - {{ __('Applications Received') }} - - - {{ applicationCount.data }} - -
-
-
+ +
+ + + {{ dayjs(job.data.creation).fromNow() }} + + + + {{ applicationCount.data }} + {{ + applicationCount.data == 1 ? __('applicant') : __('applicants') + }} + + + + {{ job.data.type }} +
+ +
+
+
+ +
+
+
+

{ } }) + From e526627eb998f143d9ef76d1fa08813c6eb13846 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 8 May 2025 15:05:07 +0530 Subject: [PATCH 2/4] fix: only show published certificate on the statistics page --- lms/lms/utils.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 29f8dae4..c9916b2f 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -772,14 +772,17 @@ def get_chart_data( from_date = add_months(getdate(), -1) if not to_date: to_date = getdate() - chart = frappe.get_doc("Dashboard Chart", chart_name) - filters = [([chart.document_type, "docstatus", "<", 2, False])] - doctype = chart.document_type - datefield = chart.based_on - value_field = chart.value_based_on or "1" + from_date = get_datetime(from_date).strftime("%Y-%m-%d") to_date = get_datetime(to_date) + chart = frappe.get_doc("Dashboard Chart", chart_name) + doctype = chart.document_type + datefield = chart.based_on + value_field = chart.value_based_on or "1" + + filters = [([chart.document_type, "docstatus", "<", 2, False])] + filters = filters + json.loads(chart.filters_json) filters.append([doctype, datefield, ">=", from_date, False]) filters.append([doctype, datefield, "<=", to_date, False]) From 080be7a885db2777bca3b3b943faf6a7508968b0 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 8 May 2025 15:10:51 +0530 Subject: [PATCH 3/4] fix: tooltips for number cards on statistics page --- frontend/src/pages/Statistics.vue | 69 ++++++++++++++++++------------- 1 file changed, 40 insertions(+), 29 deletions(-) diff --git a/frontend/src/pages/Statistics.vue b/frontend/src/pages/Statistics.vue index 55dfee3d..74949515 100644 --- a/frontend/src/pages/Statistics.vue +++ b/frontend/src/pages/Statistics.vue @@ -7,35 +7,45 @@
- - - - - + + + + + + + + + + + + + + +
@@ -129,6 +139,7 @@ import { createResource, DonutChart, NumberChart, + Tooltip, usePageMeta, } from 'frappe-ui' import { computed } from 'vue' From 159b651871b8118da8e307b067402852934853ff Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 8 May 2025 15:29:04 +0530 Subject: [PATCH 4/4] fix: dark mode for upcoming evaluations --- .../src/components/Modals/EvaluationModal.vue | 5 +++-- .../src/components/UpcomingEvaluations.vue | 19 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/Modals/EvaluationModal.vue b/frontend/src/components/Modals/EvaluationModal.vue index 8d766a92..7491355a 100644 --- a/frontend/src/components/Modals/EvaluationModal.vue +++ b/frontend/src/components/Modals/EvaluationModal.vue @@ -42,10 +42,11 @@
{{ formatTime(slot.start_time) }} - diff --git a/frontend/src/components/UpcomingEvaluations.vue b/frontend/src/components/UpcomingEvaluations.vue index 7c978b67..93b4594e 100644 --- a/frontend/src/components/UpcomingEvaluations.vue +++ b/frontend/src/components/UpcomingEvaluations.vue @@ -1,7 +1,7 @@