mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
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:
committed by
GitHub
parent
ee0e3e2e25
commit
0ee93dfd8c
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user