⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
style(planka-import): drop em and en dashes from prose and output
Andrej7155c5fb1776
diff --git a/apps/docs/core/migrations/from-planka.mdx b/apps/docs/core/migrations/from-planka.mdxindex 8e92bc3d5..2b3afc23b 100644--- a/apps/docs/core/migrations/from-planka.mdx+++ b/apps/docs/core/migrations/from-planka.mdx@@ -38,8 +38,8 @@ tells you exactly what would be created:Planned import:• Marketing Site 3 columns 24 tasks 5 labels 12 comments! List "Planned" was imported as column "Planned list" to avoid a naming conflict in Kaneo.- – skipping Archive (archive/trash lists are not migrated)- – 3 attachment(s) will not be migrated+ - skipping Archive (archive/trash lists are not migrated)+ - 3 attachment(s) will not be migrated```## Run the import@@ -87,7 +87,7 @@ passing secrets on the command line, where they end up in your shell history.One Kaneo project is created per PLANKA **board**, because the board is whatholds the lists and cards. When a PLANKA project has more than one board, each-resulting Kaneo project is named `Project – Board`.+resulting Kaneo project is named `Project - Board`.## What doesn't@@ -103,14 +103,14 @@ resulting Kaneo project is named `Project – Board`.## Troubleshooting-**"This PLANKA instance requires you to accept its terms"** — sign in through+**"This PLANKA instance requires you to accept its terms"**: sign in throughthe PLANKA web UI once and accept them, then run the import again.-**Two-factor authentication** — password login can't complete a TOTP challenge.+**Two-factor authentication**: password login can't complete a TOTP challenge.Copy an access token from your browser's dev tools and pass `--planka-token`instead of a username and password.-**A board failed partway** — failures are isolated per board, so the rest still+**A board failed partway**: failures are isolated per board, so the rest stillimport and the summary names the one that failed. Delete the half-created Kaneoproject and re-run with `--project` to retry just that one.diff --git a/packages/planka-import/README.md b/packages/planka-import/README.mdindex c2f5ee8aa..52e677b0e 100644--- a/packages/planka-import/README.md+++ b/packages/planka-import/README.md@@ -44,7 +44,7 @@ Create a Kaneo API key under **Settings → API keys**. Self-hosting? PointOne Kaneo project is created per PLANKA **board**, since the board is what holdslists and cards. If a PLANKA project has several boards, each Kaneo project is-named `Project – Board`.+named `Project - Board`.## What doesn'tdiff --git a/packages/planka-import/src/args.ts b/packages/planka-import/src/args.tsindex ec22dd546..9e5337ff2 100644--- a/packages/planka-import/src/args.ts+++ b/packages/planka-import/src/args.ts@@ -100,7 +100,7 @@ export function parseArgs(argv: string[]): ParsedArgs {return parsed;}-export const HELP_TEXT = `kaneo-planka-import — migrate PLANKA boards into Kaneo+export const HELP_TEXT = `kaneo-planka-import: migrate PLANKA boards into KaneoUsage:npx @kaneo/planka-import --planka-url <url> --kaneo-api-key <key> [options]diff --git a/packages/planka-import/src/index.ts b/packages/planka-import/src/index.tsindex fdbb8d123..dff063e26 100644--- a/packages/planka-import/src/index.ts+++ b/packages/planka-import/src/index.ts@@ -128,7 +128,7 @@ async function main(): Promise<number> {if (args.dryRun) {await writeReport(args.report, preview);- log("Dry run — nothing was written to Kaneo.");+ log("Dry run. Nothing was written to Kaneo.");return 0;}@@ -251,12 +251,12 @@ function printPlan(reports: BoardReport[]): void {for (const warning of report.warnings) log(` ! ${warning}`);if (report.skippedLists.length > 0) {log(- ` – skipping ${report.skippedLists.join(", ")} (archive/trash lists are not migrated)`,+ ` - skipping ${report.skippedLists.join(", ")} (archive/trash lists are not migrated)`,);}if (report.skippedAttachments > 0) {log(- ` – ${report.skippedAttachments} attachment(s) will not be migrated`,+ ` - ${report.skippedAttachments} attachment(s) will not be migrated`,);}}diff --git a/packages/planka-import/src/kaneo.ts b/packages/planka-import/src/kaneo.tsindex 19b89fcd0..3c913b3ab 100644--- a/packages/planka-import/src/kaneo.ts+++ b/packages/planka-import/src/kaneo.ts@@ -161,7 +161,7 @@ export class KaneoClient {function describeError(body: unknown, status: number): string {if (status === 401) {- return "unauthorized (HTTP 401) — check your Kaneo API key";+ return "unauthorized (HTTP 401), check your Kaneo API key";}if (typeof body === "object" && body !== null) {const record = body as Record<string, unknown>;diff --git a/packages/planka-import/src/mapping.test.ts b/packages/planka-import/src/mapping.test.tsindex 7579de55a..ab55cdd15 100644--- a/packages/planka-import/src/mapping.test.ts+++ b/packages/planka-import/src/mapping.test.ts@@ -191,7 +191,7 @@ describe("boardProjectName", () => {it("qualifies with the board name when the project has several", () => {expect(boardProjectName("Marketing", "Campaigns", 3)).toBe(- "Marketing – Campaigns",+ "Marketing - Campaigns",);});});diff --git a/packages/planka-import/src/mapping.ts b/packages/planka-import/src/mapping.tsindex 1fb9b3e99..82db09da2 100644--- a/packages/planka-import/src/mapping.ts+++ b/packages/planka-import/src/mapping.ts@@ -139,5 +139,5 @@ export function boardProjectName(boardCountInProject: number,): string {if (boardCountInProject <= 1) return projectName;- return `${projectName} – ${boardName}`;+ return `${projectName} - ${boardName}`;}diff --git a/packages/planka-import/src/planka.ts b/packages/planka-import/src/planka.tsindex c05d6a3df..01964c34d 100644--- a/packages/planka-import/src/planka.ts+++ b/packages/planka-import/src/planka.ts@@ -258,7 +258,7 @@ function describeLoginFailure(error: PlankaHttpError): string {function describeError(body: unknown, status: number): string {if (status === 401) {- return "unauthorized (HTTP 401) — check your PLANKA credentials or token";+ return "unauthorized (HTTP 401), check your PLANKA credentials or token";}if (typeof body === "object" && body !== null) {const record = body as Record<string, unknown>;