Skip to content

components 0.7.0: MD3 feed of cards; Card.Cover's 16:9 in the vendor list and the documents - #208

Merged
joelmsanto merged 1 commit into
mainfrom
cards/feed-cover-16-9-2026-11-10
Nov 10, 2026
Merged

joelmsanto merged 1 commit into
mainfrom
cards/feed-cover-16-9-2026-11-10

Conversation

@joelmsanto

Copy link
Copy Markdown
Contributor
  • Layout Feed (MD3 canonical layout «feed»): as many columns as fit at least paneMetrics.fixedPane wide (MD3's 360 dp pane), one on a phone, each item as wide as its column, 16 dp between items both ways. feedColumns is the geometry, useFeedColumns the measured hook for a virtualized list; until measured the window's width decides, and it follows a resized window.
  • VendorList is that feed, virtualized: a FlatList with numColumns (a new list when the count changes, as React Native requires), the rows keeping the screen's margins. sections stays its input, flattened in order.
  • imageKitCard / imageKitCardLqip take the card's width and crop to 16:9 (ar-16-9) instead of the window's width at load time and a fixed height.
  • DocumentCovers shows the sides whole, side by side and sharing the width, where each is at least a feed column (360 dp, owner 2026-11-10), else the carousel; it no longer measures the cover's height, which now follows its width.
  • Peer: react-native-paper ^5.12.14 (Card.Cover keeps 16:9, published).

Tests: Layout, Partner and VendorList suites, 13 suites / 1025 tests pass (new: Layout/__tests__/Feed.test.js, VendorList/__tests__/VendorList.test.js). eslint cannot run in this repo (its @react-native-community config is not installed); prettier on the changed lines.

🤖 Generated with Claude Code

…in the vendor list and the documents

- Layout `Feed` (MD3 canonical layout «feed»): as many columns as fit at least
  `paneMetrics.fixedPane` wide (MD3's 360 dp pane), one on a phone, each item as
  wide as its column, 16 dp between items both ways. `feedColumns` is the
  geometry and `useFeedColumns` the measured hook for a virtualized list.
  Until measured, the window's width decides; it follows a resized window.
- VendorList is that feed, virtualized: a FlatList with `numColumns` (a new
  list when the count changes, as React Native requires), the rows keeping the
  screen's margins. `sections` stays its input, flattened in order.
- imageKitCard / imageKitCardLqip take the card's width and crop to 16:9
  (`ar-16-9`) instead of the window's width at load time and a fixed height.
- DocumentCovers shows the sides whole, side by side and sharing the width,
  where each is at least a feed column (360 dp), else the carousel; it no longer
  measures the cover's height, which now follows its width.
- Peer: react-native-paper ^5.12.14 (Card.Cover keeps 16:9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joelmsanto
joelmsanto merged commit c4f2380 into main Nov 10, 2026
1 check failed
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