Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A user can create a free workspace #2758

Open
3 tasks done
mcstepp opened this issue Dec 17, 2024 · 1 comment
Open
3 tasks done

A user can create a free workspace #2758

mcstepp opened this issue Dec 17, 2024 · 1 comment
Assignees
Labels
Core Team Dashboard Unkey dashboard related Feature New feature or request 🚀 Planned Roadmap Item Planned

Comments

@mcstepp
Copy link
Collaborator

mcstepp commented Dec 17, 2024

Preliminary Checks

Is your feature request related to a problem? Please describe.

We're moving off of Clerk for user management, and decoupling some workspace logic from the user management provider. Presently, we're associating a free workspace to a "personal" workspace by way of associating it to a Clerk userId, and a pro workspace to a "team" workspace by association to a Clerk orgId.

Moving forward, we're going to be strict about "free" workspace and "pro" workspace, and everything is associated to a WorkOS org. This means the only differentiating factor is Unkey offering (i.e. plan, features), not which key we use in an user management provider.

This will allow users to upgrade their free (formerly personal) workspace to a pro workspace and then invite additional team members to the workspace without having to create a new workspace and migrate keys to the new workspace.

However, everyone is still entitled to have a free workspace, whether they are invited to pro workspace, or if they upgraded their previously free workspace to a pro plan. The Create New Workspace currently doesn't allow us to create new free workspaces, since one created by default upon sign-up, but its linked to the userId, not an orgId.

Describe the solution

On the Create New Workspace form, the user should have the option to create a new free workspace if they don't have one.

Eligibility criteria: user is not an admin (owner) of an org associated to a free workspace

Describe alternatives you have considered (if any)

No response

Additional context

This should be completed by core team after WorkOS implementation to avoid rework and fully test functionality.

It can technically be added now using Clerk logic - but the condition won't ever pass since they will never be eligible for another free workspace. Ideally, the user would create a new workspace, upgrade to pro, invite members, but on the occasion where their upgrade their personal workspace instead of creating a new one, Support has had to get involved.

@mcstepp mcstepp added Feature New feature or request Dashboard Unkey dashboard related Core Team 🚀 Planned Roadmap Item Planned labels Dec 17, 2024
@mcstepp mcstepp self-assigned this Dec 17, 2024
Copy link

linear bot commented Dec 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Dashboard Unkey dashboard related Feature New feature or request 🚀 Planned Roadmap Item Planned
Projects
None yet
Development

No branches or pull requests

1 participant