Files
supabase/apps/docs/features/IaNav/option1/cronAndQueues.ts
Miranda Limonczenko 7636e18f8d docs: shorten and sentence-case the Option 1 sidebar labels (#53880)
Part of DOCS-1737

## Problem

People who tried the Option 1 navigation reported labels that wrap onto
two lines, such as "Architecture, limits and pricing". The old
35-character limit let that label through at 32 characters.

They also reported labels that aren't in sentence case, such as
"Framework Quickstarts" and "ORM Quickstarts". The docs style guide asks
for sentence case.

## Solution

- **28-character limit, enforced.** A new test in `option1.test.ts`
fails on any Option 1 sidebar label over 28 characters. 97 labels were
over the limit. They're shortened.
- **Sentence case.** About 120 more labels are recased. Proper nouns and
product feature names keep their capitals, such as Edge Functions, Row
Level Security and Auth Hooks. "Self-Hosting" becomes "Self-hosting" in
the top nav and the sidebar title.
- **Parallel Start labels.** "Web app demos" becomes "Web app
tutorials", to match "Mobile tutorials".
- **Build becomes Products.** The tree test ran each candidate label
against the shipped Option 1 tree, with 93 tasks and 3 runs each.
Products raised direct success from 51% to 59%, and first clicks on the
right section from 78% to 88%.
- **Test fixtures.** `DocsSidebarNav.test.tsx` and the level-size
allowlist reference labels by name, so they change too.


## Manual testing

1. Open [Getting started with Option 1 on the
preview](https://docs-git-docs-nav-label-casing-supabase.vercel.app/docs/guides/getting-started?docs-ia-mvp-v1=option-1).
The sidebar shows "Framework quickstarts" and "Web app tutorials".
2. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
2026-11-30 11:00:01 -08:00

50 lines
1.3 KiB
TypeScript

import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
export const cronAndQueues: NavMenuConstant = {
icon: 'cron',
title: 'Cron and Queues',
url: '/guides/cron',
items: [
{
name: 'Cron',
items: [
{
name: 'Getting started',
items: [
{ name: 'Install', url: '/guides/cron/install' },
{ name: 'Quickstart', url: '/guides/cron/quickstart' },
],
},
{ name: 'Scheduling Edge Functions', url: '/guides/functions/schedule-functions' },
],
},
{
name: 'Queues',
items: [
{ name: 'Overview', url: '/guides/queues' },
{
name: 'Getting started',
items: [
{ name: 'Quickstart', url: '/guides/queues/quickstart' },
{
name: 'Consume with Edge Functions',
url: '/guides/queues/consuming-messages-with-edge-functions',
},
{
name: 'Self-hosted Queues',
url: '/guides/queues/expose-self-hosted-queues',
},
],
},
{
name: 'References',
items: [
{ name: 'API', url: '/guides/queues/api' },
{ name: 'PGMQ extension', url: '/guides/queues/pgmq' },
],
},
],
},
],
}