Commit Graph

186 Commits

Author SHA1 Message Date
Stan Wohlwend
89fc11d3a2 Disable fetch caching for client requests 2024-05-09 11:21:14 +02:00
Zai Shi
90ca97339d added team deletion 2024-05-08 16:39:54 +02:00
Stan Wohlwend
9ff2cff5c5
Organizations & RBAC (#22)
* added organizations route

* added orgganizations/[orgId] and orgganizations/[orgId]/users routes

* added more routes

* restructured dashboard pages, added organization page

* fixed redirect bug

* updated sidebar

* added mock orgnizations

* fixed breadcrumbs

* added edit org modal

* added memeber table

* added permission table

* Orgs & perms backend

* Fix build errors

* updated permission ui

* org -> team for frontend

* added enable team UI

* Stack App for teams

* formatted schema

* renamed all orgs to teams

* fixed docusaurus bug

* disabled docusaurus build progress bar

* added member profile and direct permission to profile

* removed dead code, memberProfile -> member

* removed teams attribute from the user object

* added /teams endpoint

* added create team endpoint

* added add-user endpoint

* moved add-user

* added server side get teams

* updated schema formatting

* added team enabled endpoints

* fixed type error

* moved get current teams to current-user/teams

* improved interface

* added create team

* hooked up team to frontend

* added hooked up team name with team member page

* added list team users

* added useUsers to team object

* fixed list team user bug

* added team update

* added list permissions and use permission on app

* added create permission

* list permission

* added permission list

* added inherited permission list

* add edit permission model

* restructured permission graph

* updated style

* added delete permission

* fixed delete permission bug

* added inheritence update

* fixed await bug

* fixed selection bug

* added permission update

* fixed update bug

* fixed team update refresh

* added remove user from team

* restructured permission and permission definition

* updated permission definition structure

* updated list permissions and grant permissions

* fixed list user permissions

* added grant permission

* fixed list permission

* added direct option to list team use permission

* fixed bugs

* fixed bugs

* added revoke permission

* inherited from -> contains

* added client list permission

* restructured stack-app teams and permissions

* fixed server teams and permissions

* fixed bug

* fixed bugs

* added teams pages to demo

* added styled component compiler

* added list teams

* added join and leave teams

* fixed prisma onDelete

* fixed type bugs

* removed on permission change for now

* added member

* fixed user and server user

* fixed imports

* added create team

* added more content to demo

* fixed recursion bug

* fixed recursion stack out of bound bug

* removed teamsEnabled

* added create team on sign-up options

* added create team on signup

* queriable -> queryable, fixed migration file

* fixed migration file

* fixed demo build error

* fixed license accidental change

* fixed tab styling

* added required to create permission id

* added more ui error hints

* fixed seed wrong setting

* default team name

* improved permission list ui

* improved demo display

* Update README.md

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-05-08 12:43:56 +02:00
Stan Wohlwend
1c58b49e8f chore: update package versions 2024-05-05 18:17:17 +02:00
Stan Wohlwend
74f3fe2e49
Middleware support (#29) 2024-05-05 17:33:36 +02:00
Stan Wohlwend
dc6659131c
Auth for smartRouteHandler (#27) 2024-05-05 10:28:31 +02:00
Stan Wohlwend
c4fa6d93e7 chore: update package versions 2024-05-05 09:37:32 +02:00
Stan Wohlwend
406ad69ebb
Docker compose dependencies (#20) 2024-05-04 15:42:41 +02:00
Stan Wohlwend
bcce00ff59
Disable Sentry in dev mode (#26) 2024-05-04 15:04:54 +02:00
Stan Wohlwend
0eb7822569 chore: update package versions 2024-05-03 12:59:16 +02:00
Zai Shi
8a0095f0b1
Fixed color mode and flashes (#24)
* fixed button

* removed link variant

* fixed input

* fixed label

* fixed separator

* fixed indicator

* fixed link

* fixed theme toggle

* fixed text

* fixed popover, updated link color

* fixed password field

* fixed avatar and card

* fixed dropdown

* fixed skeleton

* improved password field code

* fixed tabs

* fixed user button

* fixed demo header

* fixed demo select

* fixed theme provider

* fixed demo color mode

* fixed demo theme

* deleted dev app

* removed demo app loading indicator

* added description to demo app

* fixed small things

* updated server

* updated color mode doc

* updated docs

* removed unused dependencies
2024-04-30 14:30:36 +02:00
Stan Wohlwend
1adcaa5cd2 chore: update package versions 2024-04-28 12:02:53 +02:00
Stan Wohlwend
8814052702 Clarity 2024-04-28 10:41:31 +02:00
Stan Wohlwend
293670c83b chore: update package versions 2024-04-28 10:25:52 +02:00
Stan Wohlwend
9e0b3de21a Improve some error messages 2024-04-28 10:16:39 +02:00
Stan Wohlwend
f71f2c74d2
Partial prerendering demo (#21) 2024-04-27 14:23:54 +02:00
Stan Wohlwend
aff6e3abc2 chore: update package versions 2024-04-26 14:00:52 +02:00
Stan Wohlwend
27afc65670 Confetti promise 2024-04-26 09:59:51 +02:00
Stan Wohlwend
38365de971 Fix build error 2024-04-26 09:58:48 +02:00
Zai Shi
66f6c86ddf
Basic Unit Tests (#15)
* added basic api testing framework

* added credential signup test

* added current user test

* added github action

* fixed bugs in action file

* updated action

* added pnpm setup

* added dependency install

* updated pnpm lock

* only run server tests

* added new package for e2e test

* removed unused tests

* updated action

* updated test command

* added env var reading

* fixed typo

* fixed typo

* fixed unit tests with staging

* added delay e2e test

* added start server to action

* fixed typo

* fix aciton

* updated github action

* fixed bugs

* fixed eslint error
2024-04-24 14:24:56 +02:00
Stan Wohlwend
8dae0fd60c Fix STACK-SERVER-Q 2024-04-24 14:18:40 +02:00
Stan Wohlwend
1f6ebac9b3 Wizard now suggests creating new API key 2024-04-24 13:58:47 +02:00
Stan Wohlwend
083cccb511 chore: update package versions 2024-04-24 10:59:50 +02:00
Zai Shi
2e6a04270c
Magic link dashboard toggle (#16)
* added magiclink dashboard toggle

* updated names on dashboard

* updated browser tab title
2024-04-23 15:24:42 +02:00
Stan Wohlwend
628674ef90 Bump package versions 2024-04-23 12:11:26 +02:00
Stan Wohlwend
5e3004c18b Improved error handling 2024-04-23 12:02:18 +02:00
Stan Wohlwend
de3054d21f Bump versions 2024-04-22 14:01:55 +02:00
Stan Wohlwend
28c5692d99 Log path name on timeout 2024-04-21 17:31:20 +02:00
Stan Wohlwend
f51da1b2fa Fix timeout on error 2024-04-21 17:28:47 +02:00
Stan Wohlwend
6366d56b06 Increase function timeout 2024-04-21 16:47:23 +02:00
Stan Wohlwend
1a5ab65522 Bump package versions 2024-04-21 15:40:13 +02:00
Stan Wohlwend
d6166a058b Improve 403 error messages 2024-04-20 16:04:50 +02:00
Stan Wohlwend
192cd256d8 Don't crash when trying to access a deleted user 2024-04-20 15:49:16 +02:00
Zai Shi
96c26a7918
Magic link (#13)
* added magic link email, updated email template

* added magic link ui and db schema

* restructured sign in sign up page

* updated example custom button

* added joy tabs

* fixed bugs, added magic link errors, abstracted token creation

* added magic link callback

* fixed token bugs

* added more auth information to user object

* added changeset
2024-04-20 12:33:11 +02:00
Stan Wohlwend
a5f9587f22 current-user should be null if project ID is wrong 2024-04-19 19:14:50 +02:00
Stan Wohlwend
3b9e96e460 UX improvements 2024-04-19 18:52:01 +02:00
Zai Shi
dea8ad400b bumped version 2024-04-17 09:11:19 +02:00
Zai Shi
0ce85942fe trigger build 2024-04-16 18:11:26 +02:00
Zai Shi
c914682309 trigger build 2024-04-16 18:06:03 +02:00
Stan Wohlwend
1c93fe13ae suppressHydrationWarning for <body /> 2024-04-16 15:32:52 +02:00
Zai Shi
1ca01ca261
Moved ownedProjects related functionalities to the user (#11)
* moved owned projects to user

* added internal user type

* removed old comments

* fixed type bug
2024-04-16 15:23:53 +02:00
Zai Shi
246669d779 fixed vertical centering of stack server signin 2024-04-16 12:08:08 +02:00
Zai Shi
72711f758b await send email in signup 2024-04-16 09:10:50 +02:00
Zai Shi
f073de1691 added secure as a env var for email 2024-04-15 19:07:34 +02:00
Zai Shi
954260c28f updated email setting for compatibility 2024-04-15 18:12:59 +02:00
Zai Shi
b4677ff272 bumped version 2024-04-15 16:55:56 +02:00
Zai Shi
8823569e00 added better error message for wrong redirect url 2024-04-15 15:51:38 +02:00
Zai Shi
8352e2d8c6 fixed bug 2024-04-15 15:09:25 +02:00
Zai Shi
8495bb0ae2 fixed 127.0.0.1 not recognized as localhost 2024-04-15 14:44:24 +02:00
Zai Shi
ead2ce23c3 added header for handlers 2024-04-15 11:03:14 +02:00