Files
open-design-crew[bot] eeeb6760da feat(explore,studio): add Black Friday Explore hero, curated model hubs, and gateway-guarded model preselection (#1095)
* feat(explore): add Black Friday Explore hero, spotlight, and curated model hubs

Port the scheduled Black Friday Explore presentation and curated Seedance 2.5 and GPT Image 2.0 model hubs onto main, keeping Cloud Model Gateway wiring, guest/MCP flows, and P1 feature gates intact:

- Add scheduled ExploreBlackFridayHero (2026-11-25 20:00 +08:00 to 2026-12-05 00:00 +08:00) using curated HD corridor covers (excluding torn-portrait tile #28 and keeping foreground ring 6 center-left as a clean model logo tile) and ExploreBlackFridaySpotlight cards, synced with a 12-hour rolling countdown and shared WorkspaceFrame banner takeover state.
- Add curated Seedance 2.5 (70 templates) and GPT Image 2.0 (35 templates) ModelHub showcases with staggered masonry layout, hover-only video playback, opaque portal lightbox, X-hosted no-referrer video iframe with Escape bridge, and StudioIdeas remix handoff.
- Bundle offline Instrument Serif font + OFL/NOTICES tokens, upgrade local posters to AVIF, and add .avif MIME support in src/entrypoints/api.ts.
- Address review feedback from the source PR: preserve _blank Pricing links with checkout-return refresh hooks, replace translucent backdrop-filter chrome with solid design-system surfaces, rewrite clipped/reference-dependent showcase prompts into complete self-contained prompts, backfill all 10 non-English locales in model-hub-ui.json (removing it from LEGACY_PARTIAL_UI_FILES), and keep WorkspaceBreadcrumb decoupled from heavy hub media via modelHubMeta.ts.

Backport-of: #931, #1057 (partial, from commits 40dee17b7 and 17d6301d8)

* feat(studio): preselect hub and template models when served by gateway

Carry and default-select the originating model when jumping from a ModelHub remix/CTA, Explore model story, or Cinema template into a Studio creation page, strictly guarded by the live backend catalog:

- Centralize lightweight hub model matchers and preference ranking in modelHubMeta.ts (preferring exact GPT Image 2 / 2.0 over 2.6 variants and standard Seedance 2.5 over Flash) without pulling heavy hub assets into main.tsx.
- Add selectModelForHub() and enhance creationModels() so template/hub preferredModel hints match composite id, raw modelId, or soft hub:<id> hints against both available and compatible catalog lists, while falling back cleanly to the normal default when the backend does not return the model.
- Wire ModelHub showcase remix cards, lightbox remix, and hero primary CTAs (plus Explore model stories and WorkspaceFrame draft preservation) to resolve live catalog models when loaded or pass a soft hub hint while loading, never pinning an absent model.

---------

Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-25 17:45:17 +08:00
..