Commit 4a92a67
authored
Wip/new to nl 2 (#658)
Changes made as part of the Wayfinder Project in partnership with
Collective Interchange.
https://github.com/collective-interchange-coop/new-to-nl
# Summary: Wayfinder Enhancements and Fixes
This pull request introduces a comprehensive set of updates,
optimizations, and new features for the **Wayfinder Project** in
partnership with **Collective Interchange**. The changes include
enhancements to navigation, content blocks, caching, localization, and
accessibility, as well as various bug fixes and performance
improvements.
---
## Key Changes:
### 1. Navigation Improvements:
- Improved sidebar and top navigation usability and performance.
- Optimized SQL queries for navigation rendering, reducing database load
times.
- Cached sidebar, header, and footer navigation items for enhanced
performance.
- Enhanced dropdown menu styling and active state behavior.
- Added scroll indicators to large hero blocks for better user
experience.
### 2. Content Block Enhancements:
- Introduced new content block types, including hero blocks and
translatable HTML blocks.
- Improved background image support with optimized rendering and
caching.
- Added a customizable CSS content block for platform-wide theming.
- Enhanced page builder functionality with independent CRUD operations
for blocks.
### 3. Caching and Performance Optimization:
- Cached frequently accessed data such as navigation items, blocks, and
permissions.
- Preloaded associations to improve rendering times for navigation and
profile pages.
- Introduced instance-level caching for roles and CSS blocks.
- Drastically improved load times for navigation and page blocks through
caching.
### 4. Localization and Translation:
- Completed Spanish and French translations for key views and features.
- Added automated translation tasks using OpenAI API for translatable
attributes.
- Ensured consistent capitalization and localization of translated
attributes.
- Scoped routes and dispatch helpers to respect locale settings.
### 5. Notifications and Messaging:
- Added the `noticed` gem for in-app notifications.
- Introduced initial versions of messaging and conversations
functionality.
- Enhanced notification management actions and UI.
### 6. Metrics and Analytics:
- Added tracking for page views, link clicks, and downloads.
- Implemented background jobs to process social share and metrics data.
- Excluded bot user agents and specific links (e.g., Trix editor links)
from tracking.
### 7. Accessibility and UI Enhancements:
- Improved accessibility for navigation, forms, and buttons.
- Enhanced profile images and social share button layout.
- Added password visibility toggles to login forms.
- Improved structure and spacing of UI elements for a more user-friendly
experience.
### 8. Bug Fixes:
- Resolved issues with navigation item visibility checks and link
generation.
- Fixed problems with route generation in localized contexts.
- Addressed caching issues for user navigation and content rendering.
---
## Technical Improvements:
- Added default profile images for people and communities.
- Enhanced performance profiling tools for platform managers.
- Resolved Rubocop and Brakeman warnings for code quality and security.
- Simplified Stimulus controller handling under the `better_together`
namespace.
---
## Future Considerations:
This PR establishes a solid foundation for upcoming features, including:
- Expanded page builder capabilities with additional block types.
- Improved metrics tracking and analytics reporting.
- Further enhancements to automated translation for rich text
attributes.
---File tree
519 files changed
+11622
-4670
lines changed- .github/workflows
- app
- assets
- images
- cover_images
- profile_images
- stylesheets/better_together
- trix-extensions
- builders/better_together
- concerns/better_together
- controllers
- better_together
- content
- metrics
- users
- concerns/better_together
- helpers/better_together
- metrics
- javascript
- better_together
- controllers
- trix-extensions
- controllers
- better_together
- jobs/better_together
- ai/log
- metrics
- mailers/better_together
- models
- better_together
- ai
- log
- content
- metrics
- concerns/better_together
- content
- notifiers/better_together
- policies/better_together
- content
- robots/better_together
- sanitizers/better_together/sanitizers
- views
- better_together
- addresses
- categories
- communities
- contact_details
- content
- blocks
- fields
- new
- template
- page_blocks
- block_types
- conversation_mailer
- conversations
- email_addresses
- geography
- continents
- countries
- regions
- settlements
- states
- host_dashboard
- messages
- metrics/reports
- new_message_notifier/notifications
- notifications
- pages
- people
- person_community_memberships
- person_platform_memberships
- phone_numbers
- platform_invitations
- platforms
- resource_permissions
- roles
- social_media_accounts
- static_pages
- users
- website_links
- wizard_step_definitions/host_setup
- devise
- confirmations
- passwords
- registrations
- sessions
- errors
- layouts/better_together
- bin
- config
- initializers
- locales
- db/migrate
- lib
- better_together
- tasks
- spec
- dummy
- config
- db
- factories/better_together
- ai/log
- content
- metrics
- helpers/better_together/metrics
- jobs/better_together/metrics
- mailers/better_together
- models/better_together
- ai/log
- metrics
- requests/better_together
- content
- geography
- routing/better_together
- geography
- views/better_together
- content/blocks
- conversations
- geography
- continents
- countries
- region_settlements
- regions
- settlements
- states
- messages
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
519 files changed
+11622
-4670
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
50 | 55 | | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
| |||
218 | 226 | | |
219 | 227 | | |
220 | 228 | | |
221 | | - | |
| 229 | + | |
222 | 230 | | |
223 | 231 | | |
224 | 232 | | |
| |||
254 | 262 | | |
255 | 263 | | |
256 | 264 | | |
257 | | - | |
258 | | - | |
| 265 | + | |
| 266 | + | |
259 | 267 | | |
260 | | - | |
261 | | - | |
| 268 | + | |
| 269 | + | |
262 | 270 | | |
263 | | - | |
| 271 | + | |
264 | 272 | | |
| 273 | + | |
265 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
266 | 278 | | |
267 | 279 | | |
268 | 280 | | |
| |||
278 | 290 | | |
279 | 291 | | |
280 | 292 | | |
| 293 | + | |
281 | 294 | | |
282 | | - | |
| 295 | + | |
283 | 296 | | |
284 | 297 | | |
285 | 298 | | |
286 | 299 | | |
287 | 300 | | |
288 | 301 | | |
289 | 302 | | |
290 | | - | |
291 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
292 | 306 | | |
293 | | - | |
294 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
295 | 311 | | |
296 | 312 | | |
297 | 313 | | |
| |||
325 | 341 | | |
326 | 342 | | |
327 | 343 | | |
| 344 | + | |
| 345 | + | |
328 | 346 | | |
329 | 347 | | |
330 | 348 | | |
| |||
362 | 380 | | |
363 | 381 | | |
364 | 382 | | |
365 | | - | |
| 383 | + | |
366 | 384 | | |
| 385 | + | |
367 | 386 | | |
368 | 387 | | |
369 | 388 | | |
370 | 389 | | |
371 | | - | |
| 390 | + | |
372 | 391 | | |
373 | 392 | | |
374 | 393 | | |
| |||
386 | 405 | | |
387 | 406 | | |
388 | 407 | | |
| 408 | + | |
389 | 409 | | |
390 | 410 | | |
391 | 411 | | |
| |||
404 | 424 | | |
405 | 425 | | |
406 | 426 | | |
| 427 | + | |
407 | 428 | | |
408 | | - | |
| 429 | + | |
409 | 430 | | |
410 | 431 | | |
411 | 432 | | |
| |||
593 | 614 | | |
594 | 615 | | |
595 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
596 | 621 | | |
597 | 622 | | |
598 | 623 | | |
| |||
654 | 679 | | |
655 | 680 | | |
656 | 681 | | |
| 682 | + | |
657 | 683 | | |
658 | 684 | | |
659 | 685 | | |
| |||
673 | 699 | | |
674 | 700 | | |
675 | 701 | | |
676 | | - | |
| 702 | + | |
677 | 703 | | |
678 | 704 | | |
679 | 705 | | |
680 | 706 | | |
681 | 707 | | |
682 | 708 | | |
683 | | - | |
| 709 | + | |
684 | 710 | | |
685 | 711 | | |
686 | 712 | | |
| |||
721 | 747 | | |
722 | 748 | | |
723 | 749 | | |
| 750 | + | |
724 | 751 | | |
725 | 752 | | |
726 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
23 | 38 | | |
24 | 39 | | |
25 | | - | |
26 | 40 | | |
27 | 41 | | |
28 | | - | |
| 42 | + | |
29 | 43 | | |
30 | 44 | | |
31 | 45 | | |
32 | | - | |
33 | | - | |
34 | 46 | | |
35 | | - | |
36 | | - | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | | - | |
40 | 51 | | |
41 | 52 | | |
42 | | - | |
43 | | - | |
| 53 | + | |
| 54 | + | |
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
| 58 | + | |
47 | 59 | | |
48 | 60 | | |
49 | 61 | | |
| |||
56 | 68 | | |
57 | 69 | | |
58 | 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 | + | |
0 commit comments