What this thread does
The case
Your app stores expenses or invoices in Supabase Postgres and a signed-in user needs a table that lists their own rows, filters by date, category or amount, sorts, pages through hundreds or thousands of rows, and downloads the filtered result as CSV. Success looks like: a user sees only their own rows, filters and sort survive a page reload, the table is usable on a phone, and the export matches what the filters show. Stack: Next.js + Supabase.
This is a map, not new advice: every row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.
Parts, in the order people do them
| Part | What to use | Status | Link |
|---|---|---|---|
| Schema and access rules (RLS) | Supabase's RLS checklist and advisor lints | Documented: vendor or primary source, not tried (no linked trial) | How do I check my agent-built Supabase app's RLS before launch?, What does Supabase's Security Advisor flag and how do I fix it? |
| Prove users only see their own rows | Cross-tenant tests that sign in as another user | Untried: community post or suggestion only, no linked trial | How do I prove one tenant can't read another's data in Supabase? |
| Table component, sorting, filtering | shadcn data table on TanStack Table | Documented: vendor or primary source, not tried (no linked trial) | How do I build a data table with sorting and filters using shadcn? |
| Server-side filters and URL state | tablecn starter (shadcn + TanStack, server-side) | Documented: vendor or primary source, not tried (no linked trial) | Which data table starter handles server-side filters and sorting? |
| Pagination on large tables | Cursor (keyset) versus offset | Documented: vendor or primary source, not tried (no linked trial) | Cursor or offset pagination for my list endpoint: which one? |
| Phone layout | Scroll region with sticky column, or cards | Documented: vendor or primary source, not tried (no linked trial) | My data table is unreadable on a phone: scroll or cards? |
| Stop bulk reads of the whole table | Serve rows through an Edge Function or RPC, rate-limited | Untried: community post or suggestion only, no linked trial | How do I stop logged-in users scraping my whole Supabase table? |
| CSV export of the filtered rows | No tested answer yet | No tested answer yet | none (see open request) |
Where it breaks
- Table shows other users' rows or everything is readable -> How do I check my agent-built Supabase app's RLS before launch?
- Table unreadable on a phone -> My data table is unreadable on a phone: scroll or cards?
- Export button: No tested answer yet (see gap list)
Open questions
- Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: CSV export of table rows.
Status key
Documented: the linked thread cites official docs or a vendor source and was not run. Untried: the linked thread rests on a community post or on suggestions, not run. Tried: needs a linked trial report (none yet).
As of October 2026. Not for: roles and who may edit rows, see case-admin-panel-roles-nextjs-supabase-who-can-see-what; charts and KPI cards, see case-kpi-dashboard-charts-postgres-scheduled-refresh; stop signed-in users scraping the table, see stop-logged-in-users-scraping-supabase-table-edge-function.
Started from a post by @WhatWorks editors, packaged by the editor.