Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/show unlock icon next to view entities #23238

Merged
merged 37 commits into from
May 23, 2024

Conversation

saltcod
Copy link
Contributor

@saltcod saltcod commented Apr 24, 2024

— want to show icons next to views / materialized views / foreign tables if they don't meet security conditions
— show warnings / more info in GridHeaderActions based on this info

screenshot-2024-04-24-at-16 23 42

To test:

  1. run the countries SQL Quickstart /project/_/sql/quickstarts
  2. next create a view, materialized view and a foreign table using https://gist.github.com/saltcod/17e5f9b84317d4c1618c7dfd410a8139

https://www.notion.so/supabase/Show-warning-if-there-is-a-foreign-table-materialized-view-table-in-a-schema-exposed-to-postgrest-bfb729d8a6c049f9944cb0405ad68f6e

@saltcod saltcod requested a review from a team as a code owner April 24, 2024 18:47
Copy link

supabase bot commented Apr 24, 2024

No changes detected in supabase directory.
This pull request has been ignored for the connected project xguihxuzqibwxjnimxev due to its connection settings.
Go to Project Integrations Settings ↗︎ in order to change this behavior.


Branching Preview Branches by Supabase.
Learn more about Supabase for Git ↗︎.

Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
database-new 🔄 Building (Inspect) Visit Preview May 23, 2024 7:05pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 7:05pm
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 7:05pm
zone-www-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 7:05pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
design-system ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 7:05pm
studio ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 7:05pm
studio-self-hosted ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 7:05pm
ui-storybook ⬜️ Ignored (Inspect) May 23, 2024 7:05pm

</Popover_Shadcn_>
)}

{isForeignTable && entityType.schema === 'public' && (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are a little repetitive, but i converted them to a component and seemed to make it slightly worse.

ex: these have a link as the CTA, the tables CTA has an onClick handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants