Commit bf67229
fix(compare): clarify narrative is anchored to slug defaults (Bugbot #5)
Bugbot flagged that the SSR narrative doesn't recompute when a reader
changes model/sequence/precision client-side (the table and chart do).
Making the narrative client-reactive would require duplicating the
interpolation pipeline on the client; the SSR text is also the SEO
payload and must remain server-rendered.
Mitigate with an inline italicized caveat appended to the narrative on
both routes: "(Numbers reflect the default <sequence> · <precision>
selection for this URL — table and chart below update if you change
sequence, precision, or model in the controls.)" — sets reader
expectations without losing the indexable prose. JSDoc on
compareTableNarrative documents the design choice.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6dd0f62 commit bf67229
3 files changed
Lines changed: 22 additions & 3 deletions
File tree
- packages/app/src
- app
- compare-per-dollar/[slug]
- compare/[slug]
- lib
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
342 | 351 | | |
343 | 352 | | |
344 | 353 | | |
| |||
0 commit comments