You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Full names: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`
10
+
- Case-insensitive: `FRIDAY`, `friday`, `Fri` all work
11
+
12
+
## Sunday (Default)
13
+
14
+
```tracker
15
+
searchType: tag
16
+
searchTarget: test
17
+
folder: diary
18
+
startDate: 2021-01-01
19
+
endDate: 2021-01-31
20
+
month:
21
+
startWeekOn: Sun
22
+
mode: circle
23
+
```
24
+
25
+
## Monday
26
+
27
+
```tracker
28
+
searchType: tag
29
+
searchTarget: test
30
+
folder: diary
31
+
startDate: 2021-01-01
32
+
endDate: 2021-01-31
33
+
month:
34
+
startWeekOn: Mon
35
+
mode: circle
36
+
```
37
+
38
+
## Tuesday
39
+
40
+
```tracker
41
+
searchType: tag
42
+
searchTarget: test
43
+
folder: diary
44
+
startDate: 2021-01-01
45
+
endDate: 2021-01-31
46
+
month:
47
+
startWeekOn: Tue
48
+
mode: circle
49
+
```
50
+
51
+
## Wednesday
52
+
53
+
```tracker
54
+
searchType: tag
55
+
searchTarget: test
56
+
folder: diary
57
+
startDate: 2021-01-01
58
+
endDate: 2021-01-31
59
+
month:
60
+
startWeekOn: Wed
61
+
mode: circle
62
+
```
63
+
64
+
## Thursday
65
+
66
+
```tracker
67
+
searchType: tag
68
+
searchTarget: test
69
+
folder: diary
70
+
startDate: 2021-01-01
71
+
endDate: 2021-01-31
72
+
month:
73
+
startWeekOn: Thu
74
+
mode: circle
75
+
```
76
+
77
+
## Friday
78
+
79
+
```tracker
80
+
searchType: tag
81
+
searchTarget: test
82
+
folder: diary
83
+
startDate: 2021-01-01
84
+
endDate: 2021-01-31
85
+
month:
86
+
startWeekOn: Fri
87
+
mode: circle
88
+
```
89
+
90
+
## Saturday
91
+
92
+
```tracker
93
+
searchType: tag
94
+
searchTarget: test
95
+
folder: diary
96
+
startDate: 2021-01-01
97
+
endDate: 2021-01-31
98
+
month:
99
+
startWeekOn: Sat
100
+
mode: circle
101
+
```
102
+
103
+
## Case Insensitivity
104
+
105
+
All of these are equivalent:
106
+
107
+
```tracker
108
+
searchType: tag
109
+
searchTarget: test
110
+
folder: diary
111
+
startDate: 2021-01-01
112
+
endDate: 2021-01-31
113
+
month:
114
+
startWeekOn: FRIDAY
115
+
mode: circle
116
+
```
117
+
118
+
```tracker
119
+
searchType: tag
120
+
searchTarget: test
121
+
folder: diary
122
+
startDate: 2021-01-01
123
+
endDate: 2021-01-31
124
+
month:
125
+
startWeekOn: friday
126
+
mode: circle
127
+
```
128
+
129
+
```tracker
130
+
searchType: tag
131
+
searchTarget: test
132
+
folder: diary
133
+
startDate: 2021-01-01
134
+
endDate: 2021-01-31
135
+
month:
136
+
startWeekOn: Friday
137
+
mode: circle
138
+
```
139
+
140
+
## Full Day Names
141
+
142
+
You can also use full day names:
143
+
144
+
```tracker
145
+
searchType: tag
146
+
searchTarget: test
147
+
folder: diary
148
+
startDate: 2021-01-01
149
+
endDate: 2021-01-31
150
+
month:
151
+
startWeekOn: Sunday
152
+
mode: circle
153
+
```
154
+
155
+
## Error Handling
156
+
157
+
Invalid values will show a clear error message:
158
+
159
+
```tracker
160
+
searchType: tag
161
+
searchTarget: test
162
+
folder: diary
163
+
startDate: 2021-01-01
164
+
endDate: 2021-01-31
165
+
month:
166
+
startWeekOn: InvalidDay
167
+
mode: circle
168
+
```
169
+
170
+
**Expected Error:** "Invalid startWeekOn value: 'InvalidDay'. Must be one of: Sun, Mon, Tue, Wed, Thu, Fri, Sat (or full day names like Sunday, Monday, etc.)"
errorMessage=`Invalid startWeekOn value: "${startWeekOnValue}". Must be one of: Sun, Mon, Tue, Wed, Thu, Fri, Sat (or full day names like Sunday, Monday, etc.)`;
2082
+
returnerrorMessage;
2083
+
}
2084
+
}
2085
+
month.startWeekOn=startWeekOnValue;
2076
2086
// console.log(month.startWeekOn);
2077
2087
2078
2088
// showCircle
@@ -2310,6 +2320,22 @@ export function getRenderInfoFromYaml(
2310
2320
}
2311
2321
}
2312
2322
2323
+
// startWeekOn
2324
+
letheatmapStartWeekOnValue=getStringFromInput(
2325
+
yamlHeatmap?.startWeekOn,
2326
+
heatmap.startWeekOn
2327
+
);
2328
+
// Validate day abbreviation - supports both abbreviations and full names
errorMessage=`Invalid startWeekOn value: "${heatmapStartWeekOnValue}". Must be one of: Sun, Mon, Tue, Wed, Thu, Fri, Sat (or full day names like Sunday, Monday, etc.)`;
0 commit comments