Skip to content

feat(nav): Create organization button in the org switcher - #5

Merged
rrader26 merged 1 commit into
mainfrom
feat/create-organization-button
Jun 14, 2026
Merged

feat(nav): Create organization button in the org switcher#5
rrader26 merged 1 commit into
mainfrom
feat/create-organization-button

Conversation

@rrader26

Copy link
Copy Markdown

Adds a "Create organization" action to the OrganizationSwitcher dropdown → opens a name dialog → calls the new createOrganization mutation → switches into the new org.

Pairs with ThinkfleetAI/lago-api#feat/create-organization-mutation.

Build note: run pnpm codegen after the API change is deployed so useCreateOrganizationMutation is generated from the co-located gql block.

Files: src/components/organizations/CreateOrganizationDialog.tsx (new), src/layouts/MainNavLayout/OrganizationSwitcher.tsx.

🤖 Generated with Claude Code

Adds a 'Create organization' action to the OrganizationSwitcher dropdown that
opens a name dialog and calls the new createOrganization mutation, then switches
into the freshly-created org. Pairs with ThinkfleetAI/lago-api
feat/create-organization-mutation.

Requires `pnpm codegen` after the API change is deployed (generates
useCreateOrganizationMutation).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit 92a4608 into main Jun 14, 2026
2 of 8 checks passed
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.

1 participant