45 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
daveoconnor
724ece3ab9 Fix for github profile PNGs being saved in the root directory (#1930) 2025-10-08 13:59:48 -07:00
Dave O'Connor
bf7041184d Update avatars to add hq_image, use with fiscal committee list (#1869( 2025-09-08 10:05:56 -04:00
Greg Kaleka
3881237c6f Fix issue with user avatars (#1757) 2025-04-17 11:03:04 -04:00
Greg Kaleka
937c799c7f Don't crash for missing profile image (#1727) 2025-04-03 13:50:20 -04: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
daveoconnor
c4e6302360 Financial steering committee page member images (#1613) 2025-01-27 10:18:23 -08:00
Gavin Wahl
527a5cf83e 10-day grace period for user deletion (#1445) 2024-11-15 08:27:18 -05: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
Brian Perrett
45a3fa7870 Create an avatar tag to be usable anywhere we need an avatar. (#1298)
- fixes https://github.com/boostorg/website-v2/issues/1285
- Use a django tag to render an avatar component.
2024-09-27 15:30:46 -07: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
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
7507fa50b3 Limit file types of user and news images
- Add file type validator
- Apply validator to user image
- Save validator class to variable
- Add image validator to news image model field
- Add file size validator
- Enable file size validator on news and user model image fields
- Fix test
2023-11-03 10:21:36 -07: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
Frank Wiles
3da73c0229 Remove randomness 2023-10-04 17:08:46 -05:00
Frank Wiles
fa7c5f15cb Github profile image save bug
The original code incorrectly assumed that the User object would
always have a first and last name and that they would be unique across
users.

This changes the filename to be "profile-{user.pk}-{10 random
characters}.png" which should ensure there is no overwritting happening.
2023-10-04 14:46:59 -07:00
Natalia
36a61d064a Send emails when a news is posted (using notification preferences accordingly). 2023-06-22 19:23:16 -03:00
Natalia
80eae90184 Initial model for User's preferences, specifically for email notifications.
Part of #343. The news' notifications module was also changed to the user
preferences is honored when sending news emails.

Also exclude migrations from the black check.
2023-06-16 13:00:16 -03:00
Natalia
a8cd8f507a Ran pre-commit run -a
Completed runs of black and rest of pre-commit checks.
2023-05-30 23:21:53 -03:00
Lacey Williams Henschel
f1095f031a 🏦 Add display_name field and property to User model
- Add a display_name field to the User model
- Implement get_display_name property to return display_name, full name, or a single name, depending on the available information
- Add tests for the get_display_name property
2023-03-28 10:44:40 -07:00
Lacey Williams Henschel
37b56805b9 🔧 Improve catching duplicates 2023-03-27 13:32:00 -07:00
Lacey Williams Henschel
f64c2ad405 📝 Changes find_user method to find_contributor 2023-03-21 10:42:55 -07:00
Lacey Williams Henschel
6346497b04 📝 Match contributors by name when uploading
Reduces the duplicates by a lot. Some still remain, mostly related to differences in spelling (Jeff versus Jeffrey) or differences in diacritical marks.
2023-03-15 12:31:45 -07:00
Lacey Williams Henschel
d86cc4b51e Merge branch 'main' of github.com:CPPAlliance/boost.org into upload-authors-maintainers 2023-03-10 09:38:49 -08:00
Lacey Williams Henschel
37d6dbbb76 Add method to create stub user 2023-03-09 12:17:18 -08:00
Lacey Williams Henschel
3f2cceb764 🏦 Add claimed and valid_email 2023-03-09 12:00:32 -08:00
Lacey Williams Henschel
6e07a89462 📝 Change help text on new fields 2023-03-03 13:11:25 -08:00
Lacey Williams Henschel
7dea27d1d1 🏦 Add valid_email and claimed fields to User model
Default to `True` because the only conditions in which these would be False is on import of author/maintainer data for the Libraries from GitHub. After the initial launch, these fields won't be used with nearly the frequency.
2023-03-03 10:46:29 -08:00
Lacey Williams Henschel
597253addb 🔧 👕 Light refactor 2023-03-02 09:12:34 -08:00
Lacey Williams Henschel
80720a21b7 👕 Linter 2023-02-17 15:05:52 -08:00
Lacey Williams Henschel
cb33d7a4fa 📝 Add comment to point to signals 2023-02-17 13:14:50 -08:00
Lacey Williams Henschel
f2a0da771e Add signal for saving profile data upon a new GH login
I did skip the tests -- my first tries with `patch` didn't work and I wanted to have this working for the demo, at least locally.
2023-02-16 15:22:06 -08:00
Lacey Williams Henschel
2a957910e9 Add method to save profile image from GitHub 2023-02-16 12:51:46 -08:00
Lacey Williams Henschel
0e452aaa5a 🏦 Add user profile image 2023-02-15 14:12:48 -08:00
Frank Wiles
80437ce06f Black 2022-04-01 10:18:02 -05:00
gabbyprecious
4300633274 badge model added 2022-02-09 16:46:59 +01:00
GabbyPrecious
be1aa07a3a fixed RemovedInDjango40Warning error 2021-11-21 13:00:50 +01:00
GabbyPrecious
4bb4d30ec8 version app, test and black fixes 2021-11-21 12:54:59 +01:00
GabbyPrecious
cc396d2081 black changes and redis 2021-11-14 09:30:59 +01:00
GabbyPrecious
9c969dda55 forum migfration data and edits on new django 2021-11-05 11:02:16 +01:00
GabbyPrecious
0ca0a0b9ac alphakit setup 2021-10-09 09:53:46 +01:00