Commit 79e1717
authored
Add checklist and checklist item management features (#1062)
- Implement ChecklistPolicy and ChecklistItemPolicy for authorization.
- Create views for checklists including index, show, new, edit, and form
partials.
- Add routes for checklists and nested checklist items.
- Create migrations for checklists and checklist items with necessary
fields.
- Add factories for checklist and checklist items for testing.
- Implement request specs for checklist CRUD operations and
authorization.
- Update locale files for checklist-related translations.
## Summary
Describe the change and the motivation.
## Checklist
- [ ] Tests added/updated and passing (`bin/ci`).
- [ ] Lint and security checks (`rubocop`, `brakeman`, `bundler-audit`).
- [ ] Documentation updated under `docs/` describing new/changed
functionality.
- [ ] Mermaid diagrams (`docs/*.mmd`) updated to reflect changes.
- [ ] Rendered PNGs regenerated with `bin/render_diagrams` and
committed.
- [ ] For DB changes, included any needed backfills/dedupes and noted
risks.
## Screenshots / Diagrams
If applicable, include screenshots or link to updated diagrams.
## Notes
Anything reviewers should be aware of (migration order, flags, feature
toggles).File tree
77 files changed
+3587
-127
lines changed- .github/workflows
- app
- assets/stylesheets/better_together
- controllers/better_together
- helpers/better_together
- javascript/controllers/better_together
- models
- better_together
- ai/log
- joatu
- concerns/better_together
- joatu
- policies/better_together
- views/better_together
- checklist_items
- checklists
- config
- locales
- db/migrate
- docs/assessments
- spec
- dummy/db
- factories/better_together
- features
- helpers/better_together
- models
- better_together
- concerns
- policies/better_together
- requests/better_together
- support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+3587
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | | - | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
58 | | - | |
| 55 | + | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
| 63 | + | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
78 | | - | |
| 75 | + | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | | - | |
| 82 | + | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
92 | | - | |
| 89 | + | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
96 | 90 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
100 | 94 | | |
101 | 95 | | |
102 | | - | |
| 96 | + | |
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
106 | 100 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
112 | 107 | | |
113 | 108 | | |
114 | | - | |
115 | | - | |
| 109 | + | |
| 110 | + | |
116 | 111 | | |
117 | 112 | | |
118 | 113 | | |
| |||
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
128 | | - | |
129 | | - | |
| 123 | + | |
| 124 | + | |
130 | 125 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
136 | 131 | | |
137 | 132 | | |
138 | 133 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
147 | 142 | | |
148 | | - | |
| 143 | + | |
149 | 144 | | |
150 | 145 | | |
151 | 146 | | |
152 | | - | |
| 147 | + | |
153 | 148 | | |
154 | 149 | | |
155 | 150 | | |
156 | 151 | | |
157 | 152 | | |
158 | | - | |
159 | 153 | | |
160 | | - | |
| 154 | + | |
161 | 155 | | |
162 | 156 | | |
163 | 157 | | |
| |||
229 | 223 | | |
230 | 224 | | |
231 | 225 | | |
232 | | - | |
| 226 | + | |
233 | 227 | | |
234 | 228 | | |
235 | 229 | | |
| |||
469 | 463 | | |
470 | 464 | | |
471 | 465 | | |
472 | | - | |
473 | 466 | | |
474 | 467 | | |
475 | | - | |
| 468 | + | |
476 | 469 | | |
477 | 470 | | |
478 | 471 | | |
| |||
529 | 522 | | |
530 | 523 | | |
531 | 524 | | |
532 | | - | |
| 525 | + | |
533 | 526 | | |
534 | 527 | | |
535 | 528 | | |
| |||
548 | 541 | | |
549 | 542 | | |
550 | 543 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
563 | 556 | | |
564 | | - | |
| 557 | + | |
565 | 558 | | |
566 | 559 | | |
567 | 560 | | |
| |||
576 | 569 | | |
577 | 570 | | |
578 | 571 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
583 | 576 | | |
584 | 577 | | |
585 | 578 | | |
| |||
622 | 615 | | |
623 | 616 | | |
624 | 617 | | |
625 | | - | |
626 | | - | |
627 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
628 | 621 | | |
629 | 622 | | |
630 | 623 | | |
| |||
791 | 784 | | |
792 | 785 | | |
793 | 786 | | |
| 787 | + | |
794 | 788 | | |
795 | 789 | | |
796 | 790 | | |
| |||
851 | 845 | | |
852 | 846 | | |
853 | 847 | | |
854 | | - | |
| 848 | + | |
855 | 849 | | |
856 | 850 | | |
857 | 851 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments