Skip to content

v1.9.1

Choose a tag to compare

@github-actions github-actions released this 13 Aug 14:38
· 184 commits to main since this release
969d00c

Changed

  • Non-billable relabeled as "internal" — the billable/non-billable boolean already covered the distinction that mattered (client-billable vs. not), so rather than add a redundant third field, "non-billable" is now labelled "internal" everywhere it appears: the entry-row toggle, the task-row toggle, the category-manager button, and the export summary line. The underlying billable boolean and its entry → task → category inheritance (isEntryBillable() in 05-entries.js) are unchanged.

Added

  • Weekly report draft — a new "📝 weekly report" button in the export row opens a copy-to-clipboard panel summarising this calendar week (Mon–Sun) grouped by Jira ticket key, with tracked time and any notes/links per ticket, so the "what did I touch" reconstruction needed for a status report no longer means cross-referencing three systems by hand. Untracked/non-ticketed work is grouped into its own "No ticket" bucket rather than dropped; break/lunch/meeting entries are excluded, matching the gap report. This is the feature the proof-link/note fields (PR #276) were captured for. New pure buildWeeklyTicketSummary() and formatWeeklyTicketSummaryText() in pure-fns-export.js, both unit tested; new 12d-weeklyreport.js.
  • Weekly plan review checklist — planned-ahead ("upcoming") tasks sometimes turned out to already be finished elsewhere by the time their week actually arrived, since nothing ever re-checked them beforehand. A dismissible banner now appears once a new ISO week begins if any "upcoming" task is dated within it, opening a checklist (ticket key via the existing parseJiraLabel(), date, and "✓ done" / "✕ drop" actions per row) to reconcile the plan against reality. This app has no live Jira connection, so the checklist only ever prompts — it can't auto-detect completion. New pure findWeeklyPlanReviewTasks() in pure-fns-tasks.js; new file 10e-weeklyplan-review.js.
  • End-of-day export reminder — exports were always taken mid-afternoon, so the last day's JSON backup was always incomplete. A dismissible banner now appears in the export section once today's workday looks like it may be over (day-start + 8 hours, using the existing start-of-day timestamp — adapts to whenever the day actually began rather than assuming a fixed clock time), with an "🌙 end the day" action that triggers the real export flow. This is a reminder, not a silent auto-export — the app still never writes a file without an explicit click. Pure, unit-tested isWorkdayLikelyOver() in pure-fns-export.js; re-checked every 5 minutes so it can appear while idle.
  • End-of-week gap report — a new "🔍 gap report" button in the export row lists this calendar week's (Mon–Sun) finished, non-cancelled entries that have neither a proof link nor a note, so gaps in documentation surface before a weekly report is due instead of after. Clicking a flagged entry ("+ fix") jumps straight to it in the Log view with its proof-link/note editor already open. Break/lunch/meeting utility entries are excluded, since they never need documentation. New pure findGapReportEntries() in pure-fns-export.js and mondayOfWeek() in pure-fns-format.js (the latter also replaces a duplicated inline calculation in the statWeek header stat); both unit tested.
  • Timer long-running safety warning — the two longest-ever log entries (12h and 7h) both ended exactly when a JSON backup was taken, a strong signal of a timer left running unattended. The Hero Card now shows a dismissible amber warning once a running timer passes 4 hours (LONG_RUNNING_MINS in 03-timer.js), with a "stop timer" action; the threshold check is a pure, unit-tested isLongRunningTimer() in pure-fns-format.js. Separately, returning to the tab after it was hidden for more than 30 minutes while a timer was running now asks (via confirm()) whether to stop it — this only ever asks, it never changes timer data on its own. Both checks reset per timer session (startTimer()).
  • Proof link and note fields on log entries — each time-log entry can now carry a link (the concrete artefact the work touched: Confluence page id, Zephyr case/cycle key, filename, or a URL) and a note (a one-line "what I did," written at the time). Both are optional and edited via a new 📎 button on the entry row, which opens an inline panel with a link input and a note textarea — populated fields show as 🔗/📝 indicators instead, and a link starting with http(s):// renders as a clickable anchor. Entry notes are exported to the .txt timesheet alongside any plan-task note for the same task (new buildEntryNoteMap() and mergeNoteMaps() in pure-fns-export.js); the proof link is captured for now and will feed the planned JSON report-draft generator. New unit tests for validEntry's optional link/note type-checking and both new pure functions.
  • Task notes exported to the timesheet — exportTxt() now appends each task's plan note as an indented note: line under that task's entry in the .txt export, so context you jot on an in-progress task (via the existing 📝 note button) travels with the day's timesheet instead of staying trapped in the board. Matching is by date + case-insensitive task text (the same convention the app already uses to link a tracked entry back to its plan row — there is no shared taskId). New pure buildTaskNoteMap() in pure-fns-export.js, wired into formatGroupedLines()'s existing taskNotes parameter; 9 new unit tests.

Fixed

  • npm ci + commit broken on any fresh clone or worktree — @commitlint/config-conventional@21.2.0 pulls in conventional-changelog-conventionalcommits@10.x, whose package.json only exposes an ESM-only "exports" field (import/types, no require). That broke @commitlint/resolve-extends's CJS require.resolve() call with ERR_PACKAGE_PATH_NOT_EXPORTED, failing the commit-msg hook on every fresh install. It went unnoticed because the main working directory's stale node_modules still had the older, CJS-compatible 9.3.1 installed. Pinned back via a package.json overrides entry — parser.js (the file commitlint actually consumes) is byte-identical between the two versions, so the pin is behaviourally safe.
  • Log entries couldn't create a new epic — the category picker on the task board has always had a "+ new epic" control, but the equivalent picker on log entries (opened via the ● category ▾ button under a Log-view entry) never got one. In practice this meant epics could only be created from a task card, so tasks logged straight from the timer/adhoc-log input — as opposed to Jira-imported tasks, whose epics were already set up on the board — had no way to be tagged under a new epic. buildEntryCatPickerHtml() extracted into 04-render.js (matching catOpts in 10a-tasks-row.js) and given the same inline "+ new epic" creator, wired up with matching event handlers. The board's and the entry's "+ new epic" handlers previously duplicated the same create/dedupe/colour-pick logic; both now call a shared createCategory() in 01-state.js. 9 new unit tests.
  • Ad-hoc "+ log" row did nothing on a zero-entry day — render()'s empty-state branch rendered the inline quick-add row into #timeline but returned before its click/Enter bindings ran, so logging something on a fresh day (or any day with nothing logged yet) silently did nothing. Binding logic extracted into bindAdHocRow() and called from both branches; 4 new regression tests in test/unit.mjs.
  • JSON backups no longer grow without bound — the 21-day retention window was only applied to entries, while planTasks, blocks, devLog, and distractions were bundled in full. Those arrays grow every day (carried tasks, per-day time blocks, appended distraction/dev-log records), so the work-log-backup-21d-*.json file kept getting bigger despite its name. All five time-series arrays are now trimmed to the same window; categories, qpHidden, and the source-capped pomoLog are still kept whole. Retention now runs through a pure, unit-tested buildBackupPayload() in pure-fns.js (7 new tests), and the per-array count of excluded records is logged at export time.
  • Tabbed task board fills the full panel width — the To Do / In Progress / Done tab bar and the active lane (with its cards) were collapsing to content width and left-aligning, leaving the right side of the panel empty. The tabbed flex-column layout was inheriting align-items: start from the base .board-cols grid; it now resets to align-items: stretch so tabs and lane span the whole width. Regression test added in smoke-tests.cjs.
  • Manually-added tasks never showed as "In progress" on the Kanban board — the board's own "▸ track" button correctly promoted a task's status when starting its timer, but the three other ways to start tracking — the hero "WHAT'S NEXT?" composer, its recent-task chips, and the quick-capture overlay — only created a log entry and never touched the matching planTasks row, so the card stayed in To Do no matter how long the timer ran. Jira-imported tasks weren't spared either, but were rarely affected in practice since importing already seeds their status from Jira and users tend to interact with them via the board's own controls. New shared findPromotableTask() (pure, in pure-fns-tasks.js) and promoteMatchingTaskToInProgress() (10-tasks.js) wrapper, now called from all four start-tracking entry points — addEntry(), _heroHandleStart(), _heroStartFromChip(), _qcActivateRow(), and the board's own handler (deduplicating its previous inline copy of the same logic). New unit tests cover the lookup, the mutation (status flip, completedAt clearing, parent-task promotion), and that every entry point actually calls through.

Config defaults at this release

These are the compile-time defaults baked into src/js/00-config.js.
Runtime overrides (weather location etc.) are set per-machine in config.local.ps1.

Constant Default value
WEATHER_LAT 60.1887
WEATHER_LON 24.927
WEATHER_NAME 'Helsinki'
JIRA_BASE 'https://your-instance.atlassian.net/browse'
AUTO_PAUSE_ON_TAB_SWITCH false