diff --git a/apps/docs/src/app/figures/response-player.ts b/apps/docs/src/app/figures/response-player.ts index afb23ce..5da2832 100644 --- a/apps/docs/src/app/figures/response-player.ts +++ b/apps/docs/src/app/figures/response-player.ts @@ -4,6 +4,9 @@ import { CodeSample, type Sample } from './code-sample'; /** Who owns a piece of the drawn page at a step. */ type Owner = 'server' | 'hydrated'; +/** A slow part of the page: its placeholder until its chunk arrives. */ +type BlockState = 'placeholder' | Owner; + interface Step { /** The label on the step's button. */ short: string; @@ -13,31 +16,49 @@ interface Step { sent: number; /** Null until the shell has arrived. */ shell: Owner | null; - reviews: 'placeholder' | Owner; + recommendations: BlockState; + reviews: BlockState; } -/** The response, in the two pieces the server writes. Cut down to what does the work. */ +/** + * The response, in the three pieces the server writes. Cut down to what does + * the work. The recommendations sit above the reviews, so they are met first + * and get `d0`; the reviews are `d1`, and arrive first. + */ const PIECES = [ `
Loading reviews…
+Loading recommendations…
Loading reviews…
+ +