feat: add feeds/acceptsFeeds to rsplat, rdesign, rdocs, rschedule
Ensures all 26 rApp modules have proper feed declarations for the canvas layer/stack flow wiring UI. Adds landingPage functions to rdesign and rdocs for canvas embedding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
24cc3ffe95
commit
272624b0c7
|
|
@ -49,6 +49,14 @@ routes.get("/", (c) => {
|
|||
}));
|
||||
});
|
||||
|
||||
function renderDesignLanding(): string {
|
||||
return `<div style="max-width:640px;margin:0 auto;padding:3rem 1rem;text-align:center">
|
||||
<div style="font-size:3rem;margin-bottom:1rem">🎯</div>
|
||||
<h2 style="font-size:1.5rem;margin-bottom:0.75rem;background:linear-gradient(135deg,#14b8a6,#22d3ee);-webkit-background-clip:text;-webkit-text-fill-color:transparent">rDesign</h2>
|
||||
<p style="color:#94a3b8;margin-bottom:2rem;line-height:1.6">Collaborative design workspace powered by Affine. Whiteboard, docs, and kanban — all in one tool for your community.</p>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
export const designModule: RSpaceModule = {
|
||||
id: "rdesign",
|
||||
name: "rDesign",
|
||||
|
|
@ -56,8 +64,13 @@ export const designModule: RSpaceModule = {
|
|||
description: "Collaborative design workspace with whiteboard and docs",
|
||||
scoping: { defaultScope: 'global', userConfigurable: false },
|
||||
routes,
|
||||
landingPage: renderDesignLanding,
|
||||
standaloneDomain: "rdesign.online",
|
||||
externalApp: { url: AFFINE_URL, name: "Affine" },
|
||||
feeds: [
|
||||
{ id: "design-assets", name: "Design Assets", kind: "resource", description: "Design files, mockups, and whiteboard exports" },
|
||||
],
|
||||
acceptsFeeds: ["data", "resource"],
|
||||
outputPaths: [
|
||||
{ path: "designs", name: "Designs", icon: "🎯", description: "Design files and mockups" },
|
||||
{ path: "templates", name: "Templates", icon: "📐", description: "Reusable design templates" },
|
||||
|
|
|
|||
|
|
@ -49,6 +49,14 @@ routes.get("/", (c) => {
|
|||
}));
|
||||
});
|
||||
|
||||
function renderDocsLanding(): string {
|
||||
return `<div style="max-width:640px;margin:0 auto;padding:3rem 1rem;text-align:center">
|
||||
<div style="font-size:3rem;margin-bottom:1rem">📝</div>
|
||||
<h2 style="font-size:1.5rem;margin-bottom:0.75rem;background:linear-gradient(135deg,#14b8a6,#22d3ee);-webkit-background-clip:text;-webkit-text-fill-color:transparent">rDocs</h2>
|
||||
<p style="color:#94a3b8;margin-bottom:2rem;line-height:1.6">Collaborative documentation powered by Docmost. Create wikis, knowledge bases, and shared documents for your community.</p>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
export const docsModule: RSpaceModule = {
|
||||
id: "rdocs",
|
||||
name: "rDocs",
|
||||
|
|
@ -56,8 +64,13 @@ export const docsModule: RSpaceModule = {
|
|||
description: "Collaborative documentation and knowledge base",
|
||||
scoping: { defaultScope: 'global', userConfigurable: true },
|
||||
routes,
|
||||
landingPage: renderDocsLanding,
|
||||
standaloneDomain: "rdocs.online",
|
||||
externalApp: { url: DOCMOST_URL, name: "Docmost" },
|
||||
feeds: [
|
||||
{ id: "documents", name: "Documents", kind: "data", description: "Collaborative documents and wiki pages" },
|
||||
],
|
||||
acceptsFeeds: ["data"],
|
||||
outputPaths: [
|
||||
{ path: "documents", name: "Documents", icon: "📝", description: "Collaborative documents" },
|
||||
{ path: "wikis", name: "Wikis", icon: "📖", description: "Knowledge base wikis" },
|
||||
|
|
|
|||
|
|
@ -847,6 +847,7 @@ export const scheduleModule: RSpaceModule = {
|
|||
description: "Job execution events with status, timing, and output",
|
||||
},
|
||||
],
|
||||
acceptsFeeds: ["data", "governance"],
|
||||
outputPaths: [
|
||||
{ path: "jobs", name: "Jobs", icon: "⏱", description: "Scheduled jobs and their configurations" },
|
||||
{ path: "log", name: "Execution Log", icon: "📋", description: "History of job executions" },
|
||||
|
|
|
|||
|
|
@ -723,6 +723,11 @@ export const splatModule: RSpaceModule = {
|
|||
routes,
|
||||
landingPage: renderLanding,
|
||||
seedTemplate: seedTemplateSplat,
|
||||
feeds: [
|
||||
{ id: "splat-scenes", name: "3D Scenes", kind: "resource", description: "Gaussian splat 3D captures" },
|
||||
{ id: "splat-activity", name: "Capture Activity", kind: "data", description: "Upload and view events for 3D scenes" },
|
||||
],
|
||||
acceptsFeeds: ["data", "resource"],
|
||||
standaloneDomain: "rsplat.online",
|
||||
hidden: true,
|
||||
outputPaths: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue