Commit Graph
2 Commits
Author SHA1 Message Date
Abhay Padamani 83b7da00b4 fix: dashboard show time range differ warning when cache data is used (#4509)
- dashboard show time range differ warning when cache data is used

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a button to notify users when displayed data is cached and
differs from the selected time range.
- Added a new event to handle updates regarding cached data differences
in the dashboard components.

- **Enhancements**
- Improved caching mechanism to include time range specifications for
better data management.
- Enhanced responsiveness of components to changes in cached data
states.

- **Bug Fixes**
- Streamlined handling of null values in configuration options to
prevent undefined values from affecting logic.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-10 17:19:47 +05:30
5562edbb96 feat: cache dashboard panel data (#4287)
- #4486 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced a new `RelativeTime` component for displaying time in a
user-friendly format.
- Added functionality to display the last refreshed timestamp in various
dashboard components.
- Enhanced the `AddPanel` component to manage initial variable values
and improve time settings handling.
- Implemented a caching mechanism for managing panel-level cache data in
dashboards.

- **Improvements**
- Streamlined date-saving logic in the `DateTime` component for a more
efficient user experience.
- Improved notification system in the `TableRenderer` component to
provide positive feedback on successful CSV downloads.
- Enhanced the `usePanelDataLoader` function for better data retrieval
and caching management.

- **Bug Fixes**
- Resolved issues with time management and panel refresh operations for
better interactivity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-09-06 20:16:05 +05:30