-
Notifications
You must be signed in to change notification settings - Fork 5
Social System, Invitations & Moderation, Notifications, and Robust Lookups #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Added `rails-controller-testing` gem for enhanced controller testing. - Updated `PersonBlocksController` to include search functionality for blocked users and display blocking timestamps. - Created views for managing blocked users, including index and new block forms. - Implemented AJAX responses for blocking and unblocking users with Turbo Streams. - Enhanced policies to manage user permissions for blocking actions. - Added acceptance criteria documentation for the Block Management Interface. - Developed comprehensive controller specs to ensure functionality and edge cases are covered.
…ess; remove redundant permission check for platform managers
…streamline blocked user check
…alization, and improve UI components
…pdate UI components, and improve localization across multiple languages
…tion, update permitted attributes
…tor, enhance address policy and update locale files
… system, enhance user guide with detailed event creation and management instructions
…mproved clarity and consistency
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR #1053 — Social System, Invitations & Moderation, Notifications, and Robust Lookups
Summary
This PR introduces a first pass of the social system (block/unblock & management UI), a full invitations flow (event invitations + generic token-based accept/decline), refinements to notifications read-state handling, safer resource lookup paths across locales, and multiple quality-of-life improvements (setup wizard hard-landing, idempotent seed/builders, HTML/CSS sanitizers, doc updates).
🧑🤝🧑 Social System (Block/Unblock)
PersonBlocksController:search) returns a compact list for async selects.✉️ Invitations (Events & Generic Tokens)
BetterTogether::Events::InvitationsController):BetterTogether::InvitationsController):accept!(invitee_person:); decline redirects sensibly (event/root).🔔 Notifications Read-State
mark_notifications_read_for_record_id(record_id, recipient:)mark_notifications_read_for_event_records(event_class, record_ids, recipient:)🌍 Robust Friendly/Translated Lookups
FriendlyResourceController#set_resource_instance:🧭 Setup Wizard Hard-Landing & Safe Form Resolution
shownow redirects to first step consistently.WIZARD_FORM_CLASSES) and defend against misuse.🧱 Idempotent Builders & Safer Seeds
friendlylookups).🧼 Controllers & UX Refinements
notify_by_email,show_conversation_details) via explicit casting; safer resource resolution.🧩 API & Helpers
require_dependencytorequire.expression(),javascript:URLs).🎨 Styles
.ss-search input.📚 Docs / Dev-Env Guidance
bin/dc-run,bin/dc-run-dummy) for DB-connected tasks (RSpec, generators, Brakeman, RuboCop) and which commands are exempt.Impact / Notes for Host Apps