calcom/pages
Jamie Pine 5567721431
Team Billing (#1552)
* added base logic for team billing

- moved Stripe customer related logic to customer.ts
- implemented unstable logic for team owner upgrading, downgrading and adding/removing seats

* logic improvements

* - improved Alert style
- hide free team members on public team page
- upgraded textarea to ui component TextArea in SAML setup
- added Alert on team settings for hidden members
- hide CreateEventTypeButton if not admin
- fixed missing locale strings in team settings

* remove random import

* - show hidden status on team list
- refactor team pill

* - improved logic (mostly functional)
- added Alerts for members & owners
- added local strings
- created upgrade modal
- added info notice on invite member modal
- fixed router redirect after leaving team

* - improved logic in team-billing
- error display on upgrade modal
- added better launch.json for VSCode debugger
- fixed bug with missing inviteeUserId

* code cleanup

* nit pick fixes i should sleep now

* fixed leave team bug
- quantity would not decrease upon leave or removal

* added stripe billing callback handler

* - better launch.json
- teams empty component

* - fixed error not removing after successful pro upgrade
- fixed silent fail on team create name conflict
- fixed input border radius on member invite modal

* updated local strings

* improved logic for edge cases, such as:
- team owned by member sponsored by another team can smoothly upgrade to pro if kicked from sponsored team
- logic to calculate if owner is specifically missing pro subscription (ownerIsMissingSeat)
- corrected calculation of members missing seats, shouldn't care for proPaidForByTeamId as that only matters for removing member and preserving pro if they pay for it themselves
- added react query devtools
- added missing locale string

* - allow type override for LinkIconButton
- consolidate filter logic for getMembersMissingSeats

* - only activate team billing for hosted cal
- fix prod price keys

* fix requiresUpgrade when not hosted by cal

* added HOSTED_CAL_FEATURES

* fixed failing build

- fixed broken import path
- added support for premium price plan. (will consider premium as a valid seat)
- remove rouge console log

* fix customer id type error

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-07 23:35:26 +00:00
..
[user] Web3 App (#1603) 2022-02-01 21:48:40 +00:00
api Team Billing (#1552) 2022-02-07 23:35:26 +00:00
auth Better 2FA Interface (#1707) 2022-02-04 20:30:36 +00:00
availability availability: end time should not be lower than start time (#1673) 2022-02-03 13:23:29 +00:00
bookings i18n - Translate booking status when empty screen (#1219) 2021-12-27 13:29:43 +01:00
call Upgrades next-auth to v4 (#1185) 2022-01-07 20:23:37 +00:00
cancel RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
event-types smaller layout improvements to event-types edit (#1724) 2022-02-07 16:26:08 +00:00
integrations Add Huddle01 integration (#1675) 2022-02-03 11:59:02 +00:00
payment Suggestion: let prettier sort imports order (#673) 2021-09-22 13:52:38 -06:00
reschedule Fixes Apple Calendar onboarding and type fixes (#988) 2021-10-20 15:42:40 +00:00
sandbox RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
settings Team Billing (#1552) 2022-02-07 23:35:26 +00:00
team Team Billing (#1552) 2022-02-07 23:35:26 +00:00
404.tsx RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
[user].tsx added verified badge to profile (#1710) 2022-02-07 17:16:20 +00:00
_app.tsx Team Billing (#1552) 2022-02-07 23:35:26 +00:00
_document.tsx RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
_error.tsx Fixes Apple Calendar onboarding and type fixes (#988) 2021-10-20 15:42:40 +00:00
getting-started.tsx Feature/sso signup (#1555) 2022-02-02 18:33:27 +00:00
index.tsx Setup i18n and locale detection (#712) 2021-09-23 09:49:17 +01:00
success.tsx RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00