Commit graph

58 commits

Author SHA1 Message Date
Víðir Valberg Guðmundsson
b3bf381186 Get OIDC_RSA_PRIVATE_KEY from environment. 2025-02-01 21:09:39 +01:00
Víðir Valberg Guðmundsson
ee537adc05 Configure ruff and fix issues. (#64)
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/64
Co-authored-by: Víðir Valberg Guðmundsson <valberg@orn.li>
Co-committed-by: Víðir Valberg Guðmundsson <valberg@orn.li>
2025-01-26 12:44:10 +00:00
Víðir Valberg Guðmundsson
e2cb4b220d Fix CSS stuff (#61)
Co-authored-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
Co-authored-by: halfd <halfd@noreply@git.data.coop>
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/61
Co-authored-by: Víðir Valberg Guðmundsson <valberg@orn.li>
Co-committed-by: Víðir Valberg Guðmundsson <valberg@orn.li>
2025-01-22 21:26:06 +00:00
bbb
43d19d3106 New Service Request setup (#59)
* [x] Adds a ServiceRequest model for all service types
* [x] Pre-define simple service requests to begin with
* [x] Django admin for admins to handle requests
* [x] Notifications for Matrix
* [x] Moved Service Access to `services` app
* [x] Auto-create default service requests for new memberships
* [x] Most simple kinds of tests added
* [x] Fix issue in generating service requests (check for service access firstly)
* [ ] Channel and bot account

## Deployment

1. Create a bot account. Get an access token with:

   ```
   curl -XPOST \
     -d '{"type":"m.login.password", "user":"<userid>", "password":"<password>"}' \
     "https://data.coop/_matrix/client/r0/login"
   ```

2. Create an admin room for admins. Add admins + bot. Copy the room ID.
3. Add new environment variables for the setup `MATRIX_ACCESS_TOKEN` and `MATRIX_SERVICE_REQUEST_ADMIN_ROOM`

Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/59
Co-authored-by: bbb <benjamin@overtag.dk>
Co-committed-by: bbb <benjamin@overtag.dk>
2025-01-15 07:16:12 +00:00
Víðir Valberg Guðmundsson
c4df844da6 Move to uv - it is the hot new thing. 2024-12-26 13:24:25 +01:00
Víðir Valberg Guðmundsson
3dd7352d90 Services (#25)
Dette PR handler om at få en måde hvorpå medlemmer kan få adgang til de forskellige services vi udbyder.

Co-authored-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/25
Reviewed-by: benjaoming <benjaoming@data.coop>
Co-authored-by: Víðir Valberg Guðmundsson <valberg@orn.li>
Co-committed-by: Víðir Valberg Guðmundsson <valberg@orn.li>
2024-12-22 23:46:13 +00:00
Benjamin Bach
b3795977ed Membership invitations and order emails (#47)
* [x] Create invite emails from admin
* [x] Sign up on special invite form (create password and username)
* [x] Create email with unpaid orders and payment links
* [x] Lodge unpaid orders somewhere in UI for visibility

Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/47
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-08-14 09:17:29 +00:00
Benjamin Bach
c81481747f Add a footer link to the git repo (#49)
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/49
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-08-14 05:08:02 +00:00
Víðir Valberg Guðmundsson
ca8987ba3b Use mail_admins instead of send_mail. 2024-08-03 20:53:18 +02:00
Benjamin Bach
4254baf09d Changes to payment models (#32)
Flagging incoming changes, no actions required.

This is stuff I consider "MVP", as in what we need urgently to send out payment links to members and receive payments via Stripe.

- [x] Allow products, orders etc
- [x] Define several products per membership type
- [x] Possibility to create a membership BEFORE it's paid
- [x] Mark memberships active when payments are received
- [x] Create membership history for each member (via Django admin)
- [x] Efficiently mark members in a list and choose "create <membership type> for current year with an unpaid order" (Django Admin actions)
- [x] Order payment page w/ Stripe integration
- [ ] Send email with order payment link
- [ ] Send payment confirmation emails
- [x] Re-generate migrations

Co-authored-by: valberg <valberg@orn.li>
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/32
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-08-03 17:55:32 +00:00
Víðir Valberg Guðmundsson
f18469833a The ruffening. 2024-07-15 00:19:37 +02:00
Víðir Valberg Guðmundsson
b39b114e30 pre-commit autoupdate 2024-07-14 20:55:22 +02:00
Halfdan Mouritzen
fedfca25a5 Adding flow to add new emails to an account 2024-03-02 17:43:16 +01:00
Halfdan Mouritzen
89d7c9c9d5 CSS should be merged correctly now 2024-03-02 14:49:50 +01:00
Halfdan Mouritzen
f5acfbedd4 Cleaning 2024-03-02 12:15:33 +01:00
Víðir Valberg Guðmundsson
cf3c84b8d9 More linting. 2024-02-29 21:30:36 +01:00
Víðir Valberg Guðmundsson
1b65558608 Lint galore. Also use python 3.12. 2024-02-29 21:28:17 +01:00
Halfdan Mouritzen
4112069cac feature/css (#29)
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/29
Co-authored-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
Co-committed-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
2024-02-29 20:02:39 +00:00
Víðir Valberg Guðmundsson
a098a0b032 Add logging. 2024-02-09 22:04:30 +01:00
Víðir Valberg Guðmundsson
f31cd62351 Implement django-view-decorator 2024-01-14 12:27:36 +01:00
Halfdan Mouritzen
9dda7670df Minimal CSS for tables (#26)
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/26
Co-authored-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
Co-committed-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
2024-01-14 11:10:55 +00:00
Halfdan Mouritzen
02907a7684 Minimal CSS for tables 2024-01-13 22:14:23 +01:00
valberg
33f5e7a285 ui-overhaul (#24)
Co-authored-by: Halfdan <halm@itu.dk>
Co-authored-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/24
2024-01-13 20:07:36 +00:00
Víðir Valberg Guðmundsson
25445e59cf Add i18n to builtin template tags. 2023-10-02 21:19:25 +02:00
Víðir Valberg Guðmundsson
f42101c476 Adding some titles 2023-10-02 20:50:39 +02:00
Víðir Valberg Guðmundsson
d2e58d396f Small adjustments. 2023-09-30 08:14:02 +02:00
Víðir Valberg Guðmundsson
f1c328a10c Upgrading stuff. 2023-09-18 20:58:30 +02:00
Víðir Valberg Guðmundsson
175f0438d4 Update logo. 2023-09-16 15:28:42 +02:00
Víðir Valberg Guðmundsson
e6661c1b5a Minor detail. 2023-02-08 08:19:58 +01:00
Víðir Valberg Guðmundsson
b9f77251f1 Fix site context variable with a context processor. 2023-01-21 16:20:50 +01:00
Víðir Valberg Guðmundsson
26e06dfaea Upgrade to python 3.11. Update pre-commit. Small settings adjustments. 2023-01-11 21:55:58 +01:00
Víðir Valberg Guðmundsson
e38bd56549 Pre-commit autoupdate and run on --all-files. 2023-01-03 21:39:40 +01:00
Víðir Valberg Guðmundsson
704b196128 Implement a generic way to adding actions to rows in a list. 2023-01-03 21:36:34 +01:00
Víðir Valberg Guðmundsson
cf99c3f40e We want a list of users, not memberships. 2023-01-03 17:00:07 +01:00
Víðir Valberg Guðmundsson
bc00b32c46 Add the start for administration of memberships. 2023-01-02 23:06:00 +01:00
Víðir Valberg Guðmundsson
282b500a5e Doh... 2022-11-25 00:06:19 +01:00
Víðir Valberg Guðmundsson
3e8c773826 Forgot the bootstrap icon css. 2022-11-22 21:36:31 +01:00
Víðir Valberg Guðmundsson
3ba2038d2c Upgrade bootstrap to 5.2.3. 2022-11-22 17:02:05 +01:00
Víðir Valberg Guðmundsson
3dde14614f Fixes and cleanup. 2022-08-09 19:29:42 +02:00
Víðir Valberg Guðmundsson
f8688de23a Debug toolbar is only available when DEBUG is True. 2022-08-09 16:33:56 +02:00
Víðir Valberg Guðmundsson
916e3694c6 Get CSRF_TRUSTED_ORIGINS from env. 2022-08-09 14:58:51 +02:00
Víðir Valberg Guðmundsson
0278b2b48e Upgrade django, python, etc. 2021-12-13 20:44:09 +01:00
Víðir Valberg Guðmundsson
16db4ee143 Setting base template for password reset flow. Some translations. 2021-03-12 17:16:13 +01:00
Víðir Valberg Guðmundsson
141019ed75 Add DEFAULT_FROM_EMAIL. 2021-03-03 18:06:36 +01:00
Víðir Valberg Guðmundsson
f585299388 It should be a touple. 2021-03-03 17:46:19 +01:00
Víðir Valberg Guðmundsson
e725729bb3 Fix admins settings. 2021-03-03 17:32:34 +01:00
Víðir Valberg Guðmundsson
ba7fabf5c7 Add ADMINS settings. 2021-03-03 15:18:57 +01:00
Víðir Valberg Guðmundsson
79f8903c2c Add email configuration. 2021-03-03 14:58:46 +01:00
Víðir Valberg Guðmundsson
5b7b95d426 Add a link to password reset view. Fixup that template. 2021-03-03 10:36:18 +01:00
Víðir Valberg Guðmundsson
e45f83838b Fix static file integrity. 2021-03-01 23:20:59 +01:00