Skip to content

WIP: feat(recorder): unify studio recorder on preview events#2557

Draft
fishear wants to merge 8 commits into
mainfrom
feat/studio_record
Draft

WIP: feat(recorder): unify studio recorder on preview events#2557
fishear wants to merge 8 commits into
mainfrom
feat/studio_record

Conversation

@fishear
Copy link
Copy Markdown
Contributor

@fishear fishear commented May 27, 2026

Summary

  • Rework Studio Recorder around unified preview-driven recording events.
  • Add semantic UI event descriptions for recorded interactions and feed them into Markdown/YAML generation.
  • Add Studio recorder replay/import plumbing while keeping Playground history scoped by target.
  • Remove internal-only public config hooks such as legacy migration and external-run handled callbacks.
  • Increase recorder Markdown screenshot asset cap to 20.

Validation

  • pnpm --dir packages/visualizer test -- tests/universal-playground-external-run.test.ts
  • pnpm --dir apps/studio test -- tests/playground-config.test.tsx
  • pnpm --dir packages/shared test -- tests/unit-test/recorder.test.ts
  • pnpm --dir packages/core test -- tests/unit-test/prompt/markdown-generator.test.ts
  • pnpm --dir packages/visualizer build
  • pnpm run lint

Draft/WIP: still needs product/QA pass on Studio recorder UX across Web/Android/iOS/Computer/HarmonyOS targets.

fishear and others added 5 commits May 25, 2026 20:00
- Add studio recorder UI and provider wiring.
  - Support drag and scroll recorder events.
  - Share recorder schema across platforms.
  - Add recorder export and codegen tests.
  - Update related lockfile entries.
return {
...state,
sessions,
currentSessionId: session.id,
} else {
session.events.forEach((event, index) => {
lines.push(
`| ${index + 1} | ${event.type} | ${eventDescription(event).replace(/\|/g, '\\|')} |`,
}

export async function deleteStudioRecorderSession(
sessionId: string,
}

export async function setCurrentStudioRecorderSessionId(
sessionId: string | null,
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 27, 2026

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0687614
Status: ✅  Deploy successful!
Preview URL: https://fbb3adfd.midscene.pages.dev
Branch Preview URL: https://feat-studio-record.midscene.pages.dev

View logs

@fishear fishear force-pushed the feat/studio_record branch 2 times, most recently from 282c0f2 to 124fc64 Compare May 28, 2026 11:21
@fishear fishear force-pushed the feat/studio_record branch from 124fc64 to 0687614 Compare May 29, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants