Commit Graph

30 Commits

Author SHA1 Message Date
Jeremias Menichelli b2fdc7687f feat: Implement telemetry on Search commands (#43563) 2026-03-12 14:34:55 +01:00
Mert YEREKAPAN df8729a82b chore(studio): remove Flag component and related context/hooks (#43103)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Chore / dead code removal

## What is the current behavior?

The `apps/docs/components/Flag/` directory contained legacy feature flag
code that was never wired up:

- `FlagProvider.tsx` — all ConfigCat logic commented out; only wraps
children in an empty context
- `FlagContext.ts` — an empty `createContext({})` with no values ever
set
- `Flag.tsx` — a gate component that reads from the above empty context,
so flags always evaluate to falsy
- `hooks/useFlag.ts` — references the dead local `FlagContext` instead
of `common`'s `FeatureFlagContext`

The docs app already uses `FeatureFlagProvider` from the `common`
package (configured in `apps/docs/features/app.providers.tsx`), making
this entire local implementation obsolete.

Closes
[GROWTH-611](https://linear.app/supabase/issue/GROWTH-611/clean-up-deadlegacy-flag-code-in-docs-app)

## What is the new behavior?

The dead code is removed:

- `apps/docs/components/Flag/` directory deleted
- `apps/docs/hooks/useFlag.ts` deleted

Any code needing feature flags should import `useFlag` directly from
`common`.

## Additional context

No flag-gated features were affected — the old local implementation was
non-functional (context always resolved to `{}`), so removing it has no
behavioral impact.
2026-02-25 09:13:50 +00:00
Ivan Vasilov bbfccdf471 chore: Use @/* as an alias for importing in-package files (#41607)
* Remove extra file.

* Remove unneeded tsconfig.jsons.

* Add @/* alias for importing in-package files to all apps.

* Remove baseUrl from all apps except studio (it'll require changes in almost all files).

* Fix baseUrl issues in docs, ui-library and design-system.

* Fix the typecheck for cms app. Fix all baseUrl errors in the cms app.

* Add deprecated flag to baseUrl in www.
2025-12-30 17:46:24 +01:00
Pamela Chia 928d5f49c5 fix: cmdk event naming and description (#39860) 2025-10-26 17:01:24 +08:00
Francesco Sansalvadore af43adb9a4 chore: command events (#39775)
* add CommandMenuTriggerInput in ui-patterns
* optimize search input responsiveness
* add event on commandMenu opened
* add event on debounced commandMenu input submission
* add event on commandMenu command selection
* add commandMenu telemetry to studio, www and docs

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-10-24 11:06:31 +02:00
Joshen Lim f2122b64f2 Chore/remove unpaginated projects endpoint from docs (#39771)
* Use paginated projects endpoint for docs

* Deprecate old projects query

* Fix

* Fix

* fix(docs branch selector)

* refactor(docs project selector): simplify dom

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-10-22 23:39:13 +08:00
Charis f9ea453fc6 feat(docs): make page title customizable via feature flag (#39415) 2025-10-10 10:21:09 -04:00
Charis f0a7e5a5c2 fix(docs): also make logo dimensions configurable (#39086) 2025-09-30 19:25:36 +03:00
Charis 0719f4f072 feat: add feature flagging for homepage text & logo (#39080) 2025-09-29 15:50:11 -04:00
Charis ac192a5024 refactor(docs): migrate home page to app router (#27221) 2024-06-24 18:47:53 -04:00
Charis ec86bbc4fe feat: new auth ia (#22812)
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
2024-05-07 20:15:06 +00:00
Charis 2f4f0adbd1 rework tabs query state to work better across both routers (#23253)
Refactor tabs so that:

- Behavior add-ons, such as query params, are HOCs in ui-patterns, to keep the basic Tabs minimal
- No dependency on next/router (this is to smooth out a separate App Router migration PR)
- No dependency on useSearchParams either (this is to preserve static generation of as much HTML content as 
  possible, for SEO purposes -- see comment about client-rendering bailout when using useSearchParams)
- Syncing behavior better localized in a hook

Minor enhancement to save tab preferences to local storage so they are remembered between sessions
2024-05-02 14:50:07 -04:00
Einshine || Shine 269c03e36a Enhanced useHash.ts hook ^^ (#22374)
* Enhanced useHash.ts hook ^^

added dependencies,
auto URL parsing rather than manually splitting it,
lastly cleanup in useEffect!

* Ran Prettier : )

* style: appease prettier

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-04-16 18:39:31 +00:00
Charis 8e146fed8a fix: server rendering bug (#22523) 2024-04-08 19:27:44 +10:00
Charis fef87b78fb fix: change remediation links for database linter (#22520)
* fix: change remediation links for database linter

* fix: tab update behavior
2024-04-05 19:58:23 +00:00
Charis 1d52dfacde feat: federated docs for linter (#22472)
* feat: federated docs for linter

* style: clean up

* fix: toc and link rewrite

* fix: remove console logs
2024-04-04 13:35:31 -04:00
Charis 7cf2eae953 fix: statically build the right nav on each page (#21469)
Before: All pages have the Home nav menu in static HTML, which is blown away and replaced by the proper nav menu upon hydration. This leads to jankiness when the page first loads and an unpleasant flash of the wrong nav menu (especially obvious on the JavaScript ref page, which takes a long time to process and rerender the nav).

Now: All pages have their correct nav menu in static HTML.
2024-02-23 11:38:06 -05:00
Charis 2a0c0e06b8 readd docs api config variables with fixes (#20309) 2024-01-23 07:53:10 +11:00
Greg Richardson ed4f8d4e7b feat: replace algolia ui with custom search ui 2023-03-01 13:31:42 -07:00
Terry Sutton 50194cf733 Add configcat 2023-02-06 15:56:24 -03:30
Jonathan Summers-Muir 948132c406 do same with red docs 2022-12-14 01:47:41 +08:00
Jonathan Summers-Muir 44065bcfea fix mobile menu 2022-12-13 20:08:51 +08:00
Jonathan Summers-Muir 1cadb88812 update mobile menu 2022-12-12 20:36:13 +08:00
Jonathan Summers-Muir c06148a90c fix home sidebar 2022-12-12 20:13:01 +08:00
Jonathan Summers-Muir 9f4187806b fixing mobile menu 2022-12-12 20:08:44 +08:00
Jonathan Summers-Muir 31b8273c99 remove console logs 2022-12-08 10:35:56 +08:00
Terry Sutton 600ae9d9db Remove unneeded slashes before url path 2022-12-07 15:55:31 -03:30
Jonathan Summers-Muir 8e9b9cd4a7 updated common and sidebars for filters and modifiers 2022-12-08 00:19:56 +08:00
Joshen Lim de2d0f732a Fix TOC highlight 2022-11-25 16:52:13 +08:00
Joshen Lim 986cccb9b1 Rename temp docs to docs 2022-11-03 20:40:03 +07:00