fix(rnotes): add /transcripts route for sub-tab navigation

The Transcripts sub-tab pill in the rNotes header linked to
/{space}/rnotes/transcripts but no route existed. Add the route
serving the voice recorder/transcription app.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-31 10:21:57 -07:00
parent c82646c458
commit f6767ca841
1 changed files with 15 additions and 0 deletions

View File

@ -1612,6 +1612,21 @@ routes.get("/voice", (c) => {
}));
});
// GET /transcripts — Transcription app (alias for voice recorder)
routes.get("/transcripts", (c) => {
const space = c.req.param("space") || "demo";
return c.html(renderShell({
title: `${space} — Transcripts | rSpace`,
moduleId: "rnotes",
spaceSlug: space,
modules: getModuleInfoList(),
theme: "dark",
body: `<folk-voice-recorder space="${space}"></folk-voice-recorder>`,
scripts: `<script type="module" src="/modules/rnotes/folk-voice-recorder.js?v=3"></script>`,
styles: `<link rel="stylesheet" href="/modules/rnotes/notes.css?v=3">`,
}));
});
routes.get("/", (c) => {
const space = c.req.param("space") || "demo";
const dataSpace = c.get("effectiveSpace") || space;