Skip to content

[IP-138]: company switcher#583

Draft
nielsdrost7 wants to merge 1 commit into
InvoicePlane:developfrom
underdogg-forks:feature/138-company-switcher
Draft

[IP-138]: company switcher#583
nielsdrost7 wants to merge 1 commit into
InvoicePlane:developfrom
underdogg-forks:feature/138-company-switcher

Conversation

@nielsdrost7

@nielsdrost7 nielsdrost7 commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a company switcher to the company panel: the user-menu "Switch Company" item now opens a modal listing every company the current user belongs to (Modules/Core/Providers/CompanyPanelProvider.php + app/Filament/Pages/SwitchCompany.php). The active company is marked and its own "switch" action is disabled; switching another company updates session('current_company_id'), sets the Filament tenant, and redirects to that company's dashboard.

Closes

Closes #138 — company switcher UI (user-menu modal + dedicated Filament page, restricted to companies the user belongs to)

Follow-up issues

None.

Test plan

  • php artisan test --filter=SwitchCompanyTest
  • Log in as a user attached to 2+ companies, open the user menu, switch company, confirm redirect to the new tenant's dashboard and session update
  • Confirm the currently active company's switch action is disabled in the list

@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7ac07d25-4b1d-4b63-9d0d-c7fe224594da

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nielsdrost7 nielsdrost7 changed the title Feature/138 company switcher [IP-138]: company switcher Jul 4, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nielsdrost7 nielsdrost7 force-pushed the feature/138-company-switcher branch from d450b80 to 0c064a3 Compare July 4, 2026 12:23
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.

[Core]: Company Switcher

1 participant