## What
Makes the **Free** plan badge next to the organization name (in the org
dropdown) a clickable entry point into the upgrade funnel.
Resolves [GROWTH-775](https://linear.app/supabase/issue/GROWTH-775).
Feedback verbatim: _"if i hit the 'free' button next to my account name
it should take you to the upgrade to paid account funnel."_
The badge links to
`/org/{slug}/billing?panel=subscriptionPlan&source=org_plan_badge`.
Clicking it fires `upgrade_cta_clicked` with `placement:
'org_plan_badge'`.
## Changes
| File | Change |
|---|---|
| `apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx` |
Eligibility check and the linked badge. |
| `apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx` | New
optional `trailingContent` slot, rendered as a sibling of the nav
`<Link>`. Needed because a clickable badge can't be a `<Link>` nested
inside the org `<Link>` (invalid HTML). Non-breaking — `BranchDropdown`
is unaffected. |
| `packages/common/telemetry-constants.ts` | Adds the `org_plan_badge`
placement to `upgrade_cta_clicked`. |
|
`apps/studio/components/layouts/AppLayout/OrganizationDropdown.test.tsx`
| Free org gets the link; partner-managed, billing-partner, and paid
orgs keep the plain badge. |
## Who sees the link
Orgs on the Free plan, managed by Supabase, with no `billing_partner`.
Everyone else keeps the plain, non-clickable badge. The badge also stays
plain when billing is disabled (`billing:all`) or plan changes are
paused (`disableProjectCreationAndUpdate`), the same two checks
`UpgradePlanButton` applies.
Partner-managed orgs are excluded because they change plans at the
partner (Vercel / AWS Marketplace / Stripe Projects).
`PlanUpdateSidePanel` shows a `PartnerManagedResource` notice and
disables every paid tier for them, so the badge would land them on a
panel with no enabled action. `billing_partner` is checked separately
because `getManagedByFromOrganizationPartner` doesn't map every partner
— `fly` falls through to `supabase`.
Free-plan members without `BILLING_WRITE` still get the link:
`PlanUpdateSidePanel` renders `RequestUpgradeToBillingOwners` per plan
card for them, so the landing is a real next action, not a dead end.
## Testing
`OrganizationDropdown.test.tsx` covers the linked badge for a Free
Supabase-managed org and the plain badge for partner-managed,
billing-partner, and Pro orgs, plus the billing-disabled and
plan-changes-paused cases. Existing partner-icon tests still pass. `tsc
--noEmit` and Prettier are clean for the touched files.
The Studio lint ratchet passes locally.
---------
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
## Context
This is largely just a mechanical change here:
Opting to use lucide icons with the `Icon` suffix across all icon
imports within `studio`
- so that it’s clearer which components are icons + reduces the
possibility of name collision with our own components
- e.g <User /> vs <UserIcon />
Also added a eslint rule for this:
<img width="1069" height="167" alt="image"
src="https://github.com/user-attachments/assets/7f36f443-5ca2-4bf6-8d22-86e774513bfc"
/>
And updated `AGENTS.md` as such:
```
Icons come from `lucide-react`, always imported with the `Icon` suffix (`import { CheckIcon, Trash2Icon } from 'lucide-react'`) — never the bare names (`Check`) or `Check as CheckIcon` aliases (lint-enforced).
```
## Problem
People using screen readers can't find how to navigate back to the
organization dashboard.
## Solution
- Add an invisible label for screen readers
- Add a tooltip for all users
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a tooltip to the home navigation icon on hover (“Back to
organization home”).
* Enhanced app layout dropdowns to accept custom trigger content,
improving accessibility with updated labels for branches, organizations,
and projects.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Problem
Our `<Button>` component breaks the default `button` contract by
redefining the `type` prop to set its variant (`primary`, `default`,
etc) instead of the button type (`submit`, `button`, etc).
This is confusing and forces to write more code when using it with
shadcn components that expect/inject the standard button props.
## Solution
- rename the `type` prop to `variant`
- rename the `htmlType` prop to `type`
- propagate the changes where necessary
- format code
## How to test
As this is just prop renaming, if it builds it's ok
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
## Problem
We have multiple Popover components
## Solution
- [x] migrate Popover usages to Shadcn components
- Migrated JSON and text editor in the `TableEditor` (inline row
edition)
- Migrated the template popover in the logs explorer templates page
- [x] remove `_Shadcn_` suffix from Popover components (renaming +
prettier)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Unified popover implementation across the app and design system;
dropdowns, calendars, menus and tooltips now use a consistent popover
API with no visual or interaction changes.
* **Chores**
* Minor prop typing update for the logs date-picker to align with the
consolidated popover content type.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/45980)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR preps the monorepo for a migration to Tailwind v4:
- Bump all Tailwind dependencies and libraries to the latest possible
version, while still compatible with Tailwind 3.
- Cleans up obsolete Tailwind 3 specific options and configs.
- Cleans up unused CSS files and fixes the CSS imports.
- Migrates all `important` uses in `@apply` lines to using the `!`
prefix.
- Move `typography.css` to the `config` package and import it from the
apps.
- Migrated all occurrences of `flex-grow`, `flex-shrink`,
`overflow-clip` and `overflow-ellipsis` since they're deprecated and
will be removed in Tailwind 4.
- Make the default theme object typesafe in the `ui` package.
- Migrate all `bg-opacity`, `border-opacity`, `ring-opacity` and
`divider-opacity` to the new format where they're declared as part of
the property color.
- Bump and unify all imports of `postcss` dependency.
This PR fixes some prettier issues:
- Bump and unify all prettier versions to 3.7.3 across teh whole repo
- Bump the SQL prettier plugin
- When running `test:prettier`, check `mdx` files also
- Run the new prettier format on all files
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>