Skip to content

Rebuilding Date/Time Picker for more flexibility#9569

Merged
Gaya merged 175 commits intomasterfrom
feature/DateTimeRange
Feb 8, 2021
Merged

Rebuilding Date/Time Picker for more flexibility#9569
Gaya merged 175 commits intomasterfrom
feature/DateTimeRange

Conversation

@kyleknighted
Copy link
Copy Markdown
Contributor

@kyleknighted kyleknighted commented Nov 20, 2020

Description

Creating new Date & Time Range experience for the Search bar (Dashboard & Widgets included)

Motivation and Context

Allowing more flexibility in the date and time chosen by the User

Screenshots (if appropriate):

image
image
image
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* temp -> tempTimeRange

* Linting

* Keyword output

* All time ranges loading properly

* react hook linting

* lint weak objects

* Error on TimeRangeDisplay default type
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* Linting

* Rendering Live Preview

* merge/rebase touchups
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* Linting

* merge/rebase touchups

* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Flow Tests

* Some Cleanup

* Linting

* Remove TimerangeSelector

* Changing From time updates preview & saveable

* Relative From Range working

* Layout touchup and handle All Time uncheck

* RelativeTimeRangeSelector tests

* Clean up configuration of relative times

* Disable All Time check if query limit defined

* Wroking out a couple responsive issues, but needs more drastic code changes to fix other problems

* merge/rebase touchups

* lint

* Updating some tests to get more passing

* lint

* reverting & commenting

* update to newer function style
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* temp -> tempTimeRange

* Linting

* Keyword output

* All time ranges loading properly

* react hook linting

* lint weak objects

* Error on TimeRangeDisplay default type
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* Linting

* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Flow Tests

* Some Cleanup

* Linting

* Updating some tests to get more passing

* TimeRangeLivePreview tests and flow typing

* More tests & linting

* failing tests & updated snaps

* revert package

* updating snaps
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* temp -> tempTimeRange

* Linting

* Keyword output

* All time ranges loading properly

* react hook linting

* lint weak objects

* Error on TimeRangeDisplay default type
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* Linting

* Rendering Live Preview

* merge/rebase touchups
* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Styling TimeRangeDisplay

* Flow Tests

* Some Cleanup

* Linting

* merge/rebase touchups

* Migrating original range options to Popover

* Converting existing DateTimePicker to Popover

* Flow Tests

* Some Cleanup

* Linting

* Remove TimerangeSelector

* Changing From time updates preview & saveable

* Relative From Range working

* Layout touchup and handle All Time uncheck

* RelativeTimeRangeSelector tests

* Clean up configuration of relative times

* Disable All Time check if query limit defined

* Wroking out a couple responsive issues, but needs more drastic code changes to fix other problems

* merge/rebase touchups

* lint

* Updating some tests to get more passing

* lint

* reverting & commenting

* update to newer function style
@kyleknighted kyleknighted marked this pull request as ready for review February 3, 2021 13:29
Copy link
Copy Markdown
Member

@kmerz kmerz left a comment

Choose a reason for hiding this comment

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

  • I have problem with the number input for relative timerange, but I will create an Issue for that.
  • I tested it on my machine and beside the already mentioned problem it is fine.
  • The only open think is the test which was commented out. Either delete the test if it is not relevant anymore, fix the test or add a comment why you cannot activate the test.

// to: '2019-10-10T12:26:31.146Z',
// },
// })));
// });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the problem with this?

Copy link
Copy Markdown
Contributor

@edmundoa edmundoa left a comment

Choose a reason for hiding this comment

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

I haven't looked at the code but clicked around. It all seemed to work and I like it a lot, it makes things way easier to understand in my opinion. Great job! 🎉

@kyleknighted kyleknighted requested a review from kmerz February 4, 2021 22:00
Copy link
Copy Markdown
Member

@kmerz kmerz left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Worked on my machine! ✔️

Copy link
Copy Markdown
Member

@dennisoelkers dennisoelkers left a comment

Choose a reason for hiding this comment

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

After merging target branch in, I am seeing styling glitches in the absolute time range section:

image

Also, one suggestion: can we open the date picker when a user clicks on the timerange summary next to it?

@kyleknighted
Copy link
Copy Markdown
Contributor Author

kyleknighted commented Feb 5, 2021

@dennisoelkers this is actually broken in master and not on this branch
image

cc: @Gaya

@Gaya
Copy link
Copy Markdown
Contributor

Gaya commented Feb 8, 2021

This should fix that problem in develop #10026, sorry for the inconvience

kyleknighted and others added 4 commits February 8, 2021 06:55
# Conflicts:
#	graylog2-web-interface/src/components/common/Select.tsx
#	graylog2-web-interface/src/views/components/DashboardSearchBar.tsx
#	graylog2-web-interface/src/views/components/SearchBar.tsx
#	graylog2-web-interface/src/views/components/widgets/EditWidgetFrame.tsx
Copy link
Copy Markdown
Member

@dennisoelkers dennisoelkers left a comment

Choose a reason for hiding this comment

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

All issues resolved, looks good and works fine! Happy to get this in! 🎉

@Gaya Gaya merged commit 6409181 into master Feb 8, 2021
@Gaya Gaya deleted the feature/DateTimeRange branch February 8, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants