Files
supabase/apps/docs/features/IaNav/option1/realtime.ts
Miranda Limonczenko 45b5235705 docs: pass Postgres Changes eval (#54332)
Closes DOCS-1815

## Problem

The Postgres Changes page is failing. 

The reason is this:
The Postgres Changes quick start sets up the `anon` role only. A reader
who secures the table for signed-in users gets no events and no error.
The publication step and replica identity sit in separate sections, so a
reader can miss either.

I have verified that this change fixes the issue in the Eval. 

This additionally breaks out many unused Eval lines into another topic.

## Solution

- **Prepare a table:** a new section that lists the three requirements,
how to set each, and what a reader sees without it.
- **Signed-in users:** a policy that sends each user only their own
rows.
- **Filters page:** the operator reference moves to its own page.
`#available-filters` still resolves.
- **Corrections:** the publication step names `todos`, and the old
record section says what `UPDATE` and `DELETE` carry.
- **Style and structure:** imperative headings, a description, and Next
steps.

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/realtime/postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes)
|
[/docs/guides/realtime/postgres-changes](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes)
| Prepare a table |
| Docs | New page |
[/docs/guides/realtime/postgres-changes-filters](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes-filters)
| Combining filters with `AND` |

## Manual testing

1. Open the preview of `/docs/guides/realtime/postgres-changes` and go
to **Prepare a table**. The table lists three requirements.
2. Open `/docs/guides/realtime/postgres-changes#receiving-old-records`.
The page lands on **Receive old records**.
3. In the sidebar, click **Postgres Changes filters**. The page lists
all 13 operators.
2026-12-01 10:26:52 -08:00

63 lines
2.2 KiB
TypeScript

import { isFeatureEnabled } from 'common/enabled-features'
import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
const { billingAll: billingEnabled } = isFeatureEnabled(['billing:all'])
export const realtime: NavMenuConstant = {
icon: 'realtime',
title: 'Realtime',
url: '/guides/realtime',
items: [
{ name: 'Overview', url: '/guides/realtime' },
{ name: 'Getting started', url: '/guides/realtime/getting_started' },
{ name: 'Authorization', url: '/guides/realtime/authorization' },
{
name: 'Usage',
items: [
{ name: 'Broadcast', url: '/guides/realtime/broadcast' },
{ name: 'Presence', url: '/guides/realtime/presence' },
{ name: 'Postgres Changes', url: '/guides/realtime/postgres-changes' },
{ name: 'Postgres Changes filters', url: '/guides/realtime/postgres-changes-filters' },
{ name: 'Settings', url: '/guides/realtime/settings' },
],
},
{
name: 'Tutorials',
items: [
{
name: 'Listen to database changes',
url: '/guides/realtime/subscribing-to-database-changes',
},
{ name: 'Using Realtime with Next.js', url: '/guides/realtime/realtime-with-nextjs' },
{
name: 'Presence with Flutter',
url: '/guides/realtime/realtime-user-presence',
},
{
name: 'Flutter Postgres Changes',
url: '/guides/realtime/realtime-listening-flutter',
},
],
},
{
name: 'Architecture and limits',
items: [
{ name: 'Architecture', url: '/guides/realtime/architecture' },
{ name: 'Concepts', url: '/guides/realtime/concepts' },
{ name: 'Protocol', url: '/guides/realtime/protocol' },
{ name: 'Benchmarks', url: '/guides/realtime/benchmarks' },
{ name: 'Limits', url: '/guides/realtime/limits', enabled: billingEnabled },
{ name: 'Pricing', url: '/guides/realtime/pricing', enabled: billingEnabled },
],
},
{
name: 'Debugging and reports',
items: [
{ name: 'Operational error codes', url: '/guides/realtime/error_codes' },
{ name: 'Realtime reports', url: '/guides/realtime/reports' },
],
},
],
}