Commit ad712f2
authored
Enhance/load times (#1126)
This pull request introduces several improvements to the Better Together
platform, focusing on enhanced filtering, sorting, and pagination for
pages and platform invitations, as well as UI and performance
enhancements. The changes include new backend logic for filtering and
sorting collections, improved pagination styling, and better preloading
of associations to optimize queries.
### Platform Invitations: Filtering, Sorting, and Pagination
* Added comprehensive filtering and sorting logic to the
`PlatformInvitationsController`, allowing invitations to be filtered by
status, email, date fields, and sorted by multiple attributes.
Pagination is now applied to the invitations list for better usability.
[[1]](diffhunk://#diff-5197dbd0633c5f56fd1b09d798ff9a5c902c5fbabe36ada2107c0a2ba580cb95R10-R35)
[[2]](diffhunk://#diff-5197dbd0633c5f56fd1b09d798ff9a5c902c5fbabe36ada2107c0a2ba580cb95R148-R260)
* Updated controller actions for create, destroy, and resend to
consistently redirect to the invitations index page and improved error
handling for form submissions.
[[1]](diffhunk://#diff-5197dbd0633c5f56fd1b09d798ff9a5c902c5fbabe36ada2107c0a2ba580cb95L22-R74)
[[2]](diffhunk://#diff-5197dbd0633c5f56fd1b09d798ff9a5c902c5fbabe36ada2107c0a2ba580cb95L57-R104)
[[3]](diffhunk://#diff-5197dbd0633c5f56fd1b09d798ff9a5c902c5fbabe36ada2107c0a2ba580cb95L88-R126)
### Pages: Filtering, Sorting, and Performance
* Refactored the `PagesController` to support filtering by title and
slug, sorting by various attributes, and paginating results. Content
blocks are now preloaded with their associations for improved
performance.
[[1]](diffhunk://#diff-f88a9949466215662c8d25574d12de2b72ccc9af3d089d6b847eea3b6cb33f5fL17-R30)
[[2]](diffhunk://#diff-f88a9949466215662c8d25574d12de2b72ccc9af3d089d6b847eea3b6cb33f5fR165-R251)
* Simplified and modularized permitted parameters for page creation and
update, improving maintainability and clarity.
### UI and Styles
* Added a new `pagination.scss` file and imported it into the main
stylesheet, providing custom styles for pagination components and
enhancing accessibility and responsiveness.
[[1]](diffhunk://#diff-5499b5855ee11d3be02ebb1d25ee68dbe0331c7a2fc94250b73f716f42b803c6R39)
[[2]](diffhunk://#diff-75ee5cb95b10419a7583f3d14d33fe4db015a119b41b60e9094959e658cdc0dfR1-R79)
### Performance
* Improved performance in the events controller by removing unnecessary
preloading of text translations for events.
### Cleanup
* Removed the unused `event_datetime_controller.js` file, cleaning up
legacy code related to event time synchronization.File tree
62 files changed
+2785
-451
lines changed- app
- assets
- javascripts/better_together/controllers
- stylesheets/better_together
- controllers/better_together
- helpers/better_together
- javascript/controllers/better_together
- models
- better_together
- infrastructure
- metrics
- concerns/better_together
- infrastructure
- metrics
- policies/better_together
- views
- better_together
- pages
- person_platform_memberships
- platform_invitations
- platforms
- kaminari
- config
- locales
- lib/tasks
- spec
- controllers/better_together
- factories/better_together
- helpers/better_together
- jobs/better_together/metrics
- models/better_together/metrics
- performance
- requests/better_together
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+2785
-451
lines changedLines changed: 0 additions & 127 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | 328 | | |
330 | 329 | | |
331 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 157 | | |
168 | 158 | | |
169 | 159 | | |
| |||
172 | 162 | | |
173 | 163 | | |
174 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
175 | 184 | | |
176 | 185 | | |
177 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
178 | 252 | | |
179 | 253 | | |
0 commit comments