Repository navigation
Commit e302771
authored
Routines: on/off and next run on every row, compact routine page, New routine on one screen (#2704)
* Routines: on/off and next run on every row, compact routine page, New routine on one screen
- /routines uses the standard page header ("Routines") with the box as its first content.
- Each row has an on/off switch (pause/resume, the writes each page already makes), says Paused
when off, and says when it runs next where that is known.
- Group heads read the Bot's real name (read on its own when no list has the Bot) and "3 routines".
- Routine, goal and check-in pages: on/off and Run now (and Edit on a routine) on the title's line,
Delete in its own section at the bottom. A routine's page shows what it does first.
- The routine page subtitle drops "· Acts". Time zones show only when they differ from the viewer's.
- New routine: one card, labels above fields, When as one line of controls, and Done when, Posts in
and Name under Advanced settings. It fits an 820px window with Create in view.
* Routines: one shared routine row and switch, On/Paused everywhere, Run now back as a row
- RoutineRow and RoutineSwitch (components/routines/routine-row.tsx): icon tile, the name as the
link, one line, a default Switch beside the link. The routine, goal and check-in writes are in
one hook. A failed switch says "Couldn't turn it on. Try again." (or off). Paused rows say
"Paused · <schedule>". routineCount() is the one count format.
- /routines draws each Bot's rows in one card with RoutineRow.
- Every page's switch says On or Paused. The goal page no longer says Active twice.
- Run now is a row again on the routine, goal and check-in pages. The header keeps the switch,
and Edit on a routine.
- The goal page's "Its ... start it." line is part of the page description.
- Advanced settings is a ghost Button.
- A run in progress says "Running now" on routine and goal pages.
* Take main's CHANGELOG.md: the release note is in the PR description now1 parent 1067ac4 commit e302771
20 files changed
Lines changed: 1288 additions & 969 deletions
File tree
- app
- src
- components
- responsibilities
- routines
- suggestions
- lib/routines
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
270 | 303 | | |
271 | 304 | | |
272 | | - | |
| 305 | + | |
273 | 306 | | |
274 | 307 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 384 | | |
393 | 385 | | |
394 | 386 | | |
| |||
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
558 | 565 | | |
559 | 566 | | |
560 | 567 | | |
| |||
603 | 610 | | |
604 | 611 | | |
605 | 612 | | |
606 | | - | |
| 613 | + | |
607 | 614 | | |
608 | 615 | | |
609 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
13 | 7 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
25 | 12 | | |
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 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
83 | 19 | | |
84 | 20 | | |
85 | 21 | | |
86 | | - | |
87 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
88 | 25 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
92 | 31 | | |
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 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 32 | + | |
138 | 33 | | |
139 | 34 | | |
140 | 35 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 36 | + | |
| 37 | + | |
144 | 38 | | |
145 | 39 | | |
| 40 | + | |
146 | 41 | | |
147 | 42 | | |
148 | 43 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
152 | 47 | | |
153 | 48 | | |
154 | 49 | | |
155 | 50 | | |
156 | 51 | | |
157 | 52 | | |
158 | | - | |
| 53 | + | |
159 | 54 | | |
160 | 55 | | |
161 | | - | |
| 56 | + | |
162 | 57 | | |
163 | | - | |
| 58 | + | |
164 | 59 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
173 | 71 | | |
174 | 72 | | |
175 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments