mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 07:59:03 +00:00
## Context Table Editor supports actions on tables via the "..." while the table is active in view as such: <img width="350" alt="image" src="https://github.com/user-attachments/assets/3fbf7b08-1156-403e-ae89-ada7f56e7270" /> Am opting to add support for making these actions available behind a context menu as well, which would align the UX with the SQL Editor, Storage, Explorer, etc. Makes it much more easier to reach these actions without having to first open the table in view and having to click the "..." button. Doing so in a similar way with how it's done in the Storage Explorer where we declare the the available actions in a single place, then render both DropdownMenu + ContextMenu with that set of actions. <img width="350" alt="image" src="https://github.com/user-attachments/assets/862e0a71-4d60-4a5b-8c98-f0812c0e6bf4" /> Note that for now, we're preventing selection of Edit, Duplicate, and Delete actions from the context menu as this requires a bit more refactoring which I'm planning to do as a separate PR. For context - those 3 actions are currently coupled with the router, as they depend on the table ID that's present in the URL, so we'll need to decouple them first before making these actions available. <img width="350" alt="image" src="https://github.com/user-attachments/assets/edc8af5c-b9b7-4e02-805c-90ad0a24d8dc" /> Also added E2E test coverage since this would affect local CLI / self-hosted