From f12a8d2b742d208d05bdf0173594337ceb954bdd Mon Sep 17 00:00:00 2001 From: pdmarf <135653545+pdmarf@users.noreply.github.com> Date: Thu, 8 Oct 2026 13:59:20 +0100 Subject: [PATCH] v1.0.65: default untagged timer entries to Client Books --- com.pdma.notion-timer.sdPlugin/bin/plugin.js | 5 +++-- com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig | Bin 64 -> 64 bytes src/plugin.ts | 6 ++++-- version.json | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js b/com.pdma.notion-timer.sdPlugin/bin/plugin.js index d041665..9c0f978 100644 --- a/com.pdma.notion-timer.sdPlugin/bin/plugin.js +++ b/com.pdma.notion-timer.sdPlugin/bin/plugin.js @@ -6450,7 +6450,7 @@ async function stopTimer(token, entryId) { } // src/plugin.ts -var CURRENT_VERSION = "1.0.64"; +var CURRENT_VERSION = "1.0.65"; var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild"; var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= @@ -6542,6 +6542,7 @@ var HARDCODED = { timingDbId: "2ec93117da3a80799ee2cf91244ee264", projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585" }; +var DEFAULT_TAG = "Client Books"; async function getGlobal() { const stored = await plugin_default.settings.getGlobalSettings(); return { ...stored, ...HARDCODED }; @@ -6741,7 +6742,7 @@ var TimerToggle = class extends SingletonAction { setRunningEntry(null, null); this.clearElapsedCheck(); } - const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag, description); + const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag || DEFAULT_TAG, description); setRunningEntry(entryId, ev.action.id); this.scheduleElapsedCheck(entryId, ev.action.id, title); await Promise.all([ev.action.setState(1), ev.action.setTitle(`\u23F1 ${title}`)]); diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig index 88def5457e032ed4e57f17036ab93796d50e9ed2..e58334f7baf0aa0ac4479e032156895df7281e0e 100644 GIT binary patch literal 64 zcmV-G0KfltpkAGF90*VVy7m#WTgIW|WguzP#qybKIr=~Se@k$9OCm+ZF diff --git a/src/plugin.ts b/src/plugin.ts index b1a2783..f0d06bc 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,4 +1,4 @@ -const CURRENT_VERSION = "1.0.64"; +const CURRENT_VERSION = "1.0.65"; const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild"; const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= @@ -125,6 +125,8 @@ const HARDCODED = { projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585", }; +const DEFAULT_TAG = "Client Books"; + async function getGlobal(): Promise { const stored = await streamDeck.settings.getGlobalSettings(); return { ...stored, ...HARDCODED }; @@ -358,7 +360,7 @@ class TimerToggle extends SingletonAction { setRunningEntry(null, null); this.clearElapsedCheck(); } - const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag, description); + const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag || DEFAULT_TAG, description); setRunningEntry(entryId, ev.action.id); this.scheduleElapsedCheck(entryId, ev.action.id, title); await Promise.all([ev.action.setState(1), ev.action.setTitle(`⏱ ${title}`)]); diff --git a/version.json b/version.json index eddb9a8..6ce9943 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{ "version": "1.0.64" } +{ "version": "1.0.65" }