* WIP feature/settings-username-update
* WIP username change
* WIP downgrade stripe
* stripe downgrade and prorate preview
* new UI for username premium component
* Fix server side props
* Remove migration, changed field to metadata user
* WIP for update subscriptions
* WIP intent username table
* WIP saving and updating username via hooks
* WIP saving working username sub update
* WIP, update html to work with tests
* Added stripe test for username update go to stripe
* WIP username change test
* Working test for username change
* Fix timeout for flaky test
* Review changes, remove logs
* Move input username as a self contained component
* Self review changes
* Removing unnecesary arrow function
* Removed intentUsername table and now using user metadata
* Update website
* Update turbo.json
* Update e2e.yml
* Update yarn.lock
* Fixes for self host username update
* Revert yarn lock from main branch
* E2E fixes
* Centralizes username check
* Improvements
* WIP separate logic between premium and save username button
* WIP refactor username premium update
* Saving WIP
* WIP redo of username check
* WIP obtain action normal, update or downgrade
* Update username change components
* Fix test for change-username self host or cal server
* Fix user type for premiumTextfield
* Using now a global unique const to know if is selfhosted, css fixes
* Remove unused import
* Using dynamic import for username textfield, prevent submit on enter
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* There is lot of hardcoding links in application
* Apply suggestions from code review
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
* feat: add ApiKey model for new Api auth, owned by a user
* fix: remove metadata:Json and add note:String instead in new apiKey model
* fix: rename apiKey to apiKeys in moder User relation in schema.prisma
* feat: add hashedKey to apiKey and lastUsedAt datetime to keep track of usage of keys and makiung them securely stored in db
* fix 30 day -> 30 days in expiresAt
* feat: api keys frontend in security page
* adds hashedKey to api key model, add frontend api keys in security page
* Make frontend work to create api keys with or without expiry, note, defaults to 1 month expiry
* remove migration for now, add env.example to swagger, sync api
* feat: hashed api keys
* fix: minor refactor and cleanup in apiKeys generator
* add api key success modal
* sync apps/api
* feat: We have API Keys in Security =)
* remove swagger env from pr
* apps api sync
* remove comments in password section
* feat: migration for api keys schema
* sync api w main
* delete apps/api
* add back apps/api
* make min date and disabled optional props in datepicker
* feat fix type check errors
* fix : types
* fix: rmeove renaming of verificationrequest token indexes in migration
* fix: remove extra div
* Fixes for feedback in PR
* fix button />
* fix: rename weird naming of translation for you_will_only_view_it_once
* fix: remove ternary and use && to avoid null for false
* fix sync apps/api with main not old commit
* fix empty className
* fix: remove unused imports
* fix remove commented jsx fragment close
* fix rename editing
* improve translations
* feat: adds beta tag in security tab under api keys
* fix: use api keys everywhere
* fix: cleanup code in api keys
* fix: use watch and controller for neverexpires/datepicker
* Fixes: improve api key never expires
* add back change password h2 title section in security page
* fix update env API_KEY_ prefix default to cal_
* fix: improve eidt api keys modal
* fix: update edit mutation in viewer.apiKeys
* Update apps/web/ee/components/apiKeys/ApiKeyListItem.tsx
Co-authored-by: Alex van Andel <me@alexvanandel.com>
* fix: item: any to pass build
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
* username update from getting-started when received as query param
* Added test for onboarding username update
* Now saving username saved in localStorage
* remove username field
* Removed wordlist
* Implement checkoutUsername as api endpoint
* Remove unused lib utils not empty
Co-authored-by: zomars <zomars@me.com>