Commit Graph

32 Commits

Author SHA1 Message Date
Michael Dausmann
34ef760ade refactor trpc routers 2023-10-06 23:36:54 +11:00
Michael Dausmann
d65705732e useage limits on OpenAI requests. closes #12 2023-09-10 22:46:32 +10:00
Michael Dausmann
caf65a48c1 api (rest) endpoints. closes #11 2023-09-09 00:01:16 +10:00
Michael Dausmann
b411218a3e FIX: exceeding Notes limit should be a 401 not 500 2023-06-03 23:01:46 +10:00
Michael Dausmann
265eb08de6 workaround prisma import issue with enums 2023-05-04 00:17:49 +10:00
Michael Dausmann
d38f27f5d1 prep for deployment 2023-04-30 17:04:00 +10:00
Michael Dausmann
c44d433aac authorisation approach using trpc base procedures 2023-04-29 20:32:23 +10:00
Michael Dausmann
3e3c5e57d7 OpenAI integration and Note generation from prompt 2023-04-29 00:00:52 +10:00
Michael Dausmann
5d21a5731b Main auth and account flows now tested and working 2023-04-25 15:01:23 +10:00
Michael Dausmann
577e79478e enable member deletion and reject pending + bugs 2023-04-24 10:52:35 +10:00
Michael Dausmann
8b2348f6a3 add/delete notes 2023-04-14 00:24:22 +10:00
Michael Dausmann
6a7e7ec9ac finally put #3 to bed with state. also introduce email/password signup and login 2023-04-13 20:11:18 +10:00
Michael Dausmann
028a7dda45 massive state refactor, mostly fixes #3 2023-04-12 00:05:32 +10:00
Michael Dausmann
4d288c7468 team join with link and member admin 2023-04-09 00:41:46 +10:00
Michael Dausmann
b4b20e4260 force user initialisation - fixes #2 2023-04-07 23:28:13 +10:00
Michael Dausmann
5350a5c712 refactor service layer 2023-04-05 22:42:36 +10:00
Michael Dausmann
f2bbe8596a refactor and restructure pinia store and trpc routers + add members list to account store 2023-04-05 00:28:30 +10:00
Michael Dausmann
8fc900fbf1 enable update account name from account page 2023-04-02 17:28:52 +10:00
Michael Dausmann
5b2fe2f6c9 Signup flow + switch to serverSupabaseUser in context (fixes token refresh issue)+ lib upgrades for nuxt/supabase and nuxt/trpc 2023-04-01 16:53:47 +11:00
Michael Dausmann
f2fa72b2a1 max user limits + check plan active on webhook + flow tweaks 2023-03-25 16:03:28 +11:00
Michael Dausmann
45fb639fcf user.email account.plan_name - cleanup context and service construction - config for stripe callback - initial plan 2023-03-19 15:48:08 +11:00
Michael Dausmann
7311c13db2 Basic Stripe integration. new pages for stripe handshake and new Account page. use query instead of useQuery for trpc fetches from store 2023-03-18 20:37:51 +11:00
Michael Dausmann
2ef98d0d98 initialise user and dbUser objects within getContext so they load per request 2023-02-26 11:41:55 +11:00
Michael Dausmann
61bab50aef mutate context dbUser along with db changes 2023-02-25 18:34:56 +11:00
Michael Dausmann
a341a641e8 refactor admin functions in store to use active account - introduce admin middleware 2023-02-24 21:09:49 +11:00
Michael Dausmann
f2b3a2617d parameterise admin functions and move to store actions 2023-02-21 20:37:32 +11:00
Michael Dausmann
fbe2436231 create utility types on server - include Account with Membership - start moving account functions to store actions 2023-02-20 00:21:56 +11:00
Michael Dausmann
b3ee03b5c3 ditch useState and composables in favour of pinia store - add server rendered note detail page 2023-02-19 01:22:55 +11:00
Michael Dausmann
bb9f4dfd1d client side state for activeMembership and fetch notes based on same 2023-02-13 23:51:52 +11:00
Michael Dausmann
de976ab43b membership functions - split and compose router functions - schema changes 2023-02-08 23:14:46 +11:00
Michael Dausmann
bba070d985 introduce TRPC and service layer 2023-02-05 11:55:49 +11:00
Michael Dausmann
791192a1ae WIP for Prisma integration and account and membership schema 2023-01-29 01:06:01 +11:00