iachat/app/javascript/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
..
api feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
assets revert: Next bubble improvements (#10795) 2025-01-29 20:04:45 -08:00
components feat: Upgrade Dyte apis to v2 (#10706) 2025-02-19 14:47:48 -08:00
components-next feat: Upgrade Dyte apis to v2 (#10706) 2025-02-19 14:47:48 -08:00
composables feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
constants feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
helper fix: Initialize SDK along with emitter registration (#10896) 2025-02-12 22:14:04 -08:00
i18n feat: Add the ability to block/unblock contact via contact details page (#10899) 2025-02-13 14:59:35 -08:00
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: show email subject in conversation search results (#10843) 2025-02-06 10:38:57 +05:30
routes fix: Convert seconds based metric tooltips to readable format (#10938) 2025-02-20 17:49:28 -08:00
store feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js chore: Add internal feature flags for Chatwoot Cloud (#10902) 2025-02-15 16:21:46 -08:00