calcom/components
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
..
auth Better 2FA Interface (#1707) 2022-02-04 20:30:36 +00:00
booking Tandem Video (#1671) 2022-02-04 18:30:52 +00:00
dialog RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
error
eventtype Team Billing (#1552) 2022-02-07 23:35:26 +00:00
form Better 2FA Interface (#1707) 2022-02-04 20:30:36 +00:00
integrations RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
pages/eventtypes RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
security RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
seo shorten bio for og-image (#1477) 2022-01-11 16:26:45 +00:00
team Team Billing (#1552) 2022-02-07 23:35:26 +00:00
ui Team Billing (#1552) 2022-02-07 23:35:26 +00:00
AddToHomescreen.tsx RTL (right-to-left) layout (#1654) 2022-02-01 22:17:37 +00:00
BookingsShell.tsx more strings extractions (#963) 2021-10-15 10:53:42 +00:00
ClientSuspense.tsx refactor /integrations with <Suspense /> (#1078) 2021-10-30 15:54:21 +00:00
CustomBranding.tsx Adds complementing text color for various brand colors that the user might choose (#1289) 2021-12-14 10:39:32 +00:00
DestinationCalendarSelector.tsx Allow choosing destination calendar per event type (#1514) 2022-01-21 14:35:31 -07:00
Dialog.tsx Team Billing (#1552) 2022-02-07 23:35:26 +00:00
EmptyScreen.tsx changes to bookings and sidebar dropdown (#991) 2021-10-19 12:38:05 +00:00
I18nLanguageHandler.tsx Show loading spinner on <Shell /> until i18n is loaded (#946) 2021-10-14 19:10:44 +00:00
ImageUploader.tsx Improvement/teams (#1285) 2021-12-09 23:51:30 +00:00
List.tsx ui updates to integrations page (#962) 2021-10-15 12:01:49 +02:00
Loader.tsx replaced black color with new brand variable to make styling easier (#1125) 2021-11-04 14:30:37 +00:00
Logo.tsx tablet navigation: removed code redundancy & fixed alignment (#1241) 2021-12-02 20:52:38 +00:00
NavTabs.tsx Feature/sso signup (#1555) 2022-02-02 18:33:27 +00:00
SettingsShell.tsx moved embed and webhooks from settings into /integrations (#978) 2021-10-17 10:35:25 +01:00
Shell.tsx increased zindex of bottom nav (#1712) 2022-02-06 18:37:30 +00:00
Slider.tsx Chore: Resolves TS errors related to FileReader/ImageUploader (#965) 2021-10-16 10:42:28 +00:00
Tooltip.tsx fixed tooltips (#1311) 2021-12-14 12:44:11 +00:00