From 658141415a4f0f06f066de83d0414e3329430447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Wed, 23 Sep 2026 07:46:47 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20studio=20note=20page=20as?= =?UTF-8?q?=20a=20Mistral=20Studio=20tool=20page,=20stable=20player=20-=20?= =?UTF-8?q?/ai/studio/$noteId:=20a=20thin=20top=20bar=20(back=20to=20the?= =?UTF-8?q?=20library,=20note=20title,=20=20=20course=20badge),=20the=20su?= =?UTF-8?q?mmary=20on=20a=20wide=20canvas=20and=20the=20audio=20workshop?= =?UTF-8?q?=20on=20a=20=20=20right=20rail,=20like=20Studio's=20Text=20to?= =?UTF-8?q?=20Speech=20page;=20both=20panels=20get=20a=20flat=20=20=20vari?= =?UTF-8?q?ant=20without=20the=20card=20frame=20-=20study=20sidebar=20is?= =?UTF-8?q?=20260px,=20Vibe's=20own=20width=20-=20the=20audio=20player=20s?= =?UTF-8?q?ets=20its=20src=20only=20once=20the=20element=20is=20in=20the?= =?UTF-8?q?=20live=20=20=20document;=20a=20=20boundary=20renders?= =?UTF-8?q?=20detached=20first=20and=20Chromium=20=20=20rejected=20that=20?= =?UTF-8?q?load=20("Media=20load=20rejected=20by=20URL=20safety=20check"),?= =?UTF-8?q?=20with=20one=20=20=20quiet=20retry=20for=20any=20load=20that?= =?UTF-8?q?=20still=20races=20attachment=20-=20the=20episode=20player=20is?= =?UTF-8?q?=20keyed=20on=20the=20episode=20id,=20so=20a=20list=20refresh?= =?UTF-8?q?=20no=20=20=20longer=20remounts=20it=20mid-load=20or=20stops=20?= =?UTF-8?q?playback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ai/note-studio-panel.tsx | 39 +++++++++++++--------- src/components/notes/podcast-history.tsx | 19 ++++++----- src/components/notes/podcast-panel.tsx | 11 ++++-- src/components/notes/rag-outputs-panel.tsx | 4 ++- src/components/rag/rag-study-panel.tsx | 2 +- src/components/ui/audio-player.tsx | 29 ++++++++++++++-- 6 files changed, 75 insertions(+), 29 deletions(-) diff --git a/src/components/ai/note-studio-panel.tsx b/src/components/ai/note-studio-panel.tsx index ad5c7d2..d6ab7b3 100644 --- a/src/components/ai/note-studio-panel.tsx +++ b/src/components/ai/note-studio-panel.tsx @@ -131,8 +131,11 @@ export function NoteStudioDetail(props: { noteId: string; episode?: string }) { }> {(current) => ( -
-
+ // Laid out like a Mistral Studio tool page (Text to Speech): a thin + // top bar with the way back and the note's name, the work on a + // wide canvas, and the audio controls on a rail at the right. +
+
{t("aiStudio.backToLibrary")} -
-

{current().title}

-

{current().courseTitle}

-
+
-
- - +
+
+
+ +
+
+
)} diff --git a/src/components/notes/podcast-history.tsx b/src/components/notes/podcast-history.tsx index 80cc1c5..bf8f59c 100644 --- a/src/components/notes/podcast-history.tsx +++ b/src/components/notes/podcast-history.tsx @@ -147,15 +147,18 @@ export function PodcastHistory(props: { /> } > - - {(row) => ( + {/* Keyed on the episode id, not the row object: a list refresh + hands back new objects, and remounting the player on each one + cut the audio mid-load and stopped playback. */} + + {(jobId) => ( )} diff --git a/src/components/notes/podcast-panel.tsx b/src/components/notes/podcast-panel.tsx index 55a3cd1..b8fcfb7 100644 --- a/src/components/notes/podcast-panel.tsx +++ b/src/components/notes/podcast-panel.tsx @@ -15,7 +15,14 @@ import { useT } from "@/stores/preferences-context"; const POLL_MS = 2_000; -export function PodcastPanel(props: { noteId: string; active?: boolean; noteTitle?: string; episode?: string }) { +export function PodcastPanel(props: { + noteId: string; + active?: boolean; + noteTitle?: string; + episode?: string; + /** Drop the card frame where the page itself is the frame (studio rail). */ + flat?: boolean; +}) { const t = useT(); const [format, setFormat] = createSignal("duz_okuma"); const [jobId, setJobId] = createSignal(""); @@ -167,7 +174,7 @@ export function PodcastPanel(props: { noteId: string; active?: boolean; noteTitl } > -
+
diff --git a/src/components/notes/rag-outputs-panel.tsx b/src/components/notes/rag-outputs-panel.tsx index b12fee1..e0ff38c 100644 --- a/src/components/notes/rag-outputs-panel.tsx +++ b/src/components/notes/rag-outputs-panel.tsx @@ -39,6 +39,8 @@ export function RagOutputsPanel(props: { noteTitle?: string; /** Delete control is teacher-only; readers see the list. Defaults to true. */ canManage?: boolean; + /** Drop the card frame where the page itself is the frame (studio canvas). */ + flat?: boolean; }) { const t = useT(); const { locale } = usePreferences(); @@ -199,7 +201,7 @@ export function RagOutputsPanel(props: { }; return ( -
+

{t("courseNotes.ragTitle")}

diff --git a/src/components/rag/rag-study-panel.tsx b/src/components/rag/rag-study-panel.tsx index 9a21c01..575e766 100644 --- a/src/components/rag/rag-study-panel.tsx +++ b/src/components/rag/rag-study-panel.tsx @@ -299,7 +299,7 @@ export function RagStudyPanel() { class={cn( "grid h-[calc(var(--app-viewport)-5.5rem-max(env(safe-area-inset-bottom),var(--android-nav-inset,0px)))] gap-4 max-lg:-mt-2", "lg:-mx-10 lg:-my-6 lg:h-[calc(100dvh-49px-env(safe-area-inset-top))] lg:gap-0", - historyCollapsed() ? "lg:grid-cols-[minmax(0,1fr)]" : "lg:grid-cols-[16.5rem_minmax(0,1fr)]", + historyCollapsed() ? "lg:grid-cols-[minmax(0,1fr)]" : "lg:grid-cols-[260px_minmax(0,1fr)]", )} >