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:
parent
c82646c458
commit
f6767ca841
|
|
@ -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) => {
|
routes.get("/", (c) => {
|
||||||
const space = c.req.param("space") || "demo";
|
const space = c.req.param("space") || "demo";
|
||||||
const dataSpace = c.get("effectiveSpace") || space;
|
const dataSpace = c.get("effectiveSpace") || space;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue