stack/apps
BilalG1 4ed486bab1
Dashboard pending team invitations (#961)
<img width="1920" height="965" alt="Screenshot 2025-10-16 at 7 22 51 PM"
src="https://github.com/user-attachments/assets/d6bed009-9a36-4c46-bf24-3a3dd29ef218"
/>

<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- RECURSEML_SUMMARY:START -->
## High-level PR Summary
This PR enhances the team invitation management in the dashboard by
replacing a server action with a client-side implementation that
displays pending team invitations in a redesigned dialog. The new dialog
shows current dashboard admin seat usage (active users plus pending
invitations versus the limit), lists all pending invitations with the
ability to revoke them, and provides an upgrade path when the team
reaches capacity. The implementation uses React Suspense for loading
states and moves invitation logic to the client using the admin app API.

⏱️ Estimated Review Time: 15-30 minutes

<details>
<summary>💡 Review Order Suggestion</summary>

| Order | File Path |
|-------|-----------|
| 1 |
`packages/template/src/lib/stack-app/apps/implementations/server-app-impl.ts`
|
| 2 |
`apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/projects/page.tsx`
|
| 3 |
`apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/projects/page-client.tsx`
|
</details>



[![Need help? Join our
Discord](https://img.shields.io/badge/Need%20help%3F%20Join%20our%20Discord-5865F2?style=plastic&logo=discord&logoColor=white)](https://discord.gg/n3SsVDAW6U)


[![Analyze latest
changes](b803974168/?repo_owner=stack-auth&repo_name=stack-auth&pr_number=961)
<!-- RECURSEML_SUMMARY:END -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
  * Team invitation now uses a modal dialog interface
  * Added upgrade prompt when team reaches capacity limits

* **Bug Fixes**
  * Fixed invitation list not updating after revocation

* **Improvements**
* Enhanced error handling with user-facing notifications for invitation
failures
  * Improved form validation feedback during team member invitations

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-10-16 19:38:23 -07:00
..
backend Page transition prefetching 2025-10-16 12:02:46 -07:00
dashboard Dashboard pending team invitations (#961) 2025-10-16 19:38:23 -07:00
dev-launchpad chore: update package versions 2025-10-15 10:56:40 -07:00
e2e payment test mode fixes (#957) 2025-10-15 19:14:45 -07:00
mock-oauth-server chore: update package versions 2025-10-15 10:56:40 -07:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00