Skip to content

The open-source app everyone uses to manage agents at work

fix: SVG preview in export page and update getting-started command

Dotta5d1e39b651db
diff --git a/server/src/services/company-export-readme.ts b/server/src/services/company-export-readme.ts
index 2648ad0954..56e59d23e1 100644
--- a/server/src/services/company-export-readme.ts
+++ b/server/src/services/company-export-readme.ts
@@ -279,7 +279,7 @@ export function generateReadme(
lines.push("## Getting Started");
lines.push("");
lines.push("```bash");
- lines.push("pnpm paperclipai company import --from ./ --target new --include company,agents");
+ lines.push("pnpm paperclipai company import this-github-url-or-folder");
lines.push("```");
lines.push("");
lines.push("See [Paperclip](https://paperclip.ing) for more information.");
diff --git a/ui/src/pages/CompanyExport.tsx b/ui/src/pages/CompanyExport.tsx
index a9d3b2cf1c..7a33d15d6a 100644
--- a/ui/src/pages/CompanyExport.tsx
+++ b/ui/src/pages/CompanyExport.tsx
@@ -341,6 +341,7 @@ function ExportPreviewPane({
}
const isMarkdown = selectedFile.endsWith(".md");
+ const isSvg = selectedFile.endsWith(".svg");
const parsed = isMarkdown ? parseFrontmatter(content) : null;
return (
@@ -356,6 +357,11 @@ function ExportPreviewPane({
</>
) : isMarkdown ? (
<MarkdownBody>{content}</MarkdownBody>
+ ) : isSvg ? (
+ <div
+ className="flex justify-center overflow-auto rounded-lg border border-border bg-white p-4"
+ dangerouslySetInnerHTML={{ __html: content }}
+ />
) : (
<pre className="overflow-x-auto whitespace-pre-wrap break-words border-0 bg-transparent p-0 font-mono text-sm text-foreground">
<code>{content}</code>