iachat/app/javascript/dashboard/store
Shivam Mishra 1140ca7a78
fix: stale report value shown if summary fetch breaks (#11270)
This pull request includes several changes to better show the report
metrics fetching status on the dashboard. This also prevents showing
stale data in case fetching summary fails due to timeout or other issue

The most important changes include adding a new fetching status state to
the store called `summaryFetchingStatus`, updating the
`useReportMetrics` composable, and modifying the `ChartStats` component
to handle different fetching statuses.

#### Loading
![CleanShot 2025-04-09 at 13 49
35@2x](https://github.com/user-attachments/assets/575c9905-0bf7-4a6e-8709-026896dd95f8)

#### Finished
![CleanShot 2025-04-09 at 13 49
43@2x](https://github.com/user-attachments/assets/ef7f8cb3-ca34-4627-a954-ba23f156d2ff)

#### Failed
<img width="1512" alt="image"
src="https://github.com/user-attachments/assets/d521a785-9299-4e59-94dc-561a7a84377e"
/>

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2025-04-15 20:18:06 +05:30
..
captain feat: Add support for bulk action for Captain FAQs (#10905) 2025-02-27 17:05:33 -08:00
modules fix: stale report value shown if summary fetch breaks (#11270) 2025-04-15 20:18:06 +05:30
utils feat: update notification settings (#10529) 2024-12-05 19:05:04 +05:30
constants.js fix: stale report value shown if summary fetch breaks (#11270) 2025-04-15 20:18:06 +05:30
index.js feat: Add support for bulk action for Captain FAQs (#10905) 2025-02-27 17:05:33 -08:00
mutation-types.js fix: stale report value shown if summary fetch breaks (#11270) 2025-04-15 20:18:06 +05:30