TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
fix: handle drill-down correctly
Nikolai Giman344526b1b268
diff --git a/api/src/tv-modules/analytics/AnalyticsRoutes.ts b/api/src/tv-modules/analytics/AnalyticsRoutes.tsindex 688ef9e..ed2650c 100644--- a/api/src/tv-modules/analytics/AnalyticsRoutes.ts+++ b/api/src/tv-modules/analytics/AnalyticsRoutes.ts@@ -23,6 +23,5 @@ export default class AnalyticsRoutes implements Routable {const guards = [IsLoggedIn, RejectApiTokenAuth, CanAccessAnalytics]this.router.get('/sections', guards, this.controller.fetchSections)this.router.get('/drilldown/:sectionId', guards, this.controller.fetchDrillDown)- this.router.get('/drill-down/:sectionId', guards, this.controller.fetchDrillDown)}}diff --git a/web/src/components/features/analytics/AnalyticsChart.vue b/web/src/components/features/analytics/AnalyticsChart.vueindex d87dc30..62fd571 100644--- a/web/src/components/features/analytics/AnalyticsChart.vue+++ b/web/src/components/features/analytics/AnalyticsChart.vue@@ -61,9 +61,19 @@ function render() {if (props.section.payload.kind !== 'series') returnconst config: ChartConfiguration = build(props.section, currentChartType.value)+ const isDrillable = !!props.section.drillDown+config.options = {...(config.options ?? {}),- onClick: (_evt, elements, chart) => {+ onHover: (event, elements) => {+ const target = event.native?.target as HTMLElement | undefined+ if (!target) return+ target.style.cursor = isDrillable && elements.length ? 'pointer' : 'default'+ },+ }++ if (isDrillable) {+ config.options.onClick = (_evt, elements, chart) => {if (!elements.length) returnconst el = elements[0]const datasetIndex = el.datasetIndex@@ -78,7 +88,7 @@ function render() {index,meta: sectionDs?.meta,})- },+ }}if (instance) {