-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dashboard
130 lines (125 loc) · 2.45 KB
/
Dashboard
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
---
cssclass: maxWidth, dashboard
---
````ad-dashb
title: Today
color: 245, 229, 12
icon: calendar-today
- ## ☝️ Must do today
```tasks
not done
due before in 1 day
hide start date
hide due date
hide scheduled date
hide edit button
```
- ## 🤝🏼 Meetings
```dataview
list WITHOUT ID project + " - " + "[["+file.name+"]]"
FROM #meeting and -#held
WHERE contains(date(Date), date(today))
```
- ## 📮 Inbox
```tasks
not done
no due date
description does not include #
no scheduled date
path does not include Templates
```
````
````ad-dashb
title: Work
icon: briefcase
- ## 💪 Try to do today
```tasks
not done
scheduled before in 1 day
hide start date
hide due date
hide scheduled date
hide edit button
limit 5
```
- ## 📅 Upcoming
```tasks
not done
due before in 3 days
due after in 0 days
hide start date
hide scheduled date
hide edit button
limit 5
```
- ## 🍅 / ☑️ Completed
```tracker
searchType: text, dvField, text
searchTarget: 🍅, ignore, ☑️
datasetName: pomodoros, reference, tasks
folder: /
startDate: -6d
endDate: 0d
accum: true, false, true
penalty: 0, 10, 0
fitPanelWidth: true
line:
showLine: true
yAxisLabel: Nbr
xAxisLabel: Date
showPoint: false, false, false
yMin: 0
fillGap: true
lineColor: "red, #A9D4C0, blue"
```
````
````ad-dashb
title: All todos
icon: list
collapse: true
color: 3, 135, 36
- ## 🆙 With due-date
```tasks
not done
due after 1999-01-01
hide edit button
hide start date
```
- ## ⬜ Other tasks
```tasks
not done
scheduled before in 90 days
scheduled after in 1 days
hide edit button
hide start date
limit 5
```
````
````ad-dashb
title: Recent cases
color: 0, 169, 206
icon: file-contract
```dataviewjs
function checkDate(item) {
if (moment(new Date(item.lastDate)).isAfter(moment().subtract(2, 'weeks'))){
return true
}
return false
}
let customers = dv.pages('"Customers" and #case')
for (let customer of customers){
customer.lastDate = customer.file.mday
for (let inlink of customer.file.inlinks){
if(dv.page(inlink).file.tags.indexOf("#meeting") > -1 && dv.page(inlink).file.folder == customer.file.folder){
if (customer.lastDate < dv.page(inlink).file.mday){
customer.lastDate = dv.page(inlink).file.mday
}
}
}
}
dv.table(["Logo","Name", "Products","AE", "Last activity"], customers
.filter(t => checkDate(t))
.sort(k => k.lastDate, "desc")
.map(b => ["![](" + b.logo + ")", "[["+b.file.name+"]]", b.products,b.ae, b.lastDate]))
```
````