HarperFast / HarperFast/studio

Log page | user is able to add 6 digits to year instead of 4

Open
#1,279 0 comments 0 reactions 0 assignees View on GitHub
ui consistency
Dominant language
TypeScript
Stars
5
Forks
4
Avg merge
1d 8h
Merged PRs (30d)
40

Description

We need to set the expected minimum and maximum for the start and end dates. This will prevent year entries like 40999, etc. Entering 2030 doesn’t even make sense when looking at logs, we should clamp it to be between the time when the instance was created, and right now.

### HarperDB Instance Version

4.0

## Expected Behavior

When the user selects the Start Date input field, the following placeholder appears:

`mm/dd/yyyy` when a user types in 4 digits for the year, the cursor should navigate to hours and minute input.

## Actual Behavior

When the user selects the Start Date input field, the following placeholder appears:

`mm/dd/yyyy` when a user types in 4 digits for the year, the cursor resumes in the year input and will allow a user to input 6 digits before moving to hours and minute input.

## Steps to Reproduce

1. Login to Fabric → Select Organization and login to a Cluster.
2. Once in the Cluster, select ‘Logs’ tab.
3. From the left nav bar for filtering logs, select `mm`in either the start or end date input selector.
4. Enter two valid digits.

1. The cursor will automatically move to `dd`.

5. Enter two valid digits.

1. The cursor will automatically move to `yyyy`.

6. Enter 4 valid digits.

1. Notice the cursor still remains in the `yyyy` placeholder.
2. Add two more digits.
3. Then the cursor will move to the Hour input.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.