Skip to content

Releases: mikagosz/obsidian-diary-stats

0.2.1

Choose a tag to compare

@mikagosz mikagosz released this 16 Aug 10:05

0.2.1 — faster on a large vault, and the settings are searchable

Faster

  • Building a chart read every Markdown file in the vault and then threw away
    everything outside the diary folder — on every render of every block. It walks
    the diary folder now, so the cost follows the size of the diary rather than the
    size of the vault.
  • Settings save once you stop typing rather than on every keystroke, which
    mattered most on the multi-line project list.

Settings

  • The settings tab is now declared rather than drawn by hand, so on Obsidian
    1.13 and later its settings appear in the settings search. Older versions get
    the same tab from the same list of definitions, and minAppVersion is unchanged
    — nothing is lost by staying on an older Obsidian.

Also

  • The repository now has continuous integration and a release workflow, so a push
    is checked and a release carries build provenance.
  • Four more tests, covering the folder walk: nested subfolders, ordering, files
    that are not day notes, and a diary folder that does not exist.
  • README: install from the community catalogue.

0.2.0

Choose a tag to compare

@mikagosz mikagosz released this 10 Aug 09:10

Goals can now count checkboxes, so the percentage nobody wants to maintain by hand gets counted instead.

## Cele

- Project X :: 80 / 85        ← still works
- [x] Ship the release        ← done or not
- [ ] Documentation           ← progress is the tally below
    - [x] readme
    - [ ] screenshots

For a goal with sub-tasks the panel shows 1 / 2 in place of a plan figure. A dropped sub-task (- [-]) leaves the count entirely — it is no longer part of the plan, and counting it as outstanding would keep a finished goal looking unfinished. An in-progress one (- [/]) counts as not done yet. The three forms mix in one section.

Also: bar widths moved out of JavaScript into CSS custom properties, the same fix the tooltip got in 0.1.1.

0.1.1

Choose a tag to compare

@mikagosz mikagosz released this 10 Aug 08:57

Fixes from the plugin review checks.

  • Styles no longer set from JavaScript: the tooltip's visibility is a CSS class and its position two custom properties, so themes can restyle it.
  • Frontmatter is read as unknown and has to earn its type. A miesiac: or rok: written as a map or a list used to stringify to [object Object] and then look exactly like an absent field; it is now treated as absent deliberately. Same for entries in dotyczy:.
  • Removed redundant MouseEvent assertions, an unused loop binding and the deprecated setDynamicTooltip.
  • Settings text in sentence case.

No change to what the charts draw. Install as in 0.1.0.

0.1.0

Choose a tag to compare

@mikagosz mikagosz released this 10 Aug 08:43

First release.

One diary-stats code block in a weekly, monthly or yearly note draws the period: which projects it went into, sessions over time, the four weeks of a month, task states, key metrics with a trend, optional goals, and a panel of live links to the days and session logs behind the numbers. The period is read from the note's own frontmatter, so the same block works at every level.

Install by hand: put main.js, manifest.json and styles.css in <vault>/.obsidian/plugins/diary-stats/, reload Obsidian, then enable Diary Stats under Settings → Community plugins.

Needs Obsidian 1.12.7 or newer. Desktop and mobile. The interface is Polish — see the README.