Compare commits

..
Author SHA1 Message Date
pdmarf f12a8d2b74 v1.0.65: default untagged timer entries to Client Books 2026-10-08 13:59:20 +01:00
4 changed files with 8 additions and 5 deletions
+3 -2
View File
@@ -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}`)]);
Binary file not shown.
+4 -2
View File
@@ -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<GlobalSettings> {
const stored = await streamDeck.settings.getGlobalSettings<GlobalSettings>();
return { ...stored, ...HARDCODED };
@@ -358,7 +360,7 @@ class TimerToggle extends SingletonAction<TimerSettings> {
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}`)]);
+1 -1
View File
@@ -1 +1 @@
{ "version": "1.0.64" }
{ "version": "1.0.65" }