Zai Shi
d9e2dae4c6
Config DB migration step 2 ( #629 )
...
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Preview Docs / run (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: moritz <moritsch@student.ethz.ch>
2025-04-29 14:52:45 -07:00
Konstantin Wohlwend
584dec1d53
Fix tests
2025-04-22 18:19:01 -07:00
CactusBlue
573a3d964a
Reworked Stack Auth demo ( #624 )
...

<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Reworked Stack Auth demo with UI enhancements and code refactoring for
improved user experience and maintainability.
>
> - **UI Enhancements**:
> - Updated `global.css` to change background colors for light and dark
themes.
> - Added `Image` components in `page-client.tsx` and `header.tsx` for
visual elements.
> - Refactored `page-client.tsx` to use `Card`, `CardContent`,
`CardFooter`, and `CardHeader` for user information display.
> - **Code Refactoring**:
> - Removed `stack-scope` class from `SelectTrigger` in `select.tsx`.
> - Updated button layout and text in `page-client.tsx` for
sign-in/sign-up and user information.
> - Enhanced header layout in `header.tsx` with logo and theme toggle
improvements.
>
> <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 c7a9f30371 . It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
2025-04-15 02:03:07 +00:00
CactusBlue
1e27b0c275
set stack-scope class on all variants ( #621 )
...
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds `stack-scope` class to component variants across multiple files
for consistent styling.
>
> - **Styling Update**:
> - Adds `stack-scope` class to `alertVariants` in `alert.tsx`.
> - Adds `stack-scope` class to `badgeVariants` in `badge.tsx`.
> - Adds `stack-scope` class to `buttonVariants` in `button.tsx`.
> - Adds `stack-scope` class to `labelVariants` in `label.tsx`.
> - Adds `stack-scope` class to `navigationMenuTriggerStyle` in
`navigation-menu.tsx`.
> - Adds `stack-scope` class to `sheetVariants` in `sheet.tsx`.
> - Adds `stack-scope` class to `toastVariants` in `toast.tsx`.
> - Adds `stack-scope` class to `toggleVariants` in `toggle.tsx`.
> - Adds `stack-scope` class to `typographyVariants` in
`typography.tsx`.
>
> <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 e0b4d17ba9 . It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
2025-04-14 23:52:16 +00:00
Moritz Schneider
592d259dde
Api Keys ( #590 )
...
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<img width="1510" alt="image"
src="https://github.com/user-attachments/assets/99619123-6be5-4788-aebe-5fc2a9a36245 "
/>
<img width="1510" alt="image"
src="https://github.com/user-attachments/assets/660677bf-f19a-4673-94c8-59ac50eb6ae5 "
/>
<img width="1510" alt="image"
src="https://github.com/user-attachments/assets/11ae63c4-5813-4fd8-aa01-fa580d2103be "
/>
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Introduces API key management for users and teams, integrating with
existing project configurations and permissions, and adds comprehensive
tests and examples.
>
> - **API Key Management**:
> - Introduces `ProjectApiKey` model in `schema.prisma` for managing API
keys.
> - Adds `createApiKeyHandlers` in `handlers.tsx` to handle API key CRUD
operations.
> - Implements API key creation, revocation, and validation logic.
> - **Permissions and Configurations**:
> - Adds `allowUserApiKeys` and `allowTeamApiKeys` to `ProjectConfig` in
`schema.prisma`.
> - Updates `TeamSystemPermission` enum to include `MANAGE_API_KEYS`.
> - Ensures API key operations respect project configurations and
user/team permissions.
> - **Testing and Examples**:
> - Adds extensive tests in `api-keys.test.ts` to cover various API key
scenarios.
> - Updates example projects to demonstrate API key usage.
> - **Miscellaneous**:
> - Refactors existing code to integrate API key functionalities.
> - Updates documentation and type definitions to reflect new API key
features.
>
> <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 96f60c57f0 . It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-04-04 13:03:10 -07:00
CactusBlue
ef6248dd87
Option for merging/blocking account creations with same email but different oauth provider ( #502 )
...
* Add SettingSelect component and sign-up mode configuration
* update schema
* update schema
* add merge oauth schema fields
* update test snapshots
* reformat the file
* add mergeOauthMethods in the UI
* Improve documentation with minor enhancements and fixes (#466 )
* Improve PATCH /users/me performance
* Neon domain (#488 )
* React setup docs (#491 )
* chore: update package versions
* Update branding from Stack to Stack Auth in documentation (#504 )
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: zai@stack-auth.com <zai@stack-auth.com>
* Improve inner OAuth cookie error description
* Fix tests
* Add several spans
* Fix Next.js navigation
* chore: update package versions
* add handler config
* Fix conditional hooks in account settings page
* Add `pnpm run claude-code`
* Fixed docs image ratio (#507 )
* Documentation Updates (#508 )
* add links
* moar
* fix broken links
* fixed images
* updated readme
* Add Python SDK tab to docs
* Fix broken links
* Prefix `pnpm pre` before `pnpm dev`
* Automatically update pull request branches (#509 )
* Give PR updater more permissions
* Ignore PR merge conflicts in GH Actions
* [DEVIN: Konsti] Add userCount property to Project table with automatic update trigger (#506 )
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
* chore: update package versions
* rewrite as toMatchobject
* fix test
* test again
* fix
* update claude
* fix migrations
* fix migration
* fix types
* Update CLAUDE.md
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* more instructions
* fix
* what was i on
* wew
* factor things
* correct the flow
* Update apps/backend/src/app/api/latest/auth/oauth/callback/[provider_id]/route.tsx
Very good catch
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* rename everything
* fix more
* fix typeerror
* update all the tests
* modify migration for legacy projects
* add loading state
* enable email verification for tests
* update test
* get a failing test
* the test works now
* remove debug console log
* change error
* no lowercase
* use typedToUpper/Lowercase
* capture err
* fix types
* modify error throw
* fixed
* add working tests
* documentation update
* Update apps/e2e/tests/backend/endpoints/api/v1/auth/oauth/merge-strategy.test.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* remove eslint rule
* fix json args
* documentation update
---------
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: zai@stack-auth.com <zai@stack-auth.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-03-10 21:25:12 +00:00
Moritz Schneider
dcee4acc42
Fix table header buttons ( #515 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-03-07 22:26:53 -08:00
CactusBlue
63747df29e
Project Cards should use Links ( #513 )
...
* make cards clickable
* remove ClickableCard as it is no longer used anywhere
* fixed
2025-03-07 01:54:47 -08:00
Zai Shi
da1b95ec3b
React SDK ( #462 )
2025-02-27 01:55:45 +01:00
CactusBlue
6692194250
Improve auth method selection ( #442 )
...
* move brand icons
* add icons
* modify the auth page
* change how dialog works
* preview
* improve the auth methods page
* better predicate types
* convert to table
* fix more stuff
* refactor
* add default case
* edit table
* add config
* add brand colors
* icon refresh
* fix a bug with shared tooltips
* Refactor auth methods page and preview with UI improvements
* Simplify provider update confirmation with async/await
* Update packages/stack-ui/src/components/brand-icons.tsx
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* update deps
* more fixes
---------
Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-18 20:54:24 -08:00
Konstantin Wohlwend
622f9f6f0d
Fix loading button indicator positioning
2025-02-11 20:36:43 -08:00
CactusBlue
84ffe3b4f1
User page redesign ( #405 )
...
* Squash
* fixes
* change router
* correct it again
---------
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-09 20:57:55 -08:00
Konsti Wohlwend
c857003f9c
Glassy dashboard style ( #411 )
2025-02-03 10:03:35 -08:00
Konstantin Wohlwend
dc91c25937
Improve metrics page chart sizing on Safari
2024-12-29 19:07:35 -08:00
Konstantin Wohlwend
4199f929bf
object-curly-spacing rule
2024-12-23 19:37:05 -08:00
Konsti Wohlwend
0413706c39
Upgrade backend to Next.js 15 ( #360 )
2024-12-10 00:11:13 -08:00
Konstantin Wohlwend
5cfc65c9ca
Fix lint
2024-12-09 23:35:41 -08:00
Konstantin Wohlwend
c1b8601341
Advanced team invitations
2024-11-26 17:12:57 +01:00
Konstantin Wohlwend
31e00c0ad3
Remove unnecessary log statement
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2024-11-17 01:20:04 +01:00
Konstantin Wohlwend
7303ab83c4
Don't show "Reset" button unless a filter is applied
2024-11-17 00:07:57 +01:00
Zai Shi
6606466937
improved domain & handler UX, add www automatically
2024-11-11 17:25:10 +01:00
Zai Shi
33002bc7ed
Dashboard UI for adding users to a team ( #334 )
2024-11-11 11:09:09 +01:00
Konsti Wohlwend
057dac1a66
Next.js 15 support ( #315 )
...
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Updates `examples/demo` to Next.js 15 and adds Next.js 15 support to `packages/stack`.
The other packages and apps are still running on Next.js 14 to ensure compatibility.
2024-11-08 03:12:31 +01:00
Zai Shi
2f2c2508a3
Restructured tables ( #330 )
2024-11-07 16:02:48 +01:00
Zai Shi
18d6e77ca2
Fixed user email update bug ( #329 )
2024-11-05 22:21:27 +01:00
Zai Shi
92f7b60ec6
Added loading skeleton to components ( #328 )
...
* added sign-in skeleton
* added team switcher skeleton
* improved style
2024-11-02 01:44:52 +01:00
Zai Shi
7cbe56c260
fixed API dialog close by clicking away
2024-11-01 16:39:22 -07:00
Zai Shi
eccd1b7b47
fixed account setting dropdown missing css
2024-10-31 17:42:45 -07:00
Zai Shi
fd8d166e04
Query/filtering with list users endpoint ( #314 )
2024-10-30 02:16:39 +01:00
Zai Shi
e6b898126e
Contact channel client ( #290 )
...
Added contact channels to stack-app
Added emails, OTP, and password settings to the account settings page
Added /api/v1/auth/password/set
Added otp_auth_enabled to users endpoints
2024-10-20 01:01:25 +02:00
Zai Shi
70d0e1038b
removed button and input shadow
2024-10-14 17:12:51 -07:00
Konstantin Wohlwend
9da481b2cd
Require newline at the end of each file
2024-10-13 13:06:38 -07:00
Zai Shi
4570fd3fc8
fixed editable text translation
2024-10-08 17:09:34 -07:00
Satish Gaud
56066066c4
added success and destructive variants in toast file for colorful toasts ( #291 )
...
* added success and destructive variants in toast file for colorful toasts
* styled toast with success and destructive
2024-10-06 23:05:20 +02:00
Zai Shi
06fcca6fe6
OTP ( #263 )
...
* fixed otp send email template
* added version
* added send response type
* updated email template
* added otp email
* added otp page
* fixed bugs
* fixed bugs, added back button on otp page
* otp works
* added max attempts per nonce code
* fixed error return type
* fixed tests
* fixed bugs
* updated button text
* added tests
* added totp code error handling
* removed console.log
* fixed verification code length
* fixed code length
* moved otp inside magic link sign in component
* changed version back, updated ui wording
* added old version otp email tests
* fixed tests
2024-09-24 20:02:06 +02:00
Zai Shi
36a4edd93a
Added client side account deletion, team ids in user delete webhooks, and updated account setting UI design ( #257 )
...
* added user delete team relation webhook
* added delete account setting
* added translations
* updated translation
* added account delete button and functions
* added center to sidebar layout
* added new section layout
* updated sections
* updated styles
* updated setting styles
* improved account settings
* fixed account delete
* added tests
* fixed tests
2024-09-18 06:27:36 +02:00
Konstantin Wohlwend
9bdfb29c80
Allow multiple outer OAuth logins at the same time
2024-08-31 17:18:39 -07:00
Konstantin Wohlwend
726c77ddd9
Improve MaybeFullPage behavior
2024-08-31 16:21:30 -07:00
Varun Guleria
18e5a8fe3b
Profile Image Avatar Editor ( #100 )
...
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.6) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.6) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
* profile_image_uploader
* feat: upload_link_value_change_and_refresh
* Migrate to v2
* avatar editor v2
* added back missing pieces
* fixed dependencies
* fixed tests
* fixed component structure
---------
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-08-27 02:13:37 +02:00
Konstantin Wohlwend
448c45fca4
Project owner packs
2024-08-21 12:55:26 -07:00
Zai Shi
b3f385d1a5
fixed permission page auto reset bug
2024-08-20 19:06:38 -07:00
Konstantin Wohlwend
090eec97bb
Global table filters
Runs E2E API Tests / build (20.x) (push) Waiting to run
Runs E2E API Tests / build (22.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
Lint & build / lint_and_build (22.x) (push) Waiting to run
TOC Generator / TOC Generator (push) Waiting to run
2024-08-19 15:11:35 -07:00
Zai Shi
e5965cf977
Team frontend components ( #178 )
...
* Team invitation (#171 )
* team invitation wip
* implemented handler
* team invitation callback wip
* added team invitation frontend
* fixed listCurrentUserTeamPermissions
* added team invitation email template
* fixed bugs
* fixed verification code handler
* added more checks to team invitation verification
* fixed team invitation page
* restructured verification code handler
* fixed frontend
* fixed team invitation tests
* added more team invitation test
* fixed bug
* added migration file
* removed unused code
* Allow Next.js version `latest` in package.json
* Fix typo
* Update error message
* Remove unnecessary console.warn
* Updated "edit this page" button
* Hide unsupported properties from docs
* OAuth token tests
* Fix typo
* added create user button
* added create user button (#173 )
* added basic team settings
* Create SECURITY.md
* added editable text
* added more team settings
* Export button in tables
* Export all pages of tables
* Update security policy
* Fix docs typo
* More docs typos
* Improved user creation handlers
* added list users on client
* updated team-settings
* hide team setting component for now
* Fix: Improve error handling for Server API (#170 )
* Added entity checks to provide better errors in API for 'server' access type
* Removed 'ensureUserTeamPermissionExist', changed permissionId type to string in 'ensureUserHasTeamPermission'
* added different error types for user team permission
---------
Co-authored-by: Fahad Khan <fahad.khan@net-mon.net>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
* added ensureClientUserAuthenticated
* improved error handling
* removed unused imports
* fixed bug
* added member list
* Sign up restriction button on dashboard
Fix #66 , #74
* moved data table to stack-ui
* added remove user modal
* fixed chokidar
* updated ui
* fixed merge
* fixed merge
* fixed merge
* updated settings component
* improved mobile styles
* added user invitation ui
* added team creation page
* added team creation to team component
* added setting icon to team switcher
* added settings sections
* added client_team_creation_enabled
* added frontend team creation enabled checks
* updated demo page
* added member profile update
* fixed profile editing
* added leave team button
* added create/delete team redirect
* fixed column header, updated team setting
* fixed account setting padding
* updated tests
---------
Co-authored-by: Stan Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Fahad Khan <62707456+kfahad5607@users.noreply.github.com>
Co-authored-by: Fahad Khan <fahad.khan@net-mon.net>
2024-08-12 02:11:42 +02:00
Konstantin Wohlwend
c64fbf4fcd
Sign up restriction button on dashboard
...
Fix #66 , #74
2024-08-10 09:45:48 -07:00
Zai Shi
f7c10f7047
UI restructured ( #161 )
...
* removed dashboard ui folder
* fixed imports
* removed stack email ui
* fixed types
* removed unused
* removed unused deps
* fixed dependencies
* removed unused files
2024-08-02 01:03:01 +02:00
Konsti Wohlwend
aa654ccdc1
Redirect user to correct page after sign-in ( #151 )
2024-07-26 16:06:59 -07:00
Zai Shi
54027d58a2
New client ( #135 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-07-19 22:07:44 -07:00
Stan Wohlwend
580bd73348
Fix trailing space lint errors
2024-07-14 10:37:34 -07:00
Zai Shi
554b60551d
skipped password eye button
2024-07-01 18:19:21 -07:00
Zai Shi
af9d811b28
Scope tailwind ( #92 )
...
* added scoped tailwind
* added same level scope
* added shadcn
* added watch css
* improved css processing
* fixed dark mode, migrated credential sign in component
* fixed export path
* fixed bugs
* migrated credential sign up
* migrated magic link sign in
* migrated auth page
* migrated forgot password
* migrated oauth group
* migrated oauth button
* improved password field
* fixed maybe full page
* migrated user button
* simplified user button structure
* fixed dark mode css process bug, migrated avatar
* migrated typography
* migrated message cards
* removed joy
* removed component context
* removed component core
* restructured components
* updated demo
* added new ui package
* added tailwind config to stack-ui
* moved stack components to stack-ui
* fixed demo ui components
* fixed demo dark mode
* fixed demo bugs
* updated dependencies
* fixed demo theme flash
* fixed styling bugs, removed breakpoints
* removed unused
2024-06-24 15:33:09 +02:00