Commit Graph

9842 Commits

Author SHA1 Message Date
Simon Michael
1f9d89879d ;doc: update changelogs 2021-07-13 18:39:40 -10:00
Simon Michael
82b74ec41e ci: commitlint: when range is invalid (eg force push), check last 20
This is imperfect but better than nothing, and should avoid spurious
failures on force pushes to PRs.
2021-07-13 12:35:48 -10:00
Simon Michael
4d04da94fb ci: commitlint: ignore boring commits: github merge commit (#1606) 2021-07-13 12:35:48 -10:00
Simon Michael
ce526305bf ;test: ui: transaction: add a test for up/down key (#1607) 2021-07-13 12:34:25 -10:00
Stephen Morgan
2df8ad781e
imp: cli: Don't show extra double quotes in missing journal file error. (#1601) 2021-07-13 10:41:51 -10:00
Stephen Morgan
cf25d7d56d
imp: bal: more predictable sort order with multiple commodities (#1563, #1564)
This change provides more predictable and intuitive behaviour when 
using -S/--sort-amount with multiple commodities. 
It implements a custom Ord (and Eq) instance for MixedAmount 
which substitutes zero for any missing commodities.

As a consequence, all the ways of representing zero with a MixedAmount ([],
[A 0], [A 0, B 0, ...]) are now Eq-ual (==), whereas before they were
not. We have not been able to find anything broken by this change.

* imp: lib: Compare MixedAmounts by substituting zero for any missing commodities. (#1563)
* ;doc: Update docs for new multicommodity sort by amount rules.
2021-07-12 21:11:50 -10:00
Stephen Morgan
3380190d9a fix: web: register chart with multiple commodities/prices, broken in 1.22 (#1597)
Make sure to strip prices from amounts before generating JSON data for
the register chart.
2021-07-12 19:02:38 -10:00
Simon Michael
b8f0900edb ;dev: doc: update manuals 2021-07-12 18:50:06 -10:00
Simon Michael
31de526872 ;dev: doc: update CLI usage texts 2021-07-12 18:50:06 -10:00
Simon Michael
44c5eb5136 ;shake: update commit messages to pass commitlint 2021-07-12 18:50:06 -10:00
Simon Michael
daa95aeb7b imp: close: doc: rewrite manual (#1604) 2021-07-12 18:50:06 -10:00
Simon Michael
0a66068ad1 imp: close: clarify date logic, use journal last day if later (#1604) 2021-07-12 18:50:06 -10:00
Simon Michael
a681e5329d fix: ui: transaction: possibly off-by-one valuation date
I'm not sure if it arose in practice, but: ensure TransactionScreen
in V mode would correctly use the journal's last day as valuation date,
not the day after that.
2021-07-12 18:50:06 -10:00
Simon Michael
5d2caf3c7f lib: clarify journalEndDate, add journalLastDay 2021-07-12 18:50:06 -10:00
Simon Michael
7f2ad64e7b bin:commitlint:doc, policy: allow more spaces, slash/comma in topics 2021-07-11 14:24:54 -10:00
Simon Michael
01f9c70545 ci: run commitlint to check commits (#1602)
As first step in our main "check" workflows (push, linux, mac,
windows), check all the commit messages with commitlint.

These workflows can be triggered in various ways:
pull requests, pushes, manually, or scheduled.

For (each push to) a pull request, all commits currently in the PR
branch are checked.

For a regular push, all the pushed commits are checked, usually.
Subcases: push to master, push to other branch, force push;
I think at least the first two work, I don't care to spend more time
on it.

For a manual run, it seemed to check the same commits as a push (which
push ? Not sure how this works).

For a scheduled run - we'll see.
2021-07-10 23:26:11 -10:00
Simon Michael
f7f88a4a9a bin: commitlint: don't exit successfully if a command fails (#1602) 2021-07-10 22:05:32 -10:00
Simon Michael
fa85eab161 ;install: hledger-iadd 1.3.15 2021-07-08 10:52:47 -10:00
Simon Michael
3cd80e1f57 lib: export transactionCheckBalanced (#1596) 2021-07-07 13:20:13 -10:00
Simon Michael
544bfd2090 ;make: nix-view-commits: update url 2021-07-07 13:19:29 -10:00
Simon Michael
a6cfc20e9d ;doc: journal: directives: fix payee link 2021-07-06 20:54:46 -07:00
Simon Michael
f8be423354 ;doc: journal: fix commodity's scope, end-of-file 2021-07-06 17:46:51 -10:00
Simon Michael
a04a0a2f16 ;doc: journal: drop obsolete wide table warning 2021-07-06 17:02:57 -10:00
Simon Michael
ec2436025c ;dev: bin: commitlint: advertise how to use it locally 2021-07-06 16:06:07 -10:00
Simon Michael
103813f116 ;dev: bin: commitlint: also work a git commit-msg hook 2021-07-06 15:33:18 -10:00
Simon Michael
215e90ad78 ;dev: bin: commitlint: check for preferred style in commit messages 2021-07-06 11:54:35 -10:00
Simon Michael
8b1650c6af ;ci: rename the static linux things 2021-07-05 13:24:55 -10:00
Simon Michael
e8cb743a23 ;doc: contrib: commit messages: add more types 2021-07-05 13:16:15 -10:00
Alan Young
a4470c2a4d ;imp: added systemd and nginx files to examples dir 2021-07-05 05:24:21 -10:00
Simon Michael
eb6accf94f ;doc: contrib: commit conventions update 2021-07-04 15:17:06 -10:00
Simon Michael
7d6dc7fbc9 ;doc: contrib: commit conventions update 2021-07-04 11:52:34 -10:00
Simon Michael
6d0e133687 ;doc: contrib: commit conventions update 2021-07-04 11:47:39 -10:00
Simon Michael
f260cf6b17 ;doc: contrib: draft of new commit conventions 2021-07-04 10:28:40 -10:00
Simon Michael
b669adb511 ;doc: changelog tweaks 2021-07-04 10:08:39 -10:00
Simon Michael
aa6ddc7a42 ;install: forgot to bump hledger-install's version 2021-07-03 16:00:20 -10:00
Simon Michael
a3f50cecd5 ;doc: changelogs update 2021-07-03 15:54:45 -10:00
Simon Michael
8d237869db ;ci: release: fix action-gh-release not running ? 2021-07-03 14:59:18 -10:00
Simon Michael
68e7ff4644 ;doc: finalise changelogs 2021-07-03 14:51:51 -10:00
Simon Michael
d2fd039460 ;ci: let all workflows be triggered manually
For when the intended triggers fail.
2021-07-03 14:51:51 -10:00
Simon Michael
bd4dcc2a0a ;ci: release: fix tag patterns 2021-07-03 14:41:34 -10:00
Simon Michael
741662ac97 ;ci: release: try out the softprops release action 2021-07-03 14:12:33 -10:00
Simon Michael
4f8b945a78 ;doc: 1.22 announcement 2021-07-03 13:03:51 -10:00
Simon Michael
c134194ae7 install: bump to 1.22 2021-07-03 12:48:39 -10:00
Simon Michael
52ebfb3dce ;doc: changelog edits 2021-07-03 11:45:50 -10:00
Simon Michael
4559013bb8 stack: bump to lts-18 2021-07-03 11:45:50 -10:00
Simon Michael
4971b106ef ;doc: changelog edits 2021-07-02 16:10:56 -10:00
Simon Michael
d5d19f8419 ;update manuals 2021-07-02 12:42:34 -10:00
Simon Michael
943b548591
ui: preserve B/V state when reloading, simplify code (#1588)
In hledger-ui TransactionScreen, set the current transaction based on RegisterScreen.
2021-07-01 14:21:33 -10:00
Stephen Morgan
55f42c3d1e ui: Do not reset cost and value flags on reload. 2021-07-02 10:07:03 +10:00
Stephen Morgan
307bd9366d ui: In TransactionScreen, set the current transaction and index in
tsInit based on the previous RegisterScreen. Use the RegisterScreen
logic for selecting the new transaction when we cannot find the existing
one.

This enables us to get rid of regenerateTransactions. There is now
different behaviour in the transaction screen when the journal is
reloaded and the transaction being viewed is no longer available, but I
have not been able to find an example which exhibits this different
behaviour. I think it is better to have consistent behaviour between the
register screen and transaction screen when determining which to select.

This corrects a bug where you had to reload twice to reset the valuation
and cost flags, due to the elimination of regenerateTransactions.
2021-07-02 10:07:03 +10:00