Commit Graph

10 Commits

Author SHA1 Message Date
Gildas Garcia bc3dc73240 chore: migrate old <Select /> usage to the new Shadcn component (#45232)
## Problem

We want to reduce the code we ship and maintain.

## Solution

Migrate old `<Select />` usage to the new Shadcn component.

## Screenshots

### `www` Pricing 

Before:
<img width="637" height="697" alt="image"
src="https://github.com/user-attachments/assets/b6f261de-e587-411b-9408-faf94d709f1c"
/>

After:
<img width="644" height="756" alt="image"
src="https://github.com/user-attachments/assets/8cc4894c-64da-4e6a-960c-77cd162ac71d"
/>

### Observability

Before:
<img width="1015" height="452" alt="image"
src="https://github.com/user-attachments/assets/3d7e8613-e7a6-461d-a50d-e66c7c85fef1"
/>

After:
<img width="833" height="467" alt="image"
src="https://github.com/user-attachments/assets/98ace34f-25ec-48b5-aad3-fe812307b01d"
/>

### Docs Realtime

Used in pages:
- https://supabase.com/docs/guides/realtime/postgres-changes
- https://supabase.com/docs/guides/realtime/benchmarks

Before:
<img width="578" height="437" alt="image"
src="https://github.com/user-attachments/assets/22fa0048-be07-42e0-9153-65171fa3ccb9"
/>

After:
<img width="571" height="423" alt="image"
src="https://github.com/user-attachments/assets/e0adbde9-0c6f-48da-b377-516392185fb0"
/>

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

* **Refactor**
* Updated dropdown/select controls across the app to a consistent,
composable implementation
* Replaced advanced JWT generator in docs with a simplified JWT
generator component

* **Chores**
  * Removed legacy select component, associated styles and exports
  * Updated theme and tests to align with the new select implementation
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-27 15:35:50 +02:00
Ivan Vasilov ee8eae7309 chore: Clean the ui package from next imports (#44278)
This PR moves several components which rely on `next` out of the `ui`
package to the `ui-patterns` package.

`ui-patterns` package is intented to be imported with specific imports
so it's ok if there are components reliant on `next` in there.

The `SonnerToaster` component has removed its dependency by requiring a
prop for `theme`.
2026-03-30 10:58:37 +02:00
Andrey A. a90890ad52 fix(docs): multiple edits and enhancements for self-hosted docker guide (#40901)
* fix(docs): multiple edits and enhancements

* fix: edited to remove typos and align with the linter

* fix: remove more typos and a bit more linter compliance

* fix: correct minor typos

* chore: add linter exclusion

* fix: exclude lint check for imgproxy

* fix: move disable lint to separate lines

* chore: make prettier happy

* chore: typos plus add linux docker desktop

* chore: fix typos and add link to postgres password guidelines

* chore: stress postgres password recommendation

* fix: use relative paths for docs references

* chore: add a note about all digits in dashboard password

* chore: add a note about no-telemetry and design partnerships if enterprise

* chore: initial import of a simpler jwt generator component

* fix: grammar, some sections reorg, use simpler generator

---------

Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
2025-12-12 10:20:24 +01:00
Charis cf3ecc93eb chore(docs): turn on strictNullChecks (#36180)
strictNullChecks was off for docs, which lets errors slip through and
leads to incorrect required/optional typing on Zod-inferred types. This
PR enables strictNullChecks and fixes all the existing violations.
2025-06-04 17:05:37 -04:00
Charis 0b85947c7c fix(docs): jwt generator (#35628)
Fix a UI display issue for the JWT generator: when the dropdown is used
to switch between the anon and service role key, the displayed JWT
claims did not change. The actual state changes, and the keys generated
are correct, but they just don't display because the text area is
controlled andd oesn't sync with the state.

Changed the text are to take a key dependent on the state so the
displayed UI should change properly.

Does _not_ affect the actually generated API keys. Double-checked that
these are the same before and after.
2025-05-13 13:24:06 +00:00
Charis 2f80b9b3b6 fix: jwt generator (#34908)
The old JWT generator code provided the anon and authenticated claims as strings. The format of this string is different from the format determined by KJUR if an object is provided (I'm guessing probably a whitespace or quote character thing, but I didn't dive down this rabbit hole.) This leads to incompatibilities when the token is used.

To prevent this, the tokens are now defined as objects and KJUR's own serialization is used.
2025-04-18 12:30:07 -04:00
Terry Sutton 4bbb9fa9ca Chore/update self host guide (#30167)
* Update self-host guide

* Undo changes

* Update apps/docs/content/guides/self-hosting.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/self-hosting/docker.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Some changes to make benefit prettier

* Vale fixes

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-10-30 16:53:42 +00:00
Charis f4779d4844 refactor: migrate guides to app router (#23101)
Migrate guides to App Router.
2024-07-03 10:25:06 -04:00
O-Aditya 1775dd17de Fix #26802: Implement client-side only JWT secret generation (#26831)
* Fix #26802: Implement client-side only JWT secret generation

* generate random string with getRandomValues

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-06-03 14:56:55 +00:00
Charis b0b8b6b6e3 refactor: finish moving mdx to content directory (#21321) 2024-02-16 13:43:02 -05:00