Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp formatting to chart tooltips #1152

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

Rudra-Garg
Copy link
Contributor

@Rudra-Garg Rudra-Garg commented Jan 29, 2025

Previously chart tooltips only showed dates without time information, making it difficult to correlate chart events with specific times. This change adds proper timestamp formatting (including HH:mm:ss) to tooltips across all chart components.

The changes include:

  • Added timestamp formatting in chart tooltips using common.formatTimestamp()
  • Applied consistent formatting across all chart components
  • Maintained existing date formatting on x-axis labels

This addresses issue #1142 which requested adding timestamp information to make it easier to investigate events shown in charts.

Description

Added timestamp (HH:mm:ss) formatting to all chart tooltips to help users better
correlate visualization data points with system events. This enhancement makes it
easier to investigate peaks, troughs, and step changes by matching them with logs
and CI/CD pipeline activities.

Addressed Issue

Resolves #1142

Additional Details

The changes include:

  • Added timestamp formatting in chart tooltips using common.formatTimestamp()
  • Applied consistent formatting across all chart components
  • Maintained existing date formatting on x-axis labels

All dashboard chart and widget components have been updated to ensure consistent
timestamp display. The implementation uses the existing formatTimestamp() utility
to maintain consistency across the application.

Before:

image

After:

Screenshot 2025-01-29 190432
Screenshot 2025-01-29 191002

Checklist

@nscuro
Copy link
Member

nscuro commented Jan 29, 2025

Thanks @Rudra-Garg! Could you please sign-off your commits, so the DCO check passes? You can find instructions by clicking on the Details link next to the failing DCO check.

@nscuro nscuro added the enhancement New feature or request label Jan 29, 2025
@nscuro nscuro added this to the 4.13 milestone Jan 29, 2025
Previously chart tooltips only showed dates without time information, making
it difficult to correlate chart events with specific times. This change adds
proper timestamp formatting (including HH:mm:ss) to tooltips across all
chart components.

The changes include:
- Added timestamp formatting in chart tooltips using common.formatTimestamp()
- Applied consistent formatting across all chart components
- Maintained existing date formatting on x-axis labels

This addresses issue DependencyTrack#1142 which requested adding timestamp information to
make it easier to investigate events shown in charts.

Signed-off-by: Rudra Garg <[email protected]>
@Rudra-Garg
Copy link
Contributor Author

This pull request can be merged now I think

Copy link
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks for the ping!

@nscuro nscuro merged commit d7174e0 into DependencyTrack:master Feb 1, 2025
10 checks passed
@Rudra-Garg Rudra-Garg deleted the issue-#1142 branch February 1, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include Timestamp on Chart Tooltips
2 participants