chore: added None filter option to the dashboard widgets (#3556)
* chore: added tab change animation * chore: widgets filtering logic updated * refactor: issues list widget * fix: tab navigation transition * fix: extra top spacing on opening the peek overview
This commit is contained in:
parent
ee0e3e2e25
commit
0ee93dfd8c
11 changed files with 270 additions and 147 deletions
|
|
@ -9,6 +9,8 @@ export const getCustomDates = (duration: TDurationFilterOptions): string => {
|
|||
let firstDay, lastDay;
|
||||
|
||||
switch (duration) {
|
||||
case "none":
|
||||
return "";
|
||||
case "today":
|
||||
firstDay = renderFormattedPayloadDate(today);
|
||||
lastDay = renderFormattedPayloadDate(today);
|
||||
|
|
@ -32,7 +34,9 @@ export const getRedirectionFilters = (type: TIssuesListTypes): string => {
|
|||
const today = renderFormattedPayloadDate(new Date());
|
||||
|
||||
const filterParams =
|
||||
type === "upcoming"
|
||||
type === "pending"
|
||||
? "?state_group=backlog,unstarted,started"
|
||||
: type === "upcoming"
|
||||
? `?target_date=${today};after`
|
||||
: type === "overdue"
|
||||
? `?target_date=${today};before`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue