-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
100 lines (59 loc) · 1.29 KB
/
notes.txt
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
const data structure
{
'localeString': []
}
//year span 5 <-current-> 5
Interface Budget{
name: string,
amount: number,
freq: weekly, monthly, annual
start date: default = now, custom
end date: default = forever, custom
keys: string[] -- generated on front-end
}
after getting Budget[] from db
generate keys from start,end,freq for each Budget
data structure 1
date - 365;
date 1: no expense
date 2: [array of expenses]
date 3:
date 4:
date 5:
...
date 365:
when rendering calendar - each cell can access each key
for each render
time -> n cells
space -> k dates * m expenses
add expense
time ->
data structure 2
expense 1 : [array of dates]
expense 2 : [array of dates]
expense 3 : [array of dates]
when rendering calendar
check if date included in dates array for each expense
for each render
time -> n cells * m expenses * o dates
space -> m expenses * o dates
timeline {
key : {
sE,
sT
}
}
{
}
timeline
insights
upcoming expenses - before next salary
if no salary
upcoming expenses - until end of month
//total net this month
while (dt.curr < dt. )
features
have dedicated colors for income and expenses
next and prev buttons on side of calendar <[ ]>
instead of responsive design
//have the user adjust the view