| Age | Commit message (Collapse) | Author |
|
fix(web-design-guidelines): bundle pinned guidelines instead of fetching from main
|
|
|
|
|
|
from main
|
|
fix(deploy-to-vercel): use vercel deploy --temporary for no-auth deploys
|
|
|
|
sandboxes
|
|
|
|
fix: recommend stable React 19.3 for view transitions
|
|
Update React View Transitions guidance and troubleshooting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scope the nested-VT rule in nextjs.md to match SKILL.md
|
|
nextjs.md stated the nested-VT limitation absolutely, while SKILL.md and
patterns.md both scope it to parents that mount or unmount as one unit, and
SKILL.md prescribes nested boundaries for shared elements in list items.
Read on its own, the absolute phrasing suggests nesting is always fatal.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
|
feat: ✨ publish Agent Skills discovery index
|
|
|
|
|
|
|
|
Update Next.js View Transitions patterns
|
|
|
|
|
|
Update install command for view transition skill
|
|
|
|
react-view-transitions: field learnings — morphs, isolation, interactivity
|
|
alone
Review feedback: 'see this "heading"' prose references are ambiguous —
every cross-file and same-file reference is now a proper markdown link
with a validated anchor. AGENTS.md restored to its main version; the
compiled document is noise in this PR and can be regenerated separately.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
From auditing next-beats against the skill: pad fixed-size lists to a
constant slot count so nothing below them ever moves (the no-morph
alternative to displacement morphs), and pair the live-root recipe with
enter-only reveals (no fallback-exit VT; the skeleton snaps out live
while content fades in).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
z-index tiering
Patterns proven in production apps (next-beats, next16-social-media)
that the skill lacked:
- No Root Cross-Fade recipe: old(root) display:none + new(root)
animation:none — new(root) is a live capture, so unnamed regions keep
rendering hover/active styles and stay interactive with the
pointer-events recipe, while classed/named groups still animate
- Always-mounted named wrapper for third-party floating components
(toast libraries unmount their container when empty, leaving the
group unpinned exactly when a toast appears mid-transition); name
dialog backdrops separately from panels
- Z-index tiering across pinned groups (chrome 100, toasts 200)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
Same facts, fewer words: compress the browser-support note, router.back
entries, default="none" trade-off, displacement-morph activation rule,
hit-testing cost bullet, layout-VT troubleshooting, nextjs setup/flag
history, parentEnter availability note, and the pointer-events recipe.
AGENTS.md recompiled.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
per official Next docs
The Next.js view-transitions guide states browser back navigations still
apply untyped shared-element morphs — only type-keyed animations (which
resolve to their default with no types) don't play. Softened the "back
doesn't animate" wording in all three places accordingly.
Flag history clarified in nextjs.md: experimental.viewTransition used to
switch the bundled React to the experimental channel (required when
ViewTransition was experimental-only); since the canary release it no
longer switches channels, and the experimental channel — still needed for
useSwipeTransition gestures and parentEnter/parentExit — is selected by
gestureTransition/blockingSSR/taint/transitionIndicator instead.
AGENTS.md recompiled.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
regenerate AGENTS.md
Verified every mechanical claim in SKILL.md and all four references against
local facebook/react (19.3.0-dev @ 8384090) and vercel/next.js (16.3 canary)
checkouts. Most claims confirmed with file:line evidence; corrections:
- router.back()/popstate: the old "popstate is synchronous, incompatible"
rationale was wrong — Next wraps popstate in startTransition, but React's
shouldAttemptEagerTransition() renders popstate-scheduled transitions
synchronously (skipping VTs), and traversals carry no transition types.
- Browser support: React requires the startViewTransition v2 object form and
no-ops otherwise, so effectively Chromium 125+, not 111+.
- Nested-VT limitation scoped to the real rule (suppressed only when parent
and child mount/unmount as one unit; children of persistent parents fire
normally) and repointed from closed PR #36135 to the merged experimental
parentEnter/parentExit (#36690).
- transitionTypes availability: Next 16.2.0+, not "15+ canary"; not gated on
experimental.viewTransition (the flag is currently inert at runtime — it
historically switched React channels).
- Same-route dynamic segments: subtrees are keyed by segment value
(remount/Activity swap), not "stays mounted".
- parentEnter availability grep was a false-positive check; replaced with a
react-dom-client probe. Fixed wrong-org commit URL (react/react →
facebook/react).
- Programmatic navigation snippet had a Rules-of-Hooks violation (useRouter
inside the handler); now a proper component.
- pointer-events recipe: documented React's own overlay handling (zero-size
cancel, deliberate no-pointer-events-none so animations block clicks) and
the trade-off of overriding it.
- Displacement morph activation: broader than "immediate siblings of the
mutation" — direct VT children of any node along the changed path.
- Events: cleanup functions are optional, not mandatory.
AGENTS.md regenerated from the current sources (it had drifted behind the
whole branch); compiled verbatim with cross-references rewritten and a fresh
table of contents.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
pattern to references
Checked every new claim against facebook/react (ReactFiberCommitViewTransitions.js,
ReactFiberViewTransitionComponent.js) and react.dev:
- update-on-displacement confirmed (commitAfterMutationEffectsOnFiber measures
boundaries in unchanged subtrees; getViewTransitionClassName(default, update)
returning 'none' bails). Tightened wording to the docs' precise rule: size or
position change "due to an immediate sibling" — React is deliberately
conservative, so the boundary must be a direct sibling of the mutation.
- share pairing skip confirmed: pairs only form when
getViewTransitionClassName(default, share) !== 'none', so default="none"
without a share prop kills the morph.
- type-map fallback confirmed: getClassNameByType returns the map's `default`
when no active transition type matches.
Structure: SKILL.md keeps a two-line overview of Layout Displacement Morph;
the full pattern (code, immediate-sibling constraint, default="none" caveat)
moves to references/patterns.md, matching the skill's overview/reference split.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
interactivity cost of names
Learnings from a full debugging day on a real app (next-beats):
- update trigger also fires when a boundary is displaced by surrounding
content, not just inner mutations. New "Layout Displacement Morph"
pattern: bare VT around a sibling section so it glides (heading
included) when a list above grows/shrinks.
- "Always use default=none" was too absolute — it silently disables
update (displacement/reflow morphs) and share (a named pair with no
explicit share prop never morphs). Reworded to "deliberately" with
the trade-off spelled out.
- Two silent shared-morph killers documented: default="none" without a
share prop, and type-keyed share where links never add the type
(missing transitionTypes / addTransitionType).
- Interactivity: named participants are hit-test-skipped for the whole
transition (csswg#10930). New css-recipes section with the
::view-transition { pointer-events: none } recipe and its limits;
floating-element guidance now warns to portal named popovers —
inline in a clickable row, mid-transition clicks activate the row
behind and read as outside-clicks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
react-view-transitions: isolation, scroll-hang, reveal-flicker, shared-element placement
|
|
The generalized sliding indicator drives its state via a transition, so a
suspending tab panel would stall the indicator and aria-current until commit.
Add a caveat pointing to useOptimistic for instant control feedback, matching
the routing variant (optimistic aria-current, committed active for the bar).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
- patterns.md: sliding indicator is now framework-agnostic (local state +
startTransition, no next/link). The routing-driven variant moves to nextjs.md.
- patterns.md: "Preserve State with Activity" -> "Composing with Activity";
frame Activity as orthogonal state-preservation, note stateless elements
(the indicator) gain nothing, point at Next layout persistence.
- nextjs.md: add Routing-Driven Tabs (Link + onNavigate + useOptimistic).
- nextjs.md: note layout-hosted chrome persists without Activity.
Addresses review feedback that the indicator was Next-specific and that
Activity is a separate concern from view transitions.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
is cached/prefetched
Step 6 rule: a cross-navigation morph isn't automatic — the target must be present at
the navigation snapshot. It works when rendered above the data boundary or when its data
is cached/prefetched so it resolves in time; behind an unresolved Suspense fallback it
won't pair. Heads off the "it should just morph automatically" / "it's impossible" traps.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
Remove the layout.tsx/params/instant-route "shared elements across a Suspense
boundary" section from nextjs.md. The general truth is enough and framework-agnostic:
a shared element must be in the DOM at navigation time or it can't morph — added as a
one-line rule under Step 6 (shared elements) in implementation.md.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
- Condense the isolation, reveal-flicker, sliding-indicator, and troubleshooting
additions to short bullets/one-liners matching the rest of the skill.
- Reframe the cross-navigation shared-element section positively: it morphs fine
when the target is in the shell / cached; keep the instant-route caveat brief.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
- Reveal flicker (same element in fallback + content) is an opacity flicker: fix by
rendering it outside the <Suspense> boundary (or pinning). Removed the incorrect
"morph the fallback" framing and the "Skeleton <-> Content Morph" recipe, and dropped
the cross-reference tying it to cross-navigation morphs (unrelated concerns).
- Review fixes: isolation note no longer contradicts the default="none" paragraph;
import Link in the Tabs example; qualify useSwipeTransition/startGestureTransition as
experimental/if-available; self-contained layout example (inline params type).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
the Suspense section
- Move the floating-element isolation, skeleton↔content morph, and sliding-indicator
CSS out of patterns.md into css-recipes.md (its "ready-to-use CSS" home); patterns.md
keeps the JSX/prose and points to the recipes.
- Surface the skeleton↔content reveal-flicker in the Suspense section (implementation.md
Step 5) so it's found where reveals are taught.
- Add the caching nuance: the fallback→content morph only morphs when the content
resolves within the same reveal (cached/prefetched); on a cold fetch it enters later
as a separate transition (no morph).
- Drop illustrative inline comments that weren't needed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
- Explain why an element present in BOTH the Suspense fallback and the resolved
content flickers (two DOM nodes cross-faded), and that the fix is a shared
view-transition-name + group-only morph (old/new animation:none), i.e. you can
morph the fallback shape into the content shape. Note pinning is the wrong tool
(it freezes; here you want continuity).
- Add the "Sliding Indicator (tabs / segmented control)" pattern: one shared-name
indicator rendered under the committed active tab morphs between positions;
animate the group (slide), disable old/new (no cross-fade of the solid bar).
Includes the tab-underline CSS recipe and the useOptimistic/isCommitted detail.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
shared-element placement
Learnings from applying the skill to a real Next.js 16 app (next-beats):
- Isolation: clarify that `view-transition-name: none` is a NO-OP (it's the CSS
default) — isolating an element from the `root` snapshot always needs a real,
unique name + neutralizing CSS. Document `<ViewTransition default="none">` vs a
hand-named group: the auto-name can't be targeted for `z-index`/backdrop
`display:none`, so hand-named isolation stays necessary for pinned chrome.
- Floating elements: an open popover/menu is captured in `root` and flickers as a
background transition settles; fix with a real name + isolation (a common
`viewTransitionName:'none'` bug). Add a Troubleshooting entry.
- Scroll-hang: document the `::view-transition` fixed-overlay limitation and that
gesture transitions (useSwipeTransition) are the answer for scroll-driven UI.
- Shared elements behind a data `<Suspense>`: explain the "only the skeleton
morphs" trap — the named element must be in the shell at snapshot time. Hoist it
into the layout keyed by params (fast/cached), stream data inside. Note the
interaction with instant/prerenderable routes (params-in-shell) so agents don't
conclude the morph is "structurally impossible."
- Note the experimental parentEnter/parentExit nested enter/exit work (React PR
#36917) as a future capability, with the commit link.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
fix(vercel-optimize): run vercel via node entry on Windows (execFile can't spawn .cmd)
|
|
|