Skip to content

Show the scroll-state example on the Message Scroller page - #66

Open
ryoaonetsuki wants to merge 2 commits into
deeplethe:devfrom
ryoaonetsuki:fix/scroller-scrollable-example
Open

ryoaonetsuki wants to merge 2 commits into
deeplethe:devfrom
ryoaonetsuki:fix/scroller-scrollable-example

Conversation

@ryoaonetsuki

Copy link
Copy Markdown

Why

The Message Scroller page's "Reading Scroll State" section documents
useMessageScrollerScrollable and says "in the example below" — but the
preview it names, message-scroller-scrollable, has no example file, so
build-docs silently drops it and the section shows no example. The example
itself exists: src/examples/message-scroller-state.tsx renders exactly this
(a status bar driven by useMessageScrollerScrollable), but nothing references
it.

What changes

The example file is renamed to message-scroller-scrollable.tsx, and its
exported component to MessageScrollerScrollable, so the page's preview
resolves. No page text is touched.

How it was checked

  • node scripts/build-docs.mjs output for the Message Scroller page now lists
    message-scroller-scrollable as a preview, under the "Reading Scroll State"
    heading, alongside the two previews that already worked.
  • npm run typecheck and npm run build pass; registry.json is unchanged.

Limitation, stated honestly: the other 7 missing Message Scroller previews on
the same page are still dropped — they need their examples written, which is
bigger work than this rename. The companion warning from the build (see the
dropped-previews PR) now lists them on every build instead of hiding them.

Signed-off-by: ryoaonetsuki <ryoaonetsuki@users.noreply.github.com>
Signed-off-by: ryoaonetsuki <ryoaonetsuki@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant