Repository navigation
v1.9.1
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
billableboolean and its entry → task → category inheritance (isEntryBillable()in05-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()andformatWeeklyTicketSummaryText()inpure-fns-export.js, both unit tested; new12d-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 purefindWeeklyPlanReviewTasks()inpure-fns-tasks.js; new file10e-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()inpure-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()inpure-fns-export.jsandmondayOfWeek()inpure-fns-format.js(the latter also replaces a duplicated inline calculation in thestatWeekheader 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_MINSin03-timer.js), with a "stop timer" action; the threshold check is a pure, unit-testedisLongRunningTimer()inpure-fns-format.js. Separately, returning to the tab after it was hidden for more than 30 minutes while a timer was running now asks (viaconfirm()) 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 anote(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 withhttp(s)://renders as a clickable anchor. Entry notes are exported to the.txttimesheet alongside any plan-task note for the same task (newbuildEntryNoteMap()andmergeNoteMaps()inpure-fns-export.js); the proof link is captured for now and will feed the planned JSON report-draft generator. New unit tests forvalidEntry's optionallink/notetype-checking and both new pure functions. - Task notes exported to the timesheet —
exportTxt()now appends each task's plan note as an indentednote:line under that task's entry in the.txtexport, 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 sharedtaskId). New purebuildTaskNoteMap()inpure-fns-export.js, wired intoformatGroupedLines()'s existingtaskNotesparameter; 9 new unit tests.
Fixed
npm ci+ commit broken on any fresh clone or worktree —@commitlint/config-conventional@21.2.0pulls inconventional-changelog-conventionalcommits@10.x, whosepackage.jsononly exposes an ESM-only"exports"field (import/types, norequire). That broke@commitlint/resolve-extends's CJSrequire.resolve()call withERR_PACKAGE_PATH_NOT_EXPORTED, failing thecommit-msghook on every fresh install. It went unnoticed because the main working directory's stalenode_modulesstill had the older, CJS-compatible9.3.1installed. Pinned back via apackage.jsonoverridesentry —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 into04-render.js(matchingcatOptsin10a-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 sharedcreateCategory()in01-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#timelinebut 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 intobindAdHocRow()and called from both branches; 4 new regression tests intest/unit.mjs. - JSON backups no longer grow without bound — the 21-day retention window was only applied to
entries, whileplanTasks,blocks,devLog, anddistractionswere bundled in full. Those arrays grow every day (carried tasks, per-day time blocks, appended distraction/dev-log records), so thework-log-backup-21d-*.jsonfile kept getting bigger despite its name. All five time-series arrays are now trimmed to the same window;categories,qpHidden, and the source-cappedpomoLogare still kept whole. Retention now runs through a pure, unit-testedbuildBackupPayload()inpure-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: startfrom the base.board-colsgrid; it now resets toalign-items: stretchso tabs and lane span the whole width. Regression test added insmoke-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
planTasksrow, 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 sharedfindPromotableTask()(pure, inpure-fns-tasks.js) andpromoteMatchingTaskToInProgress()(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,completedAtclearing, 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 |