“On my /products page, fetch all rows from the products table in Supabase and display them as cards. Use server-side rendering so the data is available on first load. Each card should show the product name, price, and image. Sort by newest first.”
“I just created a posts table in Supabase. Grant my app access to it so it stops saying 'permission denied for table', make sure Row-Level Security is turned on, and explain in plain English who can now read and change what.”
“In my chat app, subscribe to new messages in the messages table using Supabase Realtime. When a new message is inserted, automatically add it to the displayed message list without a page reload. Clean up the subscription when the component unmounts.”
“When the user toggles a checkbox in my todo app, update the UI instantly (don't wait for the database). If the database write fails, revert the UI change and show an error toast. This makes the app feel much faster.”