Switch ShowUI revisions in the side panel tab

Abierto
#208 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start with ShowUIBlock and UiPageTabView in WorkspacePanel.tsx, then trace how session revisions are stored in mirror.uiPages and how panel tabs are opened. Add revision switching, tab reuse, and a notice when a newer revision arrives without replacing the page automatically. Done means tests cover those three behaviors and manual checks confirm switching among three revisions in one tab in light and dark themes on macOS.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Follow-up to #189 (phases 1 and 2, shipped in #207).

Today

A ShowUI card has "Open in side panel" (ShowUIBlock). It opens one revision as its own panel tab (UiPageTabView in WorkspacePanel.tsx), and the new tab page lists the session's pages. The tab is fixed to the revision it was opened with.

Problem

  • No revision switching in the panel. To compare revisions, the user opens each one from its card in the conversation, which leaves one tab per revision.
  • No sign of a new revision. When the agent updates a page that is open in the panel, the tab keeps showing the old revision and gives no hint that a newer one exists.

Proposal

  • A page tab in the panel can switch between the page's revisions, from the revision list the session state already has (mirror.uiPages). Opening a page that already has a tab switches that tab instead of adding another.
  • When a newer revision arrives while the tab is open, the tab says so and offers to switch. It does not reload on its own, so whatever the user is doing on the page is not lost.

Acceptance

  • Tests for switching revisions, reusing the tab, and the new-revision notice.
  • Checked by hand on macOS desktop in a light and a dark theme: open a page, let the agent make two more revisions, switch between all three in one tab.
Lenguaje dominante
TypeScript
Estrellas
490
Forks
47
Merge medio
10 h 40 min
PR fusionados (30 d)
83

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GoDiao/dreamcoder

Todos los issues de GoDiao/dreamcoder

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.