Skip to content

add communication preferences#195

Merged
chriscarrollsmith merged 8 commits into
mainfrom
feature/189-communication-checkbox
Jun 23, 2026
Merged

add communication preferences#195
chriscarrollsmith merged 8 commits into
mainfrom
feature/189-communication-checkbox

Conversation

@rafizamankhan

Copy link
Copy Markdown
Contributor

Added communication preferences in registration and profile page along with migrations for user data model.

Resolves #189

rafizamankhan and others added 7 commits June 23, 2026 00:07
* add delete invite feature

* Add hx-confirm for destructive org actions and standardize invitation exceptions.

Mirror formettle PR #101 follow-up: require confirmation before cancelling invitations or removing members, and use InsufficientPermissionsError and RoleNotFoundError in the invitation router.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Move private helper to shared utils and add custom exception message

---------

Co-authored-by: chriscarrollsmith <chriscarrollsmith@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* add invalidate old invites

* Remove obsolete exception class

* Improve invitation UX with resend, redirects, and pending visibility.

Redirect inactive accept links to login/register with warnings, allow logged-in users to see those banners, add resend and expired-invite admin controls, and show all pending invites with status badges.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: chriscarrollsmith <chriscarrollsmith@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…tion-checkbox

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	routers/core/account.py
@chriscarrollsmith chriscarrollsmith merged commit 0acd381 into main Jun 23, 2026
2 checks passed
@chriscarrollsmith chriscarrollsmith deleted the feature/189-communication-checkbox branch June 23, 2026 14:55
chriscarrollsmith added a commit that referenced this pull request Jun 23, 2026
…eferences JS (#197)

* fix: restore confirm-password autocomplete regression test

PR #195 accidentally deleted the def line for
test_register_page_confirm_password_has_autocomplete, collapsing its
body into test_register_page_shows_password_requirements and demoting
its docstring to a no-op string statement. This restored the issue #156
autocomplete check as its own test.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: inline syncSubPreferences into master change handler

The syncSubPreferences helper was only invoked from the master
checkbox's change handler (disable branch) and never on init, where
initial visibility is already set server-side via Jinja. Inlining it
removes the indirection and the asymmetry between the enable and
disable paths while preserving behavior: enabling reveals the
sub-preferences and checks updates; disabling hides them and clears
both sub-preferences.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add registration form checkbox for communication preferences

2 participants