Commit Graph

948 Commits

Author SHA1 Message Date
Konstantin Wohlwend
3754ee3370 Fix tests 2025-03-02 21:34:49 -08:00
Konsti Wohlwend
5239c10ebf
Split stack-app.ts file into multiple files (#492) 2025-03-02 21:20:42 -08:00
Konstantin Wohlwend
f1c722a6e2 Make 10% of all transactions serializable 2025-03-02 17:15:20 -08:00
Konstantin Wohlwend
d77961b96d chore: update package versions
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (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
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-28 11:55:38 -08:00
devin-ai-integration[bot]
9a76d10c2a
[DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485)
* Add in-source unit tests to stack-shared utilities

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix type checking and linting issues

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix lint errors in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix remaining lint errors in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix lint warnings in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix wait function mocking in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix retry function test in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix React.forwardRef mock in react.tsx test

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix trailing spaces in react.tsx and results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Revert to DependenciesMap and wrap rejected promise in ignoreUnhandledRejection

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix

* Revert changes to known-errors.tsx constructor

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Make rotateRight call rotateLeft per review feedback

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove redundant @ts-expect-error directive in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix import order in promises.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix

* Fix CI failures: add back @ts-expect-error in known-errors.tsx and revert mapResult implementation in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove unused @ts-expect-error directive in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add back @ts-expect-error directive with explanation in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Change @ts-expect-error to @ts-ignore in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* be honest

* vocabulary

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-28 01:47:37 +00:00
CactusBlue
8b88c7a258
Add E2E tests for the JS library (#487)
* Add dependency on @stackframe/js to e2e tests

* add more

* add some additional logic for issuing api key

* more

* fix window dependency

* roll it back

* chore: update package versions

* Make Project description field non-nullable (#483)

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Run E2E API tests on Node v22 too

* Run E2E tests on latest Node.js version

* Codegen + macros for SDK docs (#456)

* add extra body

* Add link to Docker image to docs

* Permit signUpWithCredential in non-browser environments

* get the tests running

* remove

* fix

* update the interface

* Update apps/e2e/tests/js/js-helpers.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

---------

Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-02-27 16:32:41 -08:00
Konstantin Wohlwend
a052f94976 Permit signUpWithCredential in non-browser environments 2025-02-27 15:29:03 -08:00
Zai Shi
427ab34adb
Codegen + macros for SDK docs (#456) 2025-02-27 23:12:30 +01:00
Konstantin Wohlwend
0def869ee7 chore: update package versions
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.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
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-27 10:50:41 -08:00
CactusBlue
eb618a4596
add timeout for sending test emails (#486) 2025-02-26 18:10:33 -08:00
Zai Shi
da1b95ec3b
React SDK (#462) 2025-02-27 01:55:45 +01:00
devin-ai-integration[bot]
e63d41408d
Add inline unit tests to utility functions in stack-shared (#467)
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-26 16:11:30 -08:00
Zai Shi
78121a6d8d support canary versions 2025-02-26 15:40:45 -08:00
Konstantin Wohlwend
01014ed901 chore: update package versions 2025-02-26 11:04:13 -08:00
devin-ai-integration[bot]
a1a8fb309b
Convert packages/init-stack to TypeScript (#465)
* Convert packages/init-stack to TypeScript and configure tsup for bundling

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Address PR feedback: remove esbuildPlugins, remove index.mjs, update pnpm-lock.yaml

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add ESLint configuration to init-stack package

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove unnecessary no-restricted-syntax rule from init-stack ESLint config

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add lint script to init-stack package.json

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove parserOptions from init-stack ESLint config and add typecheck script

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-25 23:02:25 +00:00
CactusBlue
dfadf809eb
Implement last logged in button (#453)
* store last used in localstorage

* implement last logged in

* add last badge

* move the lastUsed

* add new schema

* wrong branch, roll it back

* rollback prisma

* fix useeffect deps

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-21 10:12:28 -08:00
CactusBlue
180b455d4f
Remove global legacy JWT (#450)
* remove all legacy jwt references

* fix creator id (#449)

* update snapshots

* Added magic link, OTP, and OAuth examples to JS docs (#448)

* fixed syntax error

* re-add legacy jwt on prisma schema

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-21 10:10:56 -08:00
Konstantin Wohlwend
53f6d0fab1 Disallow emails like ".com@gmail.com" 2025-02-20 17:23:55 -08:00
Konstantin Wohlwend
7cfb164e92 chore: update package versions 2025-02-20 16:05:36 -08:00
Konstantin Wohlwend
6e39c4c39e Update init script 2025-02-20 15:46:49 -08:00
Konstantin Wohlwend
fc811c8f15 chore: update package versions 2025-02-20 15:17:44 -08:00
Konstantin Wohlwend
3ad42d95f1 Support src folder with init script 2025-02-20 15:15:58 -08:00
Konsti Wohlwend
157f722417
Vanilla JS init script (#454) 2025-02-20 15:11:06 -08:00
Zai Shi
4df77497a0 Update GitHub repository links in documentation 2025-02-20 10:14:55 -08:00
CactusBlue
5e2000ec9a
Add custom pages/contact channel docs (#438)
* add some description about contact channels

* add some examples of password reset

* update the doc

* rename things

* split examples

* remove custom for now

* fix error message

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-02-20 09:58:55 -08:00
Zai Shi
c65a3fa59b fixed syntax error 2025-02-20 09:43:44 -08:00
Zai Shi
6080862f76
Added magic link, OTP, and OAuth examples to JS docs (#448) 2025-02-20 18:27:54 +01:00
Zai Shi
f81d1c0e04 fix creator id (#449)
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.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
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-19 19:16:30 -08:00
Zai Shi
ef7e666656
JS lib docs (#444) 2025-02-20 00:48:05 +01:00
Zai Shi
9a75d60f99 added writeFileSyncIfChanged to all the codegen 2025-02-19 12:11:17 -08: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
018b04e825 chore: update package versions 2025-02-18 15:54:13 -08:00
Konstantin Wohlwend
b6caa42960 Make creatorUserId optional 2025-02-18 09:56:50 -08:00
Konstantin Wohlwend
57a51959fa Fix type errors 2025-02-18 09:47:02 -08:00
Konstantin Wohlwend
0466308a57 Team membership fixes 2025-02-18 09:23:28 -08:00
Konstantin Wohlwend
2c32e0cb7f Fix STACK-BACKEND-78 2025-02-17 16:55:14 -08:00
Konstantin Wohlwend
6c62888360 Fix STACK-SERVER-QP 2025-02-17 11:12:34 -08:00
Konstantin Wohlwend
277356e4f6 Cap password length at 70 characters
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.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
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-15 12:18:20 -08:00
CactusBlue
c27020a19e
add metadata to createStackUser on package (#436) 2025-02-15 11:35:42 -08:00
CactusBlue
816d64c850
In-source unit tests (#429)
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-14 11:47:52 -08:00
Konstantin Wohlwend
741e04d799 Remove unnecessary JSON spaces 2025-02-14 10:20:36 -08:00
Konstantin Wohlwend
c452f9c584 chore: update package versions 2025-02-14 10:19:08 -08:00
Zai Shi
a444e13342
Local emulator fixes (#437) 2025-02-14 02:02:24 +01:00
Konstantin Wohlwend
8b1e93705d Improved Next 15 deprecation warning 2025-02-13 10:56:53 -08:00
Zai Shi
e55b42f848
Local emulator (#422) 2025-02-13 18:57:02 +01:00
CactusBlue
495645a22a
add OTP to the subject line (#435)
* add OTP to the subject line

* strip sign in codes
2025-02-12 19:27:48 -08:00
Konstantin Wohlwend
c280f35d4f Fix urlString function for multiple arguments 2025-02-12 14:35:15 -08:00
Konstantin Wohlwend
7dfe34b1c2 Remove trailing slash from backend requests 2025-02-12 14:07:55 -08:00
CactusBlue
f07e45fe26
Prevent handler from loading in <iframe> (#433)
* initial work

* fixed generate from template watch mode

* add the iframe preventer

* Update packages/template/src/components/iframe-preventer.tsx

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* Update packages/template/src/components/iframe-preventer.tsx

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* fixed codegen loop

* Fix codegen (#434)

* Fix errors

* "More sign-in methods available later" info

* Fix loading button indicator positioning

* remove trailing slash for NEXT_PUBLIC_STACK_URL (#432)

* make requested changes

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-12 13:34:03 -08:00
Konstantin Wohlwend
cedacfc3a0 Update package-template.json 2025-02-12 11:02:34 -08:00