From 39c806a2e6aaf0a151f3e2d7579a1c8eb9adf989 Mon Sep 17 00:00:00 2001 From: Poluboiarinov Anton <50020771+poanse@users.noreply.github.com> Date: Mon, 13 Jul 2026 09:37:48 +0300 Subject: [PATCH] Github attestation and fixes (#6) Added github attestation for artefacts Fixed obsidian review warnings Fixed a bug - when deleting a task, its children were reparented with incorrect priorities which broke manual repositioning Fixed a visual bug - edited task was drawn behind its siblings which made name editing clunky for long task names --- .github/workflows/release.yml | 12 ++- .gitignore | 3 + manifest.json | 2 +- package.json | 4 +- src/DraggingManager.svelte.ts | 2 +- src/components/Task.svelte | 4 + src/data/Action.ts | 45 +++-------- src/data/ProjectData.svelte.ts | 98 +++++++++++++++++++++--- src/helpers/FolderSuggest.ts | 4 +- src/types.ts | 2 +- tests/remove-task-priorities.test.ts | 110 +++++++++++++++++++++++++++ tests/reparent-priorities.test.ts | 98 ++++++++++++++++++++++++ tsconfig.json | 1 + versions.json | 2 +- 14 files changed, 333 insertions(+), 54 deletions(-) create mode 100644 tests/remove-task-priorities.test.ts create mode 100644 tests/reparent-priorities.test.ts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3840d02..ff4cf61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,8 @@ on: permissions: contents: write + id-token: write + attestations: write jobs: build-and-upload: @@ -29,8 +31,16 @@ jobs: - name: Verify Files Exist run: ls -la main.js styles.css manifest.json + - name: Generate Artifact Attestations + uses: actions/attest-build-provenance@v2 + with: + subject-path: | + main.js + styles.css + manifest.json + - name: Upload Release Assets (Original Names) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: | main.js diff --git a/.gitignore b/.gitignore index aca1122..05fcffd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# cursor +.cursor + # vscode .vscode diff --git a/manifest.json b/manifest.json index e19c9b3..e4d30c9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "taskmap", "name": "Taskmap", - "version": "0.1.8", + "version": "0.1.9", "minAppVersion": "1.12.4", "description": "Plan projects via interactive GUI task trees with automatic layout.", "author": "poanse", diff --git a/package.json b/package.json index 9c582f3..9119c1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-taskmap", - "version": "0.1.8", + "version": "0.1.9", "description": "Taskmap plugin for Obsidian (https://obsidian.md)", "main": "main.js", "scripts": { @@ -9,7 +9,7 @@ "version": "node version-bump.mjs && git add manifest.json versions.json", "svelte-check": "svelte-check --tsconfig tsconfig.json", "perf:tasks": "tsx scripts/perf-tasks.ts", - "test": "tsx --test tests/reparent-priorities.test.ts", + "test": "tsx --test tests/*.test.ts", "lint": "eslint .", "lint:fix": "eslint . --fix" }, diff --git a/src/DraggingManager.svelte.ts b/src/DraggingManager.svelte.ts index b58ef7d..ff7b8db 100644 --- a/src/DraggingManager.svelte.ts +++ b/src/DraggingManager.svelte.ts @@ -16,7 +16,7 @@ export class DraggingManager { public onPointerDown = (e: PointerEvent) => { console.debug("DraggingManager pointerDown"); - this.mouseDown = e.button as MouseDown; + this.mouseDown = e.button; if (this.mouseCodes.includes(this.mouseDown)) { this.startX = e.clientX; this.startY = e.clientY; diff --git a/src/components/Task.svelte b/src/components/Task.svelte index b243802..8b2a196 100644 --- a/src/components/Task.svelte +++ b/src/components/Task.svelte @@ -119,6 +119,7 @@ {#key context.updateOnZoomCounter}