feat(FN-3785): add standalone HTML rendering and export routes for reports
Adds a complete HTML rendering and export pipeline to the fusion-plugin-reports plugin, including a standalone HTML renderer with template and stylesheet support, new export routes (`/api/reports/:id/export/html`) that persist rendered HTML to the store, and plugin-type support for non-JSON route re Fusion-Task-Id: FN-3785
This commit is contained in:
@@ -2,6 +2,7 @@ import type { PluginContext } from "@fusion/core";
|
||||
import { definePlugin } from "@fusion/plugin-sdk";
|
||||
import { runReviewPanel } from "./review-panel.js";
|
||||
import { ensureReportSchema } from "./report-schema.js";
|
||||
import { createReportExportRoutes } from "./routes/report-export-routes.js";
|
||||
import type { CombinedReview, ReviewPanelMember, RunReviewPanelInput } from "./review-types.js";
|
||||
import type { ReportCadence, ReportCreateInput } from "./store/report-types.js";
|
||||
import { ReportStore } from "./store/report-store.js";
|
||||
@@ -21,6 +22,7 @@ const plugin = definePlugin({
|
||||
hooks: {
|
||||
onSchemaInit: ensureReportSchema,
|
||||
},
|
||||
routes: createReportExportRoutes(),
|
||||
});
|
||||
|
||||
export interface RunGeneratedReportReviewInput {
|
||||
@@ -85,3 +87,4 @@ export * from "./review-panel.js";
|
||||
export { ensureReportSchema } from "./report-schema.js";
|
||||
export { ReportStore, ReportStoreError, type ReportStoreEvents } from "./store/report-store.js";
|
||||
export * from "./store/report-types.js";
|
||||
export * from "./render/index.js";
|
||||
|
||||
Reference in New Issue
Block a user