V2 (new) sStep 4 complete. (untested, unreviewed, cross my fingers)

This commit is contained in:
Jim Lancaster
2026-08-01 18:28:00 -05:00
parent 51ac2d0b98
commit dfe6f121ff
8 changed files with 175 additions and 11 deletions
@@ -49,11 +49,11 @@ def _render_source_section(source: Source) -> None:
def _render_revision_section(revision: Source | None) -> None:
with ui.card().classes("w-full q-pa-md vibe-card"):
ui.label("Revision").classes("text-subtitle1 text-weight-medium")
ui.label("Source revision").classes("text-subtitle1 text-weight-medium")
ui.separator().classes("q-my-sm")
if revision is None:
ui.label("No revision exists for this source.").classes("text-body2 vibe-text-muted")
ui.label("No source revision exists for this source.").classes("text-body2 vibe-text-muted")
return
render_revision_row(revision=revision, initially_expanded=True)
@@ -39,14 +39,14 @@ def render_page_content(
ui.label(raw_text).classes("transcription-placeholder__text")
with ui.element("section").classes("transcription-placeholder__section"):
ui.label("Human revision").classes("transcription-placeholder__title")
ui.label("Human-reviewed text").classes("transcription-placeholder__title")
ui.textarea(value=revised_text).props("outlined autogrow").classes("w-full")
with ui.element("aside").props('aria-label="Document context"').classes("page-content__sidebar"):
with ui.element("section").classes("page-content__sidebar-section"):
ui.label("People").classes("page-content__sidebar-title")
ui.label("Author · Placeholder Person")
ui.label("Recipient · Placeholder Person")
ui.label("Author · Placeholder person")
ui.label("Recipient · Placeholder person")
with ui.element("section").classes("page-content__sidebar-section"):
ui.label("AI processing").classes("page-content__sidebar-title")
@@ -57,7 +57,7 @@ def render_revision_row(
if revision is None:
return None
header = "Revision | User-authored"
header = "Source revision | User-authored"
caption = _format_created_at(revision.date_revised or revision.date_uploaded)
expansion = ui.expansion(value=initially_expanded, group="group").classes(f"{classes} rounded-borders vibe-card")
@@ -70,7 +70,7 @@ def render_revision_row(
if on_delete is not None:
with ui.dialog() as delete_dialog, ui.card().classes("q-pa-md"):
ui.label("Delete this transcript revision?").classes("text-body1")
ui.label("Delete this source revision?").classes("text-body1")
with ui.row().classes("w-full justify-end q-gutter-sm"):
ui.button("Cancel", on_click=lambda: delete_dialog.submit(False)).props("flat")
ui.button("Delete", on_click=lambda: delete_dialog.submit(True)).props(
+1 -1
View File
@@ -128,7 +128,7 @@ def register_page() -> None: # noqa: PLR0915
).props('unelevated color="primary"')
if current_revision_text is None:
ui.label("No revision exists for this source.").classes("text-body2 vibe-text-muted")
ui.label("No source revision exists for this source.").classes("text-body2 vibe-text-muted")
return
render_revision_row(