Repository navigation
feat(lynx): add Lynx tutorial example ports (gallery, bank-cards, swiper) - #414
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit add9512. Configure here.
| const handleItemClick = (index: number) => { | ||
| setCurrent(index); | ||
| updateIndex(index); | ||
| }; |
There was a problem hiding this comment.
Indicator jump ignores snap animation
Medium Severity
handleItemClick / updateIndex jump the offset through runOnMainThread(updateOffset) without calling cancelAnimate. Touch start cancels the rAF snap, but indicator taps do not, so during the 3s eased snap the loop keeps writing offsets and pulls the carousel (and later runOnBackground index updates) away from the tapped page.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit add9512. Configure here.
|
Find fixing CI and also the PR feedback? |
|
The swiper README's known-limitation section is now resolved: the black offscreen slides came from elements created during main-thread script evaluation baking in unconfigured PageConfig defaults ( |


Summary
packages/rspeedy-plugin-octane/examples/, porting the official Lynx tutorial projects from ReactLynx to@octanejs/lynx:gallery— “Tutorial: Product Gallery” (waterfall<list>, like taps,invoke('autoScroll'), main-thread-scripted scrollbar)swiper— “Tutorial: Product Detail” (MTS touch-driven swiper, rAF snap animation with a cross-thread easing prop,runOnMainThread/runOnBackgroundindicator)bank-cards— the BankCards gallery example (scroll-view selection, CSS 3D card flip)Why
invokeall exercised. They double as living documentation for the authoring differences (data-only thread-function captures/arguments, raw-PAPI main-thread elements, prop allowlists).<list>in the initial tree is excluded from first-tree capture (existing documented Milestone 6 exclusion), and<image>nodes in an adopted first tree never repaint after a transform moves them onscreen (background-mounted trees paint correctly) — isolated inexamples/swiper/README.md.Changes
pnpm exec rspeedy dev --root examples/<name>frompackages/rspeedy-plugin-octane. No package code changes.Validation
tsrx-tsc --noEmitfor all three examplesrspeedy buildfor all three examples (production bundles build cleanly)prettier --checkon all added css/mjs/ts/md filesrunOnMainThreadjumpRisk / follow-ups
Note
Low Risk
Documentation and example-only additions; runtime behavior depends on sibling fix PRs noted in the description, not on changes in this diff.
Overview
Adds three self-contained rspeedy sample apps under
packages/rspeedy-plugin-octane/examples/—gallery,bank-cards, andswiper—each a port of an official Lynx tutorial from ReactLynx to Octane (.lynx.tsrx,@octanejs/lynx,pluginOctane). There are no changes to framework or plugin source; only configs, sources, assets, and READMEs.gallery covers a waterfall
<list>, like taps,invoke('autoScroll'), and a main-thread scrollbar via__AddInlineStyle/__FlushElementTree. bank-cards covers payment UI with<scroll-view>, row selection, and a CSS 3D card flip;dataUriLimit: 0avoids Explorer data-URI image warnings. swiper covers MTS touch dragging, rAF snap with a cross-thread easing prop, andrunOnMainThread/runOnBackgroundfor the page indicator.Each README documents ReactLynx → Octane authoring differences and device validation notes (e.g. gallery’s first-screen
<list>exclusion, swiper’s PageConfig /firstScreenRender: 'engine'fix reference).Reviewed by Cursor Bugbot for commit d9e88ad. Bugbot is set up for automated code reviews on this repo. Configure here.