Commit Graph

33 Commits

Author SHA1 Message Date
Ephraim Atta-Duncan
a274e9b75a feat(leaderboard): add Stripe subscription link to customer names
This commit enhances the leaderboard by adding a clickable link to each
customer's name, which directs to their Stripe subscription page. It also
removes the ID column and includes the planId in the signing volume data
for improved user experience and easier access to subscription details.
2024-09-26 11:26:31 +00:00
Ephraim Atta-Duncan
087d8bf150 fix: sort table 2024-09-19 14:07:13 +00:00
Ephraim Atta-Duncan
894e857826 chore: leaderboard table 2024-09-19 13:08:29 +00:00
Ephraim Atta-Duncan
670393d0d0 chore: leaderboard table 2024-09-19 10:41:20 +00:00
Ephraim Atta-Duncan
08d94cf2b2 chore: add initial query 2024-09-17 16:04:13 +00:00
Ephraim Atta-Duncan
7e065764ec chore: use luxon for dates 2024-06-25 15:10:58 +00:00
Ephraim Duncan
c470e4d516 Merge branch 'main' into admin/stats 2024-06-13 05:47:17 +00:00
Ephraim Atta-Duncan
39e7eb0568 fix: remove cummulative 2024-05-21 22:45:32 +00:00
Ephraim Atta-Duncan
95a94d4fc1 chore: use single chart graphs 2024-05-21 09:28:23 +00:00
Mythie
110f9bae12 feat: add certificate and audit log pdfs 2024-04-10 15:13:18 +07:00
Ephraim Atta-Duncan
7615c9d2fa feat: add chat to admin dashboard 2024-04-05 17:49:32 +00:00
Mythie
73aae6f1e3 feat: improve admin panel 2024-03-03 01:55:33 +11:00
Lucas Smith
2a74ce06ef Merge branch 'main' into feat/public-api 2024-02-26 00:21:25 +11:00
Ephraim Atta-Duncan
c436559787 feat: create a banner with custom text by admin 2024-02-22 20:20:49 +00:00
Mythie
2abcdd7533 feat: team api tokens 2024-02-22 13:39:34 +11:00
Mythie
7babd82470 fix: updates from review 2023-12-21 20:42:45 +11:00
Lucas Smith
c40c9b20ec Merge branch 'main' into feat/document-templates 2023-12-21 14:25:22 +11:00
David Nguyen
88534fa1c6 feat: add multi subscription support (#734)
## Description

Previously we assumed that there can only be 1 subscription per user.
However, that will soon no longer the case with the introduction of the
Teams subscription.

This PR will apply the required migrations to support multiple
subscriptions.

## Changes Made

- Updated the Prisma schema to allow for multiple `Subscriptions` per
`User`
- Added a Stripe `customerId` field to the `User` model
- Updated relevant billing sections to support multiple subscriptions

## Testing Performed

- Tested running the Prisma migration on a demo database created on the
main branch

Will require a lot of additional testing.

## Checklist

- [ ] I have tested these changes locally and they work as expected.
- [ ] I have added/updated tests that prove the effectiveness of these
changes.
- [X] I have followed the project's coding style guidelines.

## Additional Notes

Added the following custom SQL statement to the migration:

> DELETE FROM "Subscription" WHERE "planId" IS NULL OR "priceId" IS
NULL;

Prior to deployment this will require changes to Stripe products:
- Adding `type` meta attribute

---------

Co-authored-by: Lucas Smith <me@lucasjamessmith.me>
2023-12-14 15:22:54 +11:00
Ephraim Atta-Duncan
31a9127c9e feat: templates 2023-12-14 12:24:56 +11:00
Mythie
3d44821bff fix: build errors 2023-11-06 13:02:19 +11:00
pit
4ed467693f chore: implemented feedback 2023-11-06 13:02:19 +11:00
pit
35087f551c chore: implement pr feedback 2023-11-06 13:02:18 +11:00
pit
92b5111d7e chore: tidy up 2023-11-06 13:01:14 +11:00
pit
02b6f6a7b7 feat: subscriptions and documents page 2023-11-06 13:01:14 +11:00
pit
214dd7a7c8 feat: manage documents admin ui 2023-11-06 13:01:14 +11:00
pit
ff58735153 feat: profile page done 2023-11-06 13:01:14 +11:00
pit
82c1ca13be feat: update user functionality 2023-11-06 13:01:13 +11:00
pit
eef720bf8c chore: improve the ui 2023-11-06 13:01:13 +11:00
Mythie
399826a6f5 fix: add removed layout guard 2023-11-06 13:01:12 +11:00
Lucas Smith
632b3bd1f4 fix: update layout and wording 2023-11-06 13:01:12 +11:00
Catalin Pit
a2635851cf chore: rename files 2023-11-06 13:01:12 +11:00
Catalin Pit
a94b80d07d chore: implemented feedback 2023-11-06 13:01:12 +11:00
Catalin Pit
766fc6410b feat: add the admin page 2023-11-06 13:01:12 +11:00