iachat/app/javascript/dashboard/routes/dashboard
Sivin Varghese b8fc921f9a
fix: Convert seconds based metric tooltips to readable format (#10938)
# Pull Request Template

## Description

Fixes
https://linear.app/chatwoot/issue/CW-4064/convert-average-metric-tooltips-from-seconds-to-readable-time-format

#### **Cause**
Chart tooltip configuration was using outdated Chart.js structure,
causing the time formatting function to not be applied correctly to
tooltip values in time-based metrics.

#### **Solution**
Updated tooltip configuration to use correct Chart.js Vue 3 plugin
structure

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

### **Screenshots**

#### **Before**
<img width="496" alt="image"
src="https://github.com/user-attachments/assets/a70cbfe6-f179-43dc-a8f4-93951b257e81"
/>


#### **After**
<img width="496" alt="image"
src="https://github.com/user-attachments/assets/ed5d0c6c-2404-43ae-82fa-bbe5c42cecca"
/>



## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-02-20 17:49:28 -08:00
..
campaigns feat(v4): Update the campaigns page design (#10371) 2024-10-31 11:57:13 +05:30
captain feat: Add frontend changes for Captain limits (#10749) 2025-01-24 09:21:09 -08:00
commands style: apply fixes for eslint issues [cw-3590] (#10210) 2024-10-03 15:02:12 +05:30
contacts feat: Add the ability to block/unblock contact via contact details page (#10899) 2025-02-13 14:59:35 -08:00
conversation feat: Ability to rearrange macros in sidebar (#10879) 2025-02-13 17:26:05 +05:30
customviews fix: vue 3 followup fixes (#10213) 2024-10-03 19:59:07 +05:30
helpcenter fix: ignore subgroups without link when checking for permission (#10690) 2025-01-15 18:16:10 +05:30
inbox fix: UI issue with pt-Br locale (#10897) 2025-02-13 12:42:28 -08:00
notifications feat(v4): Auto-navigate to first menu item on group menu open(#10350) 2024-10-25 13:01:29 -07:00
settings fix: Convert seconds based metric tooltips to readable format (#10938) 2025-02-20 17:49:28 -08:00
suspended feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
dashboard.routes.js feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
Dashboard.vue feat(v4): Compose new conversation without multiple clicks (#10545) 2024-12-05 20:16:29 -08:00