Commit Graph

21 Commits

Author SHA1 Message Date
Jordi Enric
6f1cfef213 clean circular deps (#34262)
* clean circular deps in telemetry

* clean circular deps in command

* fix commandmenu circular deps

* rm deps.json

* fix consent circular dep

* fix TOC circular deps

* fix wrong import path

* fix test types

* fix missing fn

* undo let change

* fix consent component

* empty
2025-03-20 11:11:11 +01:00
Alaister Young
6d732a2a4b chore: remove auth-helpers (deprecated) (#32541)
* chore: remove auth-helpers (deprecated)

* type supabase client in feedback

* small adjustments to error and loading state handling for docs search

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-01-06 18:08:44 +08:00
Charis
f8f37cf038 fix(command menu): minor styling issues with scrollbar (#29403) 2024-09-20 10:13:57 -04:00
Charis
6fec12a524 fix(ask ai): input field (#29397)
Fixed 2 bugs with Ask AI input field:
- If you try to edit in the middle of the input value, your cursor will
  jump to the end
- Can't accept CJK IME input
2024-09-19 12:45:27 -04:00
Charis
f6768edde7 fix(cmdk): empty state shows up when it shouldn't (#29272)
* fix(cmdk): empty state shows up when it shouldn't

Can't remember why on earth I put this in a useMemo instead of a
useEffect...

* fix(command menu): switch branch command not showing up
2024-09-17 10:08:37 +08:00
Charis
5e4e7d521b fix: cmdk force-mount (#29233)
We were hacking around force-mount behavior because it wasn't working in
a previous version of cmdk. cmdk version was bumped a few weeks ago
which fixes force-mount.
2024-09-12 10:03:43 -04:00
Charis
d6f96780e9 feat: add configure org command (#29092)
* feat: add switch org command

* fix: change switch org to configure org

The org doesn't really get globally switched, you just land on the
settings page, so this seems more accurate.

* fix: allow cjk ime input on commandinput component
2024-09-09 11:25:22 -04:00
Preet 🚀
3f34ca978c Fixes docs search input cursor (#28685) (#28691)
* fixed docs input cursor (#28685)

* fixed losing query string

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-09-03 20:46:48 +00:00
Charis
94861ff97d fix: cmdk error in AiMessages component (#29060)
- Add a dummy CommandList descendant
- Needed for cmdk to not throw an error
- No easy way to remove the Command Menu because it's needed in the
  empty state
- Somewhat hacktastic but solves the error
2024-09-03 11:41:36 -04:00
Ivan Vasilov
556ed69298 fix: Add CommandList wrapper to fix a crash in the cmdk feature (#29002)
Wrap the commandGroup into a commandList.
2024-08-30 17:58:53 +02:00
Alaister Young
dd79d9e2cb chore: update cmdk 1.0.0 (#28937)
* chore: update cmdk 1.0.0

* update react-popover

* fixed disabled states

* address breaking changes from cmdk update

* fix formatting

* update column options popover
2024-08-28 21:53:16 +08:00
Charis
343fde2773 fix: repeated responses in docs search (#28607)
Fixes a bug in docs search from duplicated code (I moved the
useEffect into a new component and forgot to delete the old one,
so it runs the on-entry query submit twice, resulting in a double
conversation in production.)

In dev, there is actually a _quadruple_ -_-" converstation, due to
useEffect running twice as designed, with no cleanup. Added a
cleanup function to reset after the first useEffect, so it only
runs once on dev as well.

This only happens when there is an existing query to send when you
hit the AI page, so to reproduce the current bug, type in the
command input _before_ selecting "Supabase AI". If you select
"Supabase AI" before entering your prompt, it won't occur, which is
how I guess this bug slipped past manual testing.
2024-08-14 12:15:08 -04:00
Charis
ec94638e9f feat: snippet commands (#28573)
Add commands to studio cmd k for searching and running snippets (doesn't actually run them directly cause that would take a lot of duplicated logic, just links to sql editor with them loaded)
2024-08-14 10:32:04 -04:00
Charis
84732ff44c feat: add new command menu to studio (#28432)
Add new command menu to studio. Ports over commands from old menu (with some minor reorganization), then adds:
- Branch switcher
- Project switcher
2024-08-08 16:42:07 -04:00
Charis
14fc9c0118 feat(www): new command menu (#28346)
Replace www command menu with the new one.
2024-08-02 15:52:24 -04:00
Charis
185e67611d fix: status icon location moved (#28302) 2024-07-31 16:55:19 -02:30
Charis
e3e8cd943c feat: replace docs command menu with v2 (#28048)
Replace docs command menu with Command Menu V2 from ui-patterns/CommandMenu.

This introduces the prepackaged folder for the shared Command Menu, which contains commands that are shared across the sites (for example, docs search, theme switcher).

Commands that are only applicable to a single site are now defined within that site's own app folder (put them wherever makes sense for your app folder organization, as long as you use the hooks within a global CommandProvider it will work...)

Tested navigating around, using search and AI on laptop and mobile.
2024-07-31 14:20:30 -04:00
Charis
1b89fa0b5c feat: command menu v2 ui components (#27761)
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2024-07-16 14:14:03 -04:00
Charis
9d6d29c4db feat(cmd menu): add hooks (#27044) 2024-06-20 19:17:32 -04:00
Charis
71f012a527 feat(command menu v2): complete state management (#27019)
Add all the outstanding pieces for state management of new command menu:

- Pages state (handles routing between command menu views, e.g., docs
  search, AI, etc.)
- View state (handles opening and closing and initiation (needed for
  lazy loading))
- Query state (handles active search term)
2024-06-05 10:53:00 -04:00
Charis
4fbcd61e95 feat: new command menu pt 1 (#23699)
Introduces the first (very small) slice of the new command menu as a `ui-pattern`.

This slice just handles state for available commands. It isn't hooked up to anything yet.
2024-06-04 14:32:13 -04:00