<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Renamed user-related permissions to project-related permissions across
the codebase, affecting enums, schemas, APIs, models, and tests.
>
> - **Behavior**:
> - Renamed `USER` to `PROJECT` in `PermissionScope` enum in
`schema.prisma` and `migration.sql`.
> - Updated `isDefaultUserPermission` to `isDefaultProjectPermission` in
`schema.prisma` and `migration.sql`.
> - Removed `jwks.json/route.ts` file.
> - **API Changes**:
> - Renamed `user-permission-definitions` and `user-permissions`
endpoints to `project-permission-definitions` and `project-permissions`
in `route.tsx` files.
> - Updated CRUD handlers in `crud.tsx` files to reflect new naming.
> - **Models**:
> - Updated models in `permissions.tsx` to use `ProjectPermission` and
`AdminProjectPermission`.
> - Updated `KnownErrors` to use `ProjectPermissionRequired`.
> - **Tests**:
> - Renamed test files and updated test cases in
`e2e/tests/backend/endpoints/api/v1` to reflect new naming.
> - **Misc**:
> - Updated `admin-app-impl.ts`, `client-app-impl.ts`, and
`server-app-impl.ts` to use new project permission naming.
> - Updated `schema-fields.ts` to reflect new permission ID schema.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 08924f5241. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds user permissions management, including models, API endpoints, and
tests, alongside existing team permissions.
>
> - **Behavior**:
> - Adds user permissions alongside team permissions, allowing for
user-specific permission management.
> - Introduces `ProjectUserDirectPermission` model in `schema.prisma`
for direct user permissions.
> - Updates `PermissionScope` enum from `GLOBAL` to `USER`.
> - **API**:
> - Adds CRUD endpoints for user permissions in `user-permissions` and
`user-permission-definitions`.
> - Updates existing team permission endpoints to support user
permissions.
> - **Tests**:
> - Adds e2e tests for user permissions in `user-permissions.test.ts`
and `user-permission-definitions.test.ts`.
> - Updates existing tests to include user permissions where applicable.
> - **Misc**:
> - Updates `adminInterface.ts` and `server-app-impl.ts` to handle user
permissions.
> - Modifies `known-errors.tsx` to include `UserPermissionRequired`
error.
> - Adjusts `project-configs` and `projects` to include user default
permissions.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 8b73e668e2. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->

<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Add SentEmails dashboard table with backend API and frontend
components to display email logs.
>
> - **Backend**:
> - Add `crud.tsx` to define CRUD operations for `SentEmail` using
`prismaClient`.
> - Add `route.tsx` to expose `GET` endpoint for listing sent emails.
> - **Frontend**:
> - Update `page-client.tsx` to include `EmailSendDataTable` component
displaying email logs.
> - Define `emailTableColumns` for `DataTable` in `page-client.tsx`.
> - **Shared Interfaces**:
> - Add `InternalEmailsCrud` and `sentEmailReadSchema` in `emails.ts`.
> - Extend `StackAdminApp` to include `listSentEmails()` method.
> - Define `AdminSentEmail` type in `email/index.ts` and export it in
`index.ts`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for fe32ecbc33. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ryan@stack-auth.com <ryan@stack-auth.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* Add delete project functionality in Project,Project-settings
* removed changes to the old dashboard
* added onDelete and backend endpoints
---------
Co-authored-by: Zai Shi <zaishi00@outlook.com>
* added default permissions to prisma
* added system team permission
* fixed permission update
* added system permission UI
* fixed permission update
* added create team client
* added client create team
* added client team create endpoint
* fixed user.createTeam, updated demo
* added default permissions for team creators and members
* added createTeamForUser
* added permission id format check
* updated db schema for default permission, added default perms when project is created
* fixed merge errors
* fixed theme doesn't work when not signed in
* added tailwind
* use stack theme instead of stack joy theme for server
* added shadcn
* added shadcn components
* added new project page
* improved styling
* added footer
* added footer
* added new project page
* added project creation page
* made new project page interactive
* added project settings on create project endpoint
* added async button
* fixed small things
* data-theme -> data-stack-theme
* changed color scheme
* changed joy buttons to shadcn buttons
* fixed lint
* added redirect to create project page
* 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>