Combined work from 10 commits:
1. 803e1d1
Enhance Civic authentication with additional IdP support and update documentation
- Extended the Civic authentication session to support additional identity providers: Facebook, Nabezky, and OpenStreetMap, alongside existing Google and Apple options.
- Updated the `rovas_oauth` module to reflect these changes, ensuring proper handling of email verification requirements, particularly for OpenStreetMap.
- Revised documentation to clarify the new provider mappings and the behavior of email verification across different IdPs, enhancing developer understanding and integration capabilities.
https://github.com/alexanderzatko/rovas/commit/803e1d122fbf22bc8b7062152...
2. 7c90a9d
Refine error handling in Civic authentication processes and update documentation
- Enhanced error handling in the `rovas_oauth` module to ensure that specific service errors (e.g., 401 and 409 statuses) are not rewritten as generic 500 errors, preserving the original response for better debugging and user feedback.
- Updated the Civic integration documentation to reflect these changes, clarifying the behavior of error responses during authentication processes.
- Added a new task status for `civic-auth-services-error-swallow`, indicating the resolution of previously swallowed error statuses and their expected handling in production environments.
https://github.com/alexanderzatko/rovas/commit/7c90a9dff287021d4defd2a6c...
3. 7eced2d
Refine Civic authentication username handling and update documentation
- Updated the username generation logic in the `rovas_oauth` module to accommodate OpenStreetMap's `display_name` as a source for Drupal usernames, ensuring that `field_full_name` remains empty for OSM accounts.
- Revised related functions to clarify the distinction between username generation from email local-part and OSM display names, enhancing data integrity.
- Updated documentation to reflect these changes, providing clearer guidance on username handling across different identity providers.
https://github.com/alexanderzatko/rovas/commit/7eced2db34005dfe4648fb33e...
4. 04cdc5c
Update Civic authentication documentation and allow unverified emails for Facebook and OpenStreetMap
- Enhanced the documentation to clarify that both Facebook and OpenStreetMap can pass `email_verified: false` when Civic collects email in-app.
- Updated the `rovas_oauth` module to reflect this change, ensuring proper handling of unverified emails during account creation and linking.
- Revised related error messages and descriptions to accurately represent the behavior of the authentication process across different identity providers.
https://github.com/alexanderzatko/rovas/commit/04cdc5c37a38870d78e9dc976...
5. 56a3d85
Add role synchronization command and enhance merit role handling
- Introduced a new Drush command `rovas-merit-sync-roles` to synchronize user roles based on their Merit balance, allowing for reporting and fixing mismatches.
- Implemented role management logic to automatically assign 'banned' or 'full access' roles based on users' total Merits.
- Enhanced the `rovas_merit_sync_access_role` function to ensure proper role assignment and notification upon demotion.
- Updated email notification functionality for users losing privileges, providing clearer communication regarding role changes.
- Added utility functions for resolving role IDs and ensuring role parity during merit updates.
https://github.com/alexanderzatko/rovas/commit/56a3d85accfcb81264e3d952c...
6. d949e92
Remove deprecated views: `freemap_countries` and `user_countries`, and update related documentation and ownership mappings accordingly. This cleanup enhances code maintainability and aligns with current view management practices.
https://github.com/alexanderzatko/rovas/commit/d949e927065e707e0dab81e66...
7. 2f973ee
Enhance photo editing tools in rovas_report_form module
- Added functionality to rotate images in the photo paint tool, allowing users to rotate left or right.
- Updated user interface text to reflect new rotation capabilities and improved clarity on existing blackout features.
- Introduced CSS styles for rotation buttons and adjusted JavaScript logic to handle image rotation and undo functionality.
- Updated translation files to include new strings related to image rotation in multiple languages.
https://github.com/alexanderzatko/rovas/commit/2f973ee654a7bb8cd9f7e3481...
8. bcc275c
Remove debug logging from heartbeat rules in rules_the_heartbeat.json to streamline execution and improve performance. This cleanup enhances code readability and maintainability by eliminating unnecessary PHP evaluation statements.
https://github.com/alexanderzatko/rovas/commit/bcc275c599a6e2c4fc2988871...
9. 71fc737
Update civic-auth-services-error-swallow documentation and clean up code
- Changed example login credentials in the documentation from "
" to "
" for clarity.
- Removed commented-out debug code in the `rovas_stripe_express_checkout` module to enhance code readability and maintainability.
https://github.com/alexanderzatko/rovas/commit/71fc737c44ed3d6a375bca46b...
10. 3532a91
Update verification email templates and enhance verification link handling
- Modified email message templates in `rules_ask_user_to_verify_report.json` and `rules_find_verifier.json` to use a dynamic verification link generation function, improving link management.
- Updated the `rules_verification_reminder.json` to enhance the structure and readability of the rules.
- Introduced a new function in `rovas_verify.module` to handle verification invite links, ensuring users are redirected to login if they are not authenticated.
- Added translations for the new login prompt message in multiple languages.
https://github.com/alexanderzatko/rovas/commit/3532a91f5f5ad3de1767f606e...
This report was created by the Rovas Connector for Cursor/VS extension