Commit Graph

8 Commits

Author SHA1 Message Date
Tom Huang
ef577a7844 feat(design): integrate Open Design HTML workflows, MCP tools, and Design Studio editor (#699)
* feat(design): add Design Studio project contract and locale resources

* feat(design): port Open Design templates, systems, skills, craft and scenario guides

* feat(design): add shared design-projects service, HTTP adapter, 4 MCP tools and openmotion-design Skill

* feat(design): add Design Studio HTML preview editor, scene tabs, Explore and MCP handbook entries

* feat(design): polish Design Studio UI, live preview bridge, packaging and stdio MCP E2E tests

- Upgrade Design Studio visual design: editorial hero and elevated composer dock with Design System swatches, Design Skill picker, and example prompt pills; edge-to-edge ScaledPreviewThumb gallery cards; dot-grid device frame canvas with dimension captions; syntax-highlighted line-numbered CodeViewer; inline project rename and Open-in actions; symmetrical 8-card Explore template shelf
- Keep preview bridge mounted for live HTML previews without iframe reloads on tool toggle, prevent overlay pointer capture from swallowing annotation popover clicks, and eliminate redundant initial raw preview fetches
- Complete all 10 non-English locale dictionaries in design-ui.json and design-editor-ui.json
- Register library/design and docs/design-studio.md in distribution packaging, include openmotion-design in package Skill checks, exercise all 4 openmotion_design_* tools in phase1-package.mjs, and schedule design test suites in CI
- Add live stdio MCP subprocess E2E coverage and CodeViewer/DesignProjectList Vitest coverage

* chore(design): remove redundant More studios dropdown from DesignSceneTabs

* feat(design): add Mobile App scenario with 390x844 phone preview default

* perf(design): freeze idle rAF/WebGL/CSS animations in preview thumbs and unmount offscreen iframes

* feat(design): reuse Motion Brand Kits for Design Studio picker with hover preview and detail modal

* feat(design): add Motion-aligned Design template detail preview modal with responsive stage and navigation

* feat(design): support @ mention autocomplete and composable multi-select templates, skills and prompts in composer

* fix(design): unify studio bar tab heights to eliminate layout shift between image and design scenes

* fix(design): keep Design Studio sub-navigation bar on a single responsive row

* feat(design): move Design Studio composer to floating bottom dock with scrollable middle template gallery

* chore(design): assign dedicated mobile-app templates from Open Design catalog without overlap with prototype

* feat(design): curate flagship-first template ordering and clean gallery-first card styling

* fix(design): constrain BrandKitPicker popover max-width and scroll container height to prevent overflow

* fix(design): align active scene tab styling with Text-to-Image and match search input and button heights

* fix(design): center editor toolbar with 3-column grid and remove idle pill background on annotation tools

* refactor(design): move Preview/Code and viewport selector into canvas toolbar and use compact annotation icons

* fix(design): remove inner textarea focus ring and align composer border radii

* fix(design): match filter input height to 32px md Button height

* fix(design): eliminate leaked media-surface border on composer textarea and align template detail stage with Motion

* docs(design): include mobile-app in Design Studio scenario documentation

* feat(design): make Copy to Agent prompts self-contained with MCP install and live workspace setup

* fix(design): replace opaque region fill with crisp translucent marquee and smart popover placement

* fix(design): remove internal-link demo URL and duplicate i18n keys that overwrote Studio translations

* feat(design): keep drawn pen strokes visible during compose, add visual previews in annotations, and focus on click

* fix(design): make toolbar Comments counter button toggle the Comments panel with active state

* fix(design): auto-size project title input and remove leaked media-surface fill and gap

* test(design): pass anchor in phase1 package comment smoke and target platform-export scenario by data attribute

* fix(design): address PR review findings on entry restore, preview isolation, coordinates, save revisions, and icons

* fix(design): reject overlapping write/delete paths, enable conflict overwrite retry, and hoist optional annotation bindings

* fix(design): fetch latest project and file before rebasing discarded code draft

* fix(design): clear codeLoading in finally when discard reload fails

---------

Co-authored-by: pftom <pftom@pftomdeMacBook-Pro.local>
Co-authored-by: pftom <pftom@pftomdeMBP.lan>
Co-authored-by: pftom <pftom@Mac.lan>
2026-11-20 14:38:40 +08:00
huihui-crypto
492540ffc2 feat(mcp): split library Skills into openmotion_list_skills / openmotion_get_skill (#648)
* feat(mcp): split library Skills into openmotion_list_skills / openmotion_get_skill

Skills no longer ride on the template tools. list_templates returns
templates only (no kind=skill rows, no skillTotal) and get_template rejects
Skill IDs with a pointer to openmotion_get_skill. The new tools reuse the
same repository/hosted readers and content-addressed object store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(studio): point Skill copy prompts and MCP examples to openmotion_get_skill

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: register Skill tools in the MCP handbook and update tool-count tests

- Templates capability lists openmotion_list_skills / openmotion_get_skill;
  technique studio scenarios compose openmotion_get_skill.
- Tool counts +2; the WebMCP tracking integration test flushes between calls
  so 23 tools x 3 events stay within the bounded browser queue (64).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): ship Skill tools in CMS/package mode, add handbook capability and refresh counts

- CMS mode reads the library/skills shipped with the application and never
  waits on the template publication, so list_skills/get_skill work offline
  and in the packaged phase-one ZIP.
- Phase-one package E2E calls openmotion_list_skills and openmotion_get_skill.
- Handbook gets a Skill-discovery capability (zh-CN copy included).
- Growth teardown Skill reads its scripts via openmotion_get_skill.
- Public counts: 18 MCP names (17 capabilities) and 23 WebMCP page tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zhanghuihua <zhanghuihua@Mac.lan>
2026-11-19 17:20:49 +08:00
Haoran Zhou
d968896718 fix(recreate): route project-less catalog templates to recreation (#581)
* fix(recreate): route project-less catalog templates to recreation

Catalog guidance packages without editable project files (hasHtmlProject
false) were sent to the generic production route, so their reference
video and measured style data went unused. They now return the recreate
workflow everywhere a template route is chosen.

- Add templateWorkflow() in shared/catalog.ts and use it for repository,
  hosted and built-in template details and recipes.
- Explain in the recreate guidance how to use a guidance package: start
  from fitted values, treat inferred or unknown values as hints, and keep
  the decoded reference video authoritative.
- Update the get_template description, MCP onboarding guidance and
  template documentation to the recreate route.
- State the current sixteen registered public Tool names where docs
  still described eleven or fifteen; historical records are unchanged.
- Remove the duplicated complete_generation paragraph from native.md and
  link to its owner in production.md, restoring the Skill duplication
  check.
- Delete the openmotion-reference-video compatibility entry. It is not
  packaged and no source, prompt or host configuration calls it by name.
- Derive the expected media provider guides from the providers folder so
  new guides such as Fish Audio and MiniMax Speech must be linked from
  the jobs reference instead of breaking a fixed list.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix(recreate): route every non-editable template entry to recreation

- templateWorkflow() now keys off isEditableTemplate(), so legacy
  registry blocks, components and examples join references and
  project-less guidance packages on the recreate route.
- The CMS detail fallback uses templateWorkflow() instead of a fixed
  template route.
- The get_template descriptions follow the returned workflowGuide, which
  stays correct for built-in templates that omit hasHtmlProject.
- Cover registry entries and a CMS guidance-only package in tests.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* docs: align catalog routing with editable Prism entries

---------

Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: lefarcen <935902669@qq.com>
2026-11-18 17:11:39 +08:00
bone3deep1962-collab
057fd22b68 Unify public OpenMotion names with backward-compatible aliases 2026-11-12 17:30:27 +08:00
open-design-crew[bot]
7805690c4f fix(motion): isolate concurrent project editors (#174)
Co-authored-by: 罗高 <luogao@refly.ai>
2026-11-09 16:24:51 +08:00
Tom Huang
ff26be350e docs(motion): record upstream sync and streamline contributor guidance (#176)
* docs(motion): record latest upstream main synchronization

* docs: require English commits and repository collaboration

* docs: replace mandatory change logs with architecture review
2026-11-08 20:30:54 +08:00
open-design-crew[bot]
93e4533358 feat(motion): sync five Skills, UI and bilingual guides (#169)
Co-authored-by: 罗高 <luogao@refly.ai>
2026-11-06 19:19:07 +08:00
罗高
4250e10dbb feat(motion): replace legacy app with standalone OpenMotion 2026-11-06 12:31:58 +08:00