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

Fixes to date filter and datetime utils #792

Merged

Conversation

adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Jan 16, 2025

Summary

  • Fixes to date filter behaviour
    • The date filter correctly sets start and end time when double clicking on a day in calendar
    • The date filter now sets end time when closed after selecting only start time
    • Updated quick select options with more useful values
  • Use dayjs to calculate time duration for archival and basic visibility views
  • Add the day gap in config
  • Remove unused datetime utils

Test plan

Updated unit tests + ran locally.

Screen.Recording.2025-01-16.at.4.24.04.PM.mov
Screen.Recording.2025-01-16.at.4.24.52.PM.mov
Screenshot 2025-01-16 at 4 23 21 PM

@adhityamamallan adhityamamallan marked this pull request as ready for review January 16, 2025 15:28
@@ -40,9 +41,12 @@ export default function DomainWorkflowsArchivalHeader({
!queryParams.timeRangeStartArchival &&
!queryParams.timeRangeEndArchival
) {
const now = dayjs(new Date());
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: dayjs() is now. No need to create a Date Object

@adhityamamallan adhityamamallan merged commit 035cf68 into cadence-workflow:release/4.0.0 Jan 17, 2025
1 check passed
@adhityamamallan adhityamamallan deleted the date-fixes branch January 17, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants