84a2e55125
chore: App router migration - general settings ( #16312 )
...
* added lockedSMS to future routes
* add orgMigrations routes to future
* correct metadata
* small fix
* add orgMigrations to future
* Move components to client components
* Remove tRPC element from edit user RSC
* Get username for meta
* Remove suspense query
* Remove orgMigrations from app router
* Type fix
* Revert "Remove suspense query"
This reverts commit eadd814f6e4a5d6856d9218342b7909c22fe62c6.
* Handle suspenseQuery in app router
* User edit page, fetch data server side
* Update yarn.lock
* Export getFixedT
* Set PageWrapper as root layout for settings
* Settings Layout accepts strings for shell heading
* Add OOO to app router settings
* Refactor layout for my-account pages
* Remove instances of pages router from my-account
* Refactor security pages
* Add billing to app router
* Add admin API link to layout
* Add api keys page
* Webhooks WIP
* Refactor SettingsHeader to client component
* Add webhook pages
* Refactor API keys page
* Add admin app page
* Type fix
* fix types
* fix developer/webhooks/[id] param value type error
* remove unnecessary code
* do not pass t prop to CreateNewWebhookButton
* fix type errors in webhook-edit-view
* fix the remaining type errors
* do not use prisma directly in generateMetadata
* remove use client if unnecessary
* Remove unused shell heading from SettingsLayoutAppDir
* improve metadata
* fix billing page
* fix import in settings/teams
* Use next `notFound()`
* fix type check
* fix type check
* remove unused code
* Fix calendar setting page
* Separate settings pages into route groups
* Refactor admin settings pages
* Remove meta instance from billing page route
* Update settings layoutAppDir
* Refactor developer settings pages
* Refactor out of office
* Refactor my account settings
* Refactor admin api page
* Refactor security pages
* Type fix
* fix styling in settings layout
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
Co-authored-by: Omar López <zomars@me.com >
Co-authored-by: Benny Joo <sldisek783@gmail.com >
2024-09-09 01:15:03 -04:00
b91c767d0c
feat: SysAdmin API Guard for Org Admins ( #15867 )
...
* adds column in schema
* adds org setting to enable/disable admin api
* adds guard to v1 v2
* add update query for isAdminAPIEnabled to be true for existing orgs
* adds contact sales
* fix typo
* fix tests
* fixup v2 guard
* v1 fix
* fix and add integration test
* fixes tests --WIP
* fix test --WIP
* fixupgit add src/modules
* WIP
* fix
* fix: e2e test org teams
* fix: e2e test org users
* review feedback
* requested change
* fix
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: Morgan Vernay <morgan@cal.com >
2024-08-02 14:35:54 +04:00
ac858c9bee
fix: [CAL-3374] Says Number is not Verified, but it is Verified ( #14531 )
...
* fix: [CAL-3374] Says Number is not Verified, but it is Verified
* clearing error only when verified
* type-checks fixed
* chore: improvement
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
Co-authored-by: Udit Takkar <udit222001@gmail.com >
2024-04-12 11:33:24 -04:00
d30fb213d2
fix: Add adminReview option to allow impersonating org members ( #14275 )
...
* added layouts for moving teams step
* added admin section for org creation step
* extended org creation to also move existing teams
* wip
* wip
* wip
* further changes
* Add checkout for org in onboarding
* Fix ts errors
* Self review feedback
* Self review addressed
* Fix unit tests
* Fix ts error
* Seans feedback addressed
* feat: fix correct accounts pending
* fix: unit tests for new invite member permissions
* tests: org admin onboarding tests for existing user
* tests: Inital user self serve flow
* chore: update teamAndUserFixture to create X amount of teams
* chore: add testId to card actionButton
* test: add test-Id to continue or checkout button
* tests: add tests for migrating existing teams
* feat: match new designs
* fix: isAdminCheck
* chore: fix pricing copy
* fix: flacky tests
* Fix tests?
* More test fixes
* Check all checkboxes
* Fix type error
* Fix failing test and typescript issues
* Fix unpaid org allowing auto-add users
* Add self-serve flag
* Skip tests
* Add adminReview option
* Fixes
* Add server checks for impersonation
* Improved error
* feat: extract - and disalow updating from org uset list if not reviewed
---------
Co-authored-by: Peer Richelsen <peer@cal.com >
Co-authored-by: Alex van Andel <me@alexvanandel.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: sean-brydon <sean@cal.com >
Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com >
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-04-04 04:48:41 +00:00
3f02de8214
chore: icon cleanup ( #13770 )
...
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com >
2024-04-03 23:23:57 +00:00
Hariom Balhara and Udit Takkar
2cbf9e1ac8
fix: Show proper error in case the team can't be published because requestedSlug isn't set ( #14283 )
...
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-04-02 12:44:39 +00:00
0970c77009
fix: Revert -> "Revert "chore: Chore team metadata table + isOrganization migration ( #13700 )
...
* Revert "Revert "chore: Chore team metadata table + isOrganization migration from metadata (#12828 )""
This reverts commit 2408338ed4 .
* Remove constraint slug,isOrganization and reset migration
* fix: conflicts
* change schema to bust cache
* Fix issues reported by TS
* change schema to bust cache
* Review fixes
* Colaesce for orgAutoAcceptEmail as well
* Fix missing negation
---------
Co-authored-by: zomars <zomars@me.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-03-01 15:04:28 +00:00
bafa3c97ac
fix: Organizations Admin improvements ( #13656 )
...
* Admin improvements
* chore: improve spacing
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
Co-authored-by: Udit Takkar <udit222001@gmail.com >
2024-02-14 10:34:45 -03:00
zomars
2408338ed4
Revert "chore: Chore team metadata table + isOrganization migration from metadata ( #12828 )"
...
This reverts commit aabfd3b3f6 .
2024-01-16 12:20:51 -07:00
aabfd3b3f6
chore: Chore team metadata table + isOrganization migration from metadata ( #12828 )
...
* Migration+schema changes
* Remove org utils from schema
* Users fixture
* Auth signup handlers
* checkIsOrg fn
* use team.isOrganization > metadata
* Add isOrganization to getTeamWithMembers query
* list handler + optimise queries
* Update trpc handlers to use team.isOrganization && orgSettings table
* Update fixture
* Fix typo in prisma.schema
* next auth options use organizationSettings instread of tema metadata
* Admin tooling
* Updating components to use orgsettings over metadata
* Add unique index + fix org lib files
* validateUsername
* Add a seperate unique constraint between isOrg and slug
* Invite Member Logic
* fix resend file
* force isOrg to exist
* Team settings
* update createOrUpdateMemberships
* fix: admin get handler
* fix: team list handler - improve select
* fix: update admin update handler
* fix: settings layout - team get select
* organziationSettings Schema + adminupdate
* organziationSettings Schema + adminupdate
* typefix onSubtmi
* Fix:team repo throwing error if no metadata is found
* fix: add onDelete to be cascade instead of restri
* fix: org - team invite e2e
* fix: team invites not working in subteam context
* rename to organizationID
* fix user fixture team names
* Fix the organization created in tests
* fix: update organization metadata
* variable rename
* Reuse isOrganization
* variable rename
* Remove unnecessary optional chaining
* Update packages/trpc/server/routers/viewer/organizations/adminUpdate.handler.ts
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com >
* Update packages/trpc/server/routers/viewer/organizations/adminUpdate.handler.ts
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com >
* Update packages/trpc/server/routers/viewer/organizations/create.handler.ts
---------
Co-authored-by: Hariom <hariombalhara@gmail.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-01-16 10:18:17 +00:00
Hariom Balhara
5886792285
feat: More admin options for organizations ( #12424 )
...
* Add more features in org admin
* Pr feedback addressed
2023-12-19 18:31:22 +05:30
Benny Joo
bb7057ea04
fix: type error in settings/admin in app router ( #12638 )
2023-12-04 15:31:36 -08:00
Leo Giovanetti and Peer Richelsen
3010900358
fix: admin org list without members ( #11051 )
...
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2023-08-31 19:11:28 +00:00
Leo Giovanetti
e6e6f09547
feat: admin org list now shows all, dns check added ( #10875 )
...
* chore: admin org list now shows all, dns check added
* Updating email template
* type fixes
2023-08-23 21:01:12 +00:00