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

fix: open the timepicker on clicking the time picker input after closing the timezone picker by clicking outside it #6522

Conversation

ahmadshaheer
Copy link
Collaborator

@ahmadshaheer ahmadshaheer commented Nov 25, 2024

Summary

  • fix the issue of clicking on time range input after closing the timezone picker not showing time picker

Related Issues / PR's

Part of https://github.com/SigNoz/engineering-pod/issues/2005

Screenshots

Before:

2024-11-25.11-14-01.mov

After:

2024-11-25.11-13-22.mov

Affected Areas and Manually Tested Areas

  • time range picker

Important

Fixes issue in CustomTimePicker.tsx where time picker did not open after closing timezone picker by resetting activeView in handleOpenChange().

  • Behavior:
    • Fixes issue in CustomTimePicker.tsx where clicking on time range input after closing timezone picker did not show time picker.
    • Resets activeView to 'datetime' in handleOpenChange() when popover is closed.

This description was created by Ellipsis for d37e5f5. It will automatically update as commits are pushed.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the bug Something isn't working label Nov 25, 2024
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to d37e5f5 in 18 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. frontend/src/components/CustomTimePicker/CustomTimePicker.tsx:156
  • Draft comment:
    Setting the 'open' state in 'handleOpenChange' might lead to unexpected behavior if the 'open' state is not in sync with the actual visibility of the popover. Consider ensuring the 'open' state accurately reflects the popover's visibility.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The change made in the PR is straightforward and aligns with the intent described in the PR. However, I noticed a potential issue with the use of the 'open' state in the 'handleOpenChange' function. The function sets the 'open' state, which might lead to unexpected behavior if the 'open' state is not in sync with the actual visibility of the popover. This could be a source of bugs, especially if the 'open' state is used elsewhere in the component.

Workflow ID: wflow_lV9l4tApo9rkhgfH


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@YounixM YounixM merged commit c71351d into feat/timezone-adjusted-time-range-in-time-picker Nov 25, 2024
6 of 9 checks passed
YounixM pushed a commit that referenced this pull request Nov 25, 2024
* feat: display timezone adjusted time range in time picker

* fix: open the timepicker on clicking the input after closing the timezone picker by clicking outside (#6522)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants