-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: fix the mismatch between time range picker placeholder and timerange popover values #6675
base: main
Are you sure you want to change the base?
Conversation
…ange popover values
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
1 similar comment
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this 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 68cead0 in 1 minute and 16 seconds
More details
- Looked at
56
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. frontend/src/components/CustomTimePicker/RangePickerModal.tsx:60
- Draft comment:
The division by 1000_000 seems incorrect for converting from microseconds to milliseconds. It should be 1000 to convert from milliseconds to seconds. Please verify the time unit and adjust accordingly. - Reason this comment was not posted:
Comment was on unchanged code.
2. frontend/src/components/CustomTimePicker/RangePickerModal.tsx:67
- Draft comment:
Avoid using inline styles in React components. Use external stylesheets, CSS classes, or styled components instead. This applies to theclassName
usage here. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_APaTijBaQfp3Ia64
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this 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! Incremental review on c4cc035 in 44 seconds
More details
- Looked at
29
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. frontend/src/components/CustomTimePicker/RangePickerModal.tsx:60
- Draft comment:
The division by1000_000
seems incorrect for convertingminTime
andmaxTime
to milliseconds. It should be1000
instead.
dayjs(minTime / 1000).tz(timezone.value),
- Reason this comment was not posted:
Comment was on unchanged code.
2. frontend/src/components/CustomTimePicker/RangePickerModal.tsx:61
- Draft comment:
The division by1000_000
seems incorrect for convertingmaxTime
to milliseconds. It should be1000
instead.
dayjs(maxTime / 1000).tz(timezone.value),
- Reason this comment was not posted:
Marked as duplicate.
3. frontend/src/components/CustomTimePicker/RangePickerModal.tsx:78
- Draft comment:
Avoid using thecomponent/index.tsx
file structure approach, as it makes it difficult to debug and find components using global search tools like VS Code. This applies to theRangePickerModal.tsx
file. - Reason this comment was not posted:
Comment was not on a valid diff hunk.
Workflow ID: wflow_nC0YjmpjNe2RCPzf
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Summary
Related Issues / PR's
Screenshots
Before:
Screen.Recording.2024-12-16.at.6.01.29.PM.1.mov
After:
Affected Areas and Manually Tested Areas
Important
Fixes mismatch between time range picker placeholder and popover values in
RangePickerModal.tsx
by usinguseMemo
and adjustingshowTime
andformat
.RangePickerModal.tsx
.useMemo
to calculaterangeValue
forRangePicker
based onminTime
,maxTime
, andtimezone
.showTime
to use 12-hour format and updatesformat
to include timezone adjustment.This description was created by for c4cc035. It will automatically update as commits are pushed.