Skip to content

Conversation

@mmabrouk
Copy link
Member

Summary

  • Remove is_personal flag from organization models and creation flow
  • Remove personal organization prioritization from workspace resolution
  • Remove "personal" tag display from sidebar and settings UI
  • Fix organization selector dropdown to be enabled with single org (allows creating new orgs)

Changes

  • Backend: Removed is_personal from CreateOrganization model and OrganizationFlags
  • Frontend: Removed isPersonalOrg helper and all personal org UI elements
  • Fixed: Organization dropdown now enabled with >= 1 orgs instead of > 1

…dling and related flags. Simplify upgrade steps for organizations table cleanup.
…rious models and services to streamline organization management.
…nd simplify upgrade steps. Update migration script to focus on is_demo field only.
…g personal organization checks and simplifying workspace resolution.
…on prioritization and simplifying workspace ID resolution process.
@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
agenta-documentation Error Error Jan 14, 2026 6:09pm

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 13, 2026
@mmabrouk mmabrouk marked this pull request as draft January 13, 2026 10:22
return firstNonDemoOwned ?? null
}

export const resolvePreferredWorkspaceId = (userId: string | null, orgs?: Org[]) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the post-auth flow to decide where the user should land

simple_testset_create_request=simple_testset_create_request,
)
except Exception as e:
except Exception:
Copy link
Member Author

Choose a reason for hiding this comment

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

running ruff for me creates 100 of changes like these, not sure why our ci is not catching them. I removed all linting to make the review easy. Let's take a look at this and clean main in a different pr

…load and update related router function to create_organization for clarity and consistency in organization management.
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 14, 2026
- Fix auth upgrade flow to clear pending invites and prevent redirect loops
- Add invite email mismatch detection with user-friendly messaging
- Improve error handling in invite acceptance with actionable messages
- Extract authMessages helper for consistent error formatting
- Wait for profile loading before checking invite email match
- Add shouldShowNormalAuthFlow derived state for cleaner conditionals
- Memoize org select options to prevent unnecessary re-renders
- Add rel=noopener noreferrer to external links for security
- Fix profile loading initialization in URL sync
@mmabrouk mmabrouk marked this pull request as ready for review January 14, 2026 18:08
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jan 14, 2026
@jp-agenta jp-agenta changed the title Remove personal organization defaults and fix org selector [chore] Remove personal organization defaults and fix org selector Jan 15, 2026
@jp-agenta jp-agenta changed the title [chore] Remove personal organization defaults and fix org selector [chore] Remove personal organizations and fix organization selector Jan 15, 2026
@jp-agenta jp-agenta merged commit 76ce09e into feat/add-multi-orgs-domains-and-sso Jan 15, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Frontend lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants