Skip to content

[Experimental] Fix glob input box#6

Open
Punpun1643 wants to merge 15 commits intomasterfrom
fix-glob-input-box
Open

[Experimental] Fix glob input box#6
Punpun1643 wants to merge 15 commits intomasterfrom
fix-glob-input-box

Conversation

@Punpun1643
Copy link
Owner

@Punpun1643 Punpun1643 commented Jun 18, 2022

Fixes reposense#1538

Proposed commit message

There is plenty of unused spaces beside the glob input box. 
The box can be made wider for better UIUX when user input searches. 

The filter button can be put vertically below the input box 
'for a smaller viewport size to make spaces for user input.

Let's increase the width of the input box and 
make the button vertically aligned for a smaller viewport size.

Other information

Before modification

filter-glob-before.mp4

After modification

fix-filter-glob-css.mp4

Punpun1643 and others added 15 commits June 6, 2022 22:39
…ense#1776)

The use of Instant.ofEpochMilli(Long.MIN_VALUE) as the arbitrary first
commit date now fails shallow cloning for
testSinceBeginningDateRangeWithShallowCloning system test.

In addition, using this arbitrary date in convertToGitDateRangeArgs
when converting timezone results in an overflow causing sinceDate to
be greater than untilDate. Thus, no commit results are retrieved,
leading to failing system tests.

Also, the arbitrary first commit date is in UTC. However, in the
convertToGitDateRangeArgs method, the zoneId used for the conversion
is from the config, which may be different. This leads to an erroneous
timezone conversion.

Finally, using --since d1 with --period results in an unintended date
range because the --period and the arbitrary commit date from 
--since d1 are used to calculate the until date as the actual 
earliest commit date is not immediately available.

Let's change Instant.ofEpochMilli() to use 0 so that the arbitrary date
is 1970-01-01 and the overflow of the sinceDate can be avoided.

At the same time, let's convert the arbitrary date to the correct
timezone within the ArgsParser class and add a component test for
parsing --since d1 to check that the correct timezone is used for each
RepoConfiguration before cloning any repos.

Finally, let's raise a warning when --since d1 is being used with 
--period.
@Punpun1643 Punpun1643 marked this pull request as ready for review June 18, 2022 07:35
@Punpun1643 Punpun1643 changed the title Fix glob input box [Experimental] Fix glob input box Jun 18, 2022
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.

Code view: make the glob filter input box wider

3 participants