feat: add config for kanban columns

This commit is contained in:
2026-07-18 09:33:51 +05:00
parent f382632b2b
commit 1fbf020c80
9 changed files with 155 additions and 36 deletions
+8 -7
View File
@@ -2,14 +2,15 @@ import * as yaml from "js-yaml";
import type { ProjectConfig } from "@/model/projectConfig";
export function serializeProjectConfig(config: ProjectConfig): string {
const data: Record<string, unknown> = { tags: config.tags };
if (config.shownHiddenColumns.length > 0) {
data.shownHiddenColumns = config.shownHiddenColumns;
}
return yaml
.dump(
{ tags: config.tags },
{
lineWidth: -1,
forceQuotes: false,
},
)
.dump(data, {
lineWidth: -1,
forceQuotes: false,
})
.trimEnd()
.concat("\n");
}