15 Commits

Author SHA1 Message Date
Greg Kaleka
e0fe6d61e1 Integrate Wagtail CMS and set up landing page structure (#2014) 2025-11-21 18:56:59 -05:00
daveoconnor
8cdb57b08c Customize Profile Pic (#1876) (#1994) 2025-11-04 12:08:20 -08:00
Foo Bar
a55111ca74 Use display_name for "username" instead of first_name, last_name (#1640) (#1638) 2025-03-03 11:03:49 -08:00
Greg Kaleka
6b0fafd70e Profile Setting Option to receive email on material Privacy and Terms changes (#1418)
Fixes #986 

- Adds a new notification preference to the existing `Preferences` model
and associated form.
- Adds data migration to populate the new preference
- Adds a new test and modifies several others to reflect the new
preference and its behavior

Note the ability to actually send notification will be added
post-launch. If the need comes up in the meantime, it would be
straightforward to manually trigger a notification to opted-in users.

### Manual testing
UI
<img width="553" alt="Screenshot 2024-11-06 at 9 52 52 AM"
src="https://github.com/user-attachments/assets/e7d8ef21-8e21-4fe4-81b0-2e401d10203f">

Data
<img width="478" alt="Screenshot 2024-11-06 at 10 35 11 AM"
src="https://github.com/user-attachments/assets/44237931-05dd-4c38-972f-057321c93945">

---------

Co-authored-by: Greg Kaleka <gkaleka@energy-solution.com>
2024-11-06 12:35:07 -05:00
Gavin Wahl
3f30722d6b Option to delete user data (#1368)
Fixes #965
2024-10-25 13:49:12 -06:00
daveoconnor
274777a2e6 Track user last login option and fixes (#1312)
This also hides the pop up notifications after 6 seconds

For review, a review and merge of #1311 on which this is built would
make this easier to review.
2024-10-04 10:23:25 -07:00
Kenneth Reitz
ea025f812c Refactor UserProfilePhotoForm to strip leading period from file extension 2024-03-25 16:49:32 -04:00
Lacey Williams Henschel
bdb4af609c Rename user profile photo filename when uploaded
- Add cached property to get user image filename root
- Rename new profile photo in form, update test
2023-12-12 14:13:24 -08:00
Greg Newman
c69b017770 🚧 cleanup from rebases 2023-12-05 09:35:09 -05:00
Lacey Williams Henschel
1148248452 Delete old image file when user uploads new image 2023-11-08 16:06:56 -08:00
Lacey Williams Henschel
8db6603814 Allow admin users to disallow other users from updating profile pictures.
- Add field can_update_image to User model and user admin
- Prevent user from updating photo if they field is false
- Add docs
2023-11-08 11:23:40 -08:00
Lacey Williams Henschel
73c310fd1c Mark users as claimed when they reset passwords
from key

Mark users as claimed when they reset password from profile page

Add method to claim user, and use that method instead

Add docs on unclaimed user accounts
2023-10-06 08:10:30 -07:00
Lacey Williams Henschel
ff193d9811 Add first name, last name, and email to profile form 2023-07-28 10:13:06 -04:00
Natalia
06cd04f263 Expose view for user preferences (email notifications so far).
Added tests for the new form and view for updating user preferences.
2023-06-20 12:24:40 -03:00
Lacey Williams Henschel
7791706ee5 User can upload their own profile photo 2023-02-22 12:58:18 -08:00