Skip to content

Conversation

@pinglin
Copy link
Member

@pinglin pinglin commented Jan 13, 2026

Because

  • Organization feature is Enterprise Edition (EE) only and should not be part of the Community Edition (CE) console codebase
  • Having organization-related code in CE creates unnecessary complexity and potential confusion
  • Need to cleanly separate CE and EE feature sets

This commit

  • Removes MembershipClient and OrganizationClient from SDK core exports
  • Deletes all organization-related SDK types and client implementations:
    • packages/sdk/src/core/membership/ (4 files)
    • packages/sdk/src/core/organization/ (3 files)
  • Removes all organization React Query hooks from toolkit:
    • useOrganization, useOrganizations, useOrganizationMemberships
    • useUserMemberships, useUserMembership
    • useCreateOrganization, useUpdateOrganization, useDeleteOrganization
    • useOrganizationMembership, useUpdateOrganizationMembership, useDeleteOrganizationMembership
    • useInviteOrganizationMembers, useOrganizationSubscription
    • useUpdateUserMembership, useDeleteUserMembership
  • Updates Owner type to be UserOwner only (removes OrganizationOwner union)
  • Simplifies useUserNamespaces hook to only return user namespace
  • Updates UI components to remove organization-related functionality:
    • UserProfileCard - removes organization memberships display
    • SelectOrganization - returns null (placeholder for EE)
    • UserProfileBio - removes userMemberships prop
    • Pipeline share dialogs - removes organization context
    • SubscribeCTA - removes organization subscription logic
  • Updates pipeline owner extraction to use user directly (no org fallback)
  • Removes organization entries from sitemap generation

@pinglin pinglin requested a review from xiaofei-du as a code owner January 13, 2026 04:13
@github-actions
Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@pinglin pinglin force-pushed the pinglin/refactor-core-remove-organization-ce branch from 4367e8c to cf8b813 Compare January 13, 2026 04:40
@github-actions
Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@pinglin pinglin merged commit 8f7e4bd into main Jan 13, 2026
4 checks passed
@pinglin pinglin deleted the pinglin/refactor-core-remove-organization-ce branch January 13, 2026 04:46
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.

2 participants