Export/import UX polish: search, scroll, sort, null cleanup
Export page: - Sort files before directories so PROJECT.md appears above tasks/ - Tasks unchecked by default (only agents, projects, skills checked) - Add inline search input to filter files in the tree - Checked files sort above unchecked for easier scanning - Sidebar scrolls independently from content preview pane Import page: - Match file-before-dir sort order - Independent sidebar/content scrolling - Skip null values in frontmatter preview Backend: - Skip null/undefined fields in exported frontmatter (no more "owner: null" in PROJECT.md files) Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -580,8 +580,9 @@ function renderYamlBlock(value: unknown, indentLevel: number): string[] {
|
||||
function renderFrontmatter(frontmatter: Record<string, unknown>) {
|
||||
const lines: string[] = ["---"];
|
||||
for (const [key, value] of orderedYamlEntries(frontmatter)) {
|
||||
// Skip null/undefined values — don't export empty fields
|
||||
if (value === null || value === undefined) continue;
|
||||
const scalar =
|
||||
value === null ||
|
||||
typeof value === "string" ||
|
||||
typeof value === "boolean" ||
|
||||
typeof value === "number" ||
|
||||
|
||||
Reference in New Issue
Block a user