Files
civitai__civitai/apps
Luis Rojas b641043cc8 feat(training-studio): open the sidebar generator in place for embedded epoch handoffs
Embedded at civitai.com, an epoch's Generate no longer navigates: the host provides an optional
generate() capability that seeds the epoch's raw-AIR resource and opens the globally-mounted
sidebar generation panel — URL untouched, no reload. The synthetic-resource construction moved
out of the ?air= ingestion effect into a shared seedRawAirResource, so the URL entry and the
panel path can't drift. RunDetail prefers the callback (button) over generateUrl (link, still
the standalone's behavior); both absent hides the affordance. Contract documented.

Verified live: embed click opens the seeded panel in ~50ms with whatIf pricing (reload sentinel
intact); standalone keeps the absolute _blank link. Element build + both typechecks + 30
targeted tests green; maintainer tested both hosts and OK'd.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DV3Ku4Eu9qTtzd61zt19dZ
2026-09-15 21:27:13 -04:00
..