Skip to content

Team billing#5453

Merged
zomars merged 109 commits into
mainfrom
zomars/team-billing
Nov 10, 2022
Merged

Team billing#5453
zomars merged 109 commits into
mainfrom
zomars/team-billing

Conversation

@zomars
Copy link
Copy Markdown
Contributor

@zomars zomars commented Nov 9, 2022

What does this PR do?

fixes #5166

Following up efforts done in #5169

To minimize functionality differences between Cal.com and self-hosed we now allow for "unpublished" teams to exist.

These are teams that have a null slug. Which renders the publicly unaccessible (cannot permalink nor book events).

You can still see them on you dashboard and add/remove members. But until you "publish" it the team will become publicly accessible.

On Cal this means that you need to checkout in order to publish. Self hosted can just publish a team without checkout.

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • yarn e2e apps/web/playwright/teams.e2e.ts

@hariombalhara
Copy link
Copy Markdown
Member

Screenshot 2022-11-10 at 2 46 51 PM

Able to create events for an Unpublished team(which don't work). May be we can filter-out such teams from showing up here

Screenshot 2022-11-10 at 2 49 40 PM

@hariombalhara
Copy link
Copy Markdown
Member

I think it doesn't make sense for self-hosted:
Screenshot 2022-11-10 at 3 07 44 PM

@hariombalhara
Copy link
Copy Markdown
Member

Screenshot 2022-11-10 at 3 09 08 PM

There are only 2 steps for self-hosted.

Copy link
Copy Markdown
Member

@hariombalhara hariombalhara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments.

Comment thread .env.example
<Button color="secondary" href="/settings" className="w-full justify-center">
{t("cancel")}
</Button>
<Button color="primary" type="submit" EndIcon={Icon.FiArrowRight} className="w-full justify-center">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Button doesn't have a loading state.

Comment thread packages/features/ee/teams/components/v2/CreateNewTeam.tsx
Comment thread packages/features/ee/teams/components/AddNewTeamMembers.tsx Outdated
Comment thread packages/app-store/stripepayment/api/portal.ts Outdated
Comment thread packages/app-store/stripepayment/api/portal.ts Outdated
Comment thread packages/app-store/stripepayment/api/portal.ts Outdated
Comment thread packages/trpc/server/routers/viewer/teams.tsx Outdated
@zomars zomars force-pushed the zomars/team-billing branch from 3413c48 to 7ee90e9 Compare November 10, 2022 18:38
Copy link
Copy Markdown
Contributor

@alannnc alannnc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main path worked and I didn't run to any error. Didn't tested payment flow.

NIT:

  • Would add a way to go back in create team flow.
  • I didn't publish but I lost track of my entered slug, we could probably use another input instead of displaying it empty.

@zomars
Copy link
Copy Markdown
Contributor Author

zomars commented Nov 10, 2022

Fixed tests and ready to re-review @calcom/reviewers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-238] Create subscription when creating a team & delete subscription

6 participants