Commit graph

22 commits

Author SHA1 Message Date
Laurin Quast
6540155fc7
feat: replace auth0 with supertokens (#303)
* add supertoken container to docker-compose file

* yeah I am sorry this one big commit and I am ashamed of it

* use logOut function

* feat: show header on 404 page

* feat: better handling for organization cookie when not authenticated

* wrap it

* check session within server side props

* add is_admin flag user migration

* simplify and annotate the config

* fix: handle status codes + fix email/password sign up with import from auth0

* no hardcoded env pls

* decode process.env

* secure update user id mapping via a key

* fix: login form

* lol we don't need to hit the API

* fix: do graphql api authorization via authorization header instead of cookie

* implement isAdmin flag

* fix: types :)

* skipit

* yo we can run this

* set env variables

* disable because it annoys the hell out of me

* use the right host

* add not about token length

* refactor: decode environment variables

* feat: store external user id from guthub/google provider in the database

* workaround supertokens omitting null values from the token

* re-enable check

* i have no time for this shit

* add missing env variable

* fix: email test; missing domain extension

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* fix: env names

* fix: link google account to the correct db record

* feat: email confirmation emails

* ?

* bump ts-node

* fix types

* omit package form the bundle

* remove it from dependencies...

* add emails apckage to dev deps

* resolve eslint issues

* remove comments

* update dev info + change env variable (no need to expose it on the frontend)

* use correct user id lol

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2022-09-06 09:38:31 +02:00
Kamil Kisiela
8cd7a4a885
New invitation system (#315)
* New invitation system

* Fix format

* Deployment
2022-08-25 21:01:37 +02:00
Kamil Kisiela
db19282bf8
Implement new ClickHouse DB structure (#304)
FF_CLICKHOUSE_V2_TABLES
2022-08-23 12:53:22 +02:00
Kamil Kisiela
d02f9efdf0
Initial Emails service (#261)
* Initial Emails service

* Fix yarn.lock

* Metrics

* Fixes
2022-08-12 14:51:09 +02:00
Kamil Kisiela
52969c0632
Hash operation based on its body, name, list of sorted coordinates (#283)
* Hash operation based on its body, name, list of sorted coordinates

* Support Docker Compose v2

* martynka

* Move hashing behind cache

* Add comments

* Move transformation of coordinates to the caching layer

* Add another test
2022-08-12 11:23:07 +02:00
Kamil Kisiela
5a70aee15b
One-time invitation link (#258)
Closes #250
2022-07-20 17:02:04 +02:00
Kamil Kisiela
9e90b1a53d
Client exclusions in breaking change detection (#243)
* Replace date-fns-tz with Intl.DateTimeFormat
2022-07-19 16:24:41 +02:00
Kamil Kisiela
0fd7e9eea3
Get Started checklist (#232) 2022-07-11 18:22:07 +02:00
Kamil Kisiela
069e2ecef0
Update cleanId and make redirect when renaming target, project or org (#229) 2022-07-06 19:30:51 +02:00
Kamil Kisiela
c3e4619ba3
Publish new version if SDL is different but no changes in types and fields (#226) 2022-07-05 18:10:26 +02:00
Kamil Kisiela
25d6b0191b
Migrate X-API-Token to Authorization header (#122) 2022-07-01 11:43:27 +02:00
Laurin Quast
71c08f9577
test: prove error masking works as expected and always do error masking (#201)
* Make sure CLI gets it as well (#202)

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-06-29 12:56:17 +02:00
Kamil Kisiela
77b2e24765
Expose link to the website when publishing schema in GraphQL API (#198)
* Expose link to the website when publishing schema in GraphQL API
* Print link to the website in the cli
2022-06-29 09:00:39 +02:00
Kamil Kisiela
ebddde55e5
Create production, staging and development targets by default for new projects (#196) 2022-06-28 16:41:24 +02:00
Kamil Kisiela
c82b22ac05
Simplify the schema publishing logic (#156)
- Removes the uniqueness requirement of commit it
- Makes the logic of schema publishing simpler and more readable
- Updating the service url results in a new version (previously an update of existing version)
- Introduces a requirement of defining service url in federated projects (new `SchemaPublishMissingUrlError` type)
2022-06-23 10:00:43 +02:00
Kamil Kisiela
5d0f0770d8
Revert "Simplify the schema publishing logic (#153)" (#155)
This reverts commit 38f6a92d39.
2022-06-22 15:16:36 +02:00
Dotan Simha
38f6a92d39
Simplify the schema publishing logic (#153)
- Removes the uniqueness requirement of commit it
- Makes the logic of schema publishing simpler and more readable
- Updating the service url results in a new version (previously na update of existing version)
- Introduces a requirement of defining service url in federated projects (new `SchemaPublishMissingUrlError` type)
2022-06-22 12:41:46 +02:00
Laurin Quast
faebda1857
fix: only allow CDN access with the correct access key (#147)
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2022-06-19 15:41:35 +03:00
Kamil Kisiela
d5d4ea9103
Exit code was skipped in integration-tests (#71)
* Exit code was skipped in integration-tests

* git commit

* Hobby

* I love it

* Update usage.spec.ts
2022-05-24 22:45:02 +02:00
Kamil Kisiela
20e3129caa
$ prettier <all> (#46)
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
2022-05-24 16:31:53 +03:00
Dimitri POSTOLOV
465e64a130
New redesign (#4)
* New redesign

* Use latest nextjs and bob

It fixes the start command

* fix: text overflow issue in the organization switcher dropdown (#14)

* fix: text overflow issue in the organization switcher dropdown

* feat: strict children typings

* Force dark mode (#15)

If somebody used the light mode before, Hive App displays light version of tailwind classes

* Fix dev, GH app optional, project type instead of Connected (#16)

* Make Github integration optional

* Show project type instead of Connected

* Fix dev command

* Small changes to the version card (#17)

* Small changes to the version card

* Apply suggestions from code review

* Polish (#18)

* Make the design a bit more clean

* Add a bit of separation

* Apply suggestions from code review

Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>

Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>

* fix: do not access properties on potential undefined variable (#33)

* fix: renaming not being added during rebase (#32)

* feat: add Mutation.createToken validation (#30)

* Remove `#` from organization pages, polish subcription page (#34)

* Remove `#` from project/target pages (#38)

* fix: add missing service names for multi service projects (#35)

* Re-design subscription (#40)

* Missing list of changes in the schema diff view (#41)

* Missing list of changes in the schema diff view

Closes #19

* Apply suggestions from code review

Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>

* Move titleMap outside of the component

Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>

* Blurred fixed header + new `404` page + use `@theguild/prettier-config` (#44)

* fix header

* make things amazing

* Update packages/web/app/pages/404.tsx

* fix build

* remove unused styles

* Add --fix to lint-staged (#43)

* Fix access (#45)

* Fix access on organization level

* Fix access on project level

* Fix access on target level

* Align with main

* Bring back schema view (#49)

* Add missing Mark as Valid button (#50)

* Update the design of the operations view (#51)

* Update doc link

Co-authored-by: Dotan Simha <dotansimha@gmail.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2022-05-24 09:41:53 +02:00
Kamil Kisiela
dc3bc1ec87 Hello 2022-05-18 09:26:57 +02:00