-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to date filter and datetime utils (#792)
Fixes to date filter behaviour - The date filter correctly sets start and end time when double clicking on a day in calendar - The date filter now sets end time when closed after selecting only start time - Updated quick select options with more useful values Use dayjs to calculate time duration for archival and basic visibility views Add the day gap in config Remove unused datetime utils
- Loading branch information
1 parent
74fba0c
commit 035cf68
Showing
11 changed files
with
78 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
export const DATE_FORMAT = 'dd MMM yyyy, HH:mm:ss z'; | ||
|
||
export const QUICK_SELECT_OPTIONS = [ | ||
{ label: 'Last 5 minutes', durationSeconds: 5 * 60 }, | ||
{ label: 'Last 15 minutes', durationSeconds: 15 * 60 }, | ||
{ label: 'Last 1 hour', durationSeconds: 1 * 60 * 60 }, | ||
{ label: 'Last 6 hours', durationSeconds: 6 * 60 * 60 }, | ||
{ label: 'Last 12 hours', durationSeconds: 12 * 60 * 60 }, | ||
{ label: 'Last 1 day', durationSeconds: 1 * 24 * 60 * 60 }, | ||
{ label: 'Last 7 days', durationSeconds: 7 * 24 * 60 * 60 }, | ||
] as const satisfies Array<{ label: string; durationSeconds: number }>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
src/utils/datetime/__tests__/get-date-days-before-today.test.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/utils/datetime/__tests__/get-timestamp-ns-from-iso.test.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/views/domain-workflows-archival/config/domain-workflows-archival-start-days.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const DOMAIN_WORKFLOWS_ARCHIVAL_START_DAYS_CONFIG = 10; | ||
|
||
export default DOMAIN_WORKFLOWS_ARCHIVAL_START_DAYS_CONFIG; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/views/domain-workflows-basic/config/domain-workflows-basic-start-days.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const DOMAIN_WORKFLOWS_BASIC_START_DAYS_CONFIG = 30; | ||
|
||
export default DOMAIN_WORKFLOWS_BASIC_START_DAYS_CONFIG; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters