Simon Michael
f5efb2e08e
fix: ui: cleanups, fix more state & logging bugs ( #1889 )
2022-08-23 01:55:25 +01:00
Simon Michael
b6353804b8
fix: ui: fix state bugs from brick 1 migration ( #1889 )
2022-08-23 00:50:51 +01:00
Simon Michael
67cd6be424
imp: ui: at --debug=2, do lots of logging to debug.log
2022-08-23 00:50:51 +01:00
Simon Michael
423f3bd155
;doc: update manuals
2022-08-22 07:59:02 +01:00
Simon Michael
4e105f0cb7
;dev: ui: note relevant discussion
2022-08-17 16:19:34 +01:00
Simon Michael
4bd9f4a6f7
dev: ui: avoid MonadFail entirely, simplifying ghc version compat ( #1889 )
2022-08-17 15:57:27 +01:00
Simon Michael
2a594b7fb7
pkg: ui: use/require brick 1.0+ ( #1889 )
2022-08-17 15:57:27 +01:00
Simon Michael
e5eac1a618
pkg: ui: add upper bound avoiding brick 1.0
2022-08-17 11:49:10 +01:00
Simon Michael
06c14ff034
;doc: update manuals
2022-07-28 17:32:58 +01:00
Simon Michael
6fbcbf7c6b
doc: update manuals
2022-07-12 16:01:33 +01:00
Simon Michael
d7f30d4fdf
;cabal: update cabal files
2022-07-11 11:18:24 +01:00
Simon Michael
d9c6406d2d
doc: changelogs: updates
2022-07-11 11:02:18 +01:00
Simon Michael
7be94cf500
doc: changelogs: sync from release branch
2022-07-11 11:00:16 +01:00
Simon Michael
797cac4fc6
pkg: require safe 0.3.19+ to avoid deprecation warning
2022-07-11 06:03:14 +01:00
Simon Michael
dde2ea7e42
pkg: ui: support doclayout 0.4, brick 0.72+
2022-07-10 22:03:45 +01:00
Simon Michael
0c6cd819f2
;doc: changelogs cleanup
2022-06-05 00:59:36 +01:00
Simon Michael
6017e5f237
;doc: update changelogs
2022-06-05 00:56:10 +01:00
Simon Michael
f2db4c3840
;cabal: update cabal files
2022-06-05 00:32:18 +01:00
Simon Michael
3e728b1d36
;pkg: bump version to 1.26.99
2022-06-05 00:32:18 +01:00
Simon Michael
122620c335
;doc: changelogs
2022-06-05 00:03:12 +01:00
Simon Michael
729a8b81e0
;doc: update changelogs
2022-06-05 00:03:10 +01:00
Simon Michael
9833482c06
;doc: update manuals
2022-06-05 00:02:59 +01:00
Simon Michael
d27a581e0f
;doc: update changelogs
2022-06-04 11:28:59 +01:00
Simon Michael
1085a2a777
;doc: update changelogs
2022-05-29 08:05:33 -10:00
Simon Michael
2bce910904
;doc: update manuals
2022-05-25 11:35:47 -10:00
Simon Michael
133c54434a
;doc: changelogs
2022-04-14 13:59:03 -10:00
Simon Michael
8de85be658
;doc: update manuals
2022-04-14 12:39:18 -10:00
Simon Michael
db1818ac4a
imp: consistent ghc warnings
2022-03-26 08:27:29 -10:00
Simon Michael
4951ca5aa9
tools: regenerate cabal file with ghcup's stack's hpack to avoid conflicts
2022-03-26 08:27:29 -10:00
Simon Michael
3eddd913e3
imp: ghc9.2: silence incomplete-record-updates warnings
2022-03-25 20:36:12 -10:00
Simon Michael
d9ecd1eb9d
imp: update to modern warning flags
2022-03-25 20:28:34 -10:00
Stephen Morgan
603b2e9f09
ref: Use ExceptT String IO a instead of IO (Either String a).
...
This increases composability and avoids some ugly case handling. We
re-export runExceptT in Hledger.Read.
The final return types of the following functions has been changed from
IO (Either String a) to ExceptT String IO a. If this causes a problem,
you can get the old behaviour by calling runExceptT on the output:
readJournal, readJournalFiles, readJournalFile
Or, you can use the easy functions readJournal', readJournalFiles', and
readJournalFile', which assume default options and return in the IO
monad.
2022-03-25 14:23:27 -10:00
Stephen Morgan
45408183fe
dev: reg: areg: Strip prices early on in PostingsReport and AccountTransactionsReport, when possible.
...
This results in big speedups in cases when we have many transaction prices, like in examples/10000x1000x10.journal. This can be disabled with the show_costs_ option in ReportOpts.
2022-03-10 17:21:40 -10:00
Simon Michael
f0e00b3a43
;doc: update changelogs
2022-03-10 16:55:46 -10:00
Simon Michael
460a1fc209
;doc: update manuals
2022-03-07 09:33:11 -10:00
Simon Michael
af7a5f98e3
;cabal: update cabal files
2022-03-05 13:24:48 -10:00
Simon Michael
5aab2cbf40
;pkg: bump version to 1.25.99
2022-03-05 13:24:48 -10:00
Simon Michael
e4ca7187fe
doc: finalise changelogs for 1.25
2022-03-04 17:51:59 -10:00
Simon Michael
2ee914bdc7
;doc: update changelogs
2022-03-04 17:04:50 -10:00
Simon Michael
ef4da90538
;doc: update changelogs
2022-02-05 14:57:53 -10:00
Simon Michael
d9b0184720
;doc: changeslogs: edit
2022-01-21 08:38:59 -10:00
Simon Michael
8daef36c29
;doc: update changelogs
2022-01-21 08:32:29 -10:00
Stephen Morgan
57d055b643
fix: cost: Add inferred equity postings during journal finalisation, so
...
they can be matched by queries.
2022-01-16 18:37:18 -10:00
Simon Michael
9444e20c3d
;doc: update changelogs
2022-01-15 08:56:45 -10:00
Simon Michael
0e5ae2baac
;doc: update changelogs
2022-01-06 06:42:34 -10:00
Simon Michael
d82210cea9
;doc: update changelogs
2022-01-05 18:09:23 -10:00
Simon Michael
757c548c17
;doc: update changelogs
2022-01-05 08:12:44 -10:00
Simon Michael
d1bc3bbb32
;doc: update changelogs
2022-01-01 15:55:08 -10:00
Stephen Morgan
8eedbbbe87
imp: cost: Generate totally balanced conversion postings for amounts with costs.
...
Introduce --infer-equity option which will generate conversion postings.
--cost will override --infer-equity.
This means there will no longer be unbalanced transactions, but will be
offsetting conversion postings to balance things out. For example.
2000-01-01
a 1 AAA @@ 2 BBB
b -2 BBB
When converting to cost, this is treated the same as before.
When used with --infer-equity, this is now treated as:
2000-01-01
a 1 AAA
equity:conversion:AAA-BBB:AAA -1 AAA
equity:conversion:AAA-BBB:BBB 2 BBB
b -2 BBB
There is a new account type, Conversion/V, which is a subtype of Equity/E.
The first account declared with this type, if any, is used as the base account
for inferred equity postings in conversion transactions, overriding the default
"equity:conversion".
API changes:
Costing has been changed to ConversionOp with three options:
NoConversionOp, ToCost, and InferEquity.
The first correspond to the previous NoCost and Cost options, while the
third corresponds to the --infer-equity flag. This converts transactions with costs
(one or more transaction prices) to transactions with equity:conversion postings.
It is in ConversionOp because converting to cost with -B/--cost and inferring conversion
equity postings with --infer-equity are mutually exclusive.
Correspondingly, the cost_ record of ReportOpts has been changed to
conversionop_.
This also removes show_costs_ option in ReportOpts, as its functionality
has been replaced by the richer cost_ option.
2021-12-21 10:50:13 -10:00
Simon Michael
45db32b84f
;doc: update changelogs
2021-12-10 12:50:21 -10:00
Simon Michael
a98e6125f1
;doc: changelogs: 1.24.1
2021-12-10 12:47:43 -10:00
Simon Michael
1ef8f329c6
lib: simpler more robust version strings, with date/without patchlevel
...
We no longer rely on git tags and git describe output, since it's
hard to reliably select the correct tag eg for minor releases.
We might use them again in future for dev builds, but it requires
adding git describe --match support to githash. For now,
* Program name, OS and architecture are always shown.
* The package version is always shown.
* If there is git info at build time, the latest commit hash and commit date are shown.
Example outputs:
A homebrew binary, not built in git repo: hledger-ui 1.24, mac-aarch64
A CI release build, built in git repo: hledger 1.24.1-g455b35293-20211210, mac-x86_64
API changes:
* new type synonyms ProgramName, PackageVersion, VersionString
* versionStringForProgname -> versionString with extra argument
* versionStringFor -> versionStringWith with extra argument
2021-12-10 12:42:40 -10:00
Simon Michael
1a646cd092
;doc: changelogs: 1.24.1
2021-12-09 14:52:23 -10:00
Simon Michael
f111274f25
;doc: update changelogs
2021-12-09 14:25:42 -10:00
Simon Michael
e532b7be49
;doc: update manuals
2021-12-09 14:03:58 -10:00
Simon Michael
6b3d040fdf
cln: ui: drop unused pragma
2021-12-09 12:23:55 -10:00
Simon Michael
35c1c9b6a2
pkg: progress towards supporting GHC 9.2 and newer libs ( #1774 )
...
hledger-lib builds, hledger's deps don't (shakespeare).
2021-12-06 12:32:50 -10:00
Simon Michael
2a58331024
;doc: update manuals
2021-12-05 10:56:41 -10:00
Simon Michael
b6c4c227d3
;doc: changelog typo
2021-12-02 00:16:23 -10:00
Simon Michael
ce3ec28e3d
;cabal: update cabal files
2021-12-01 22:16:37 -10:00
Simon Michael
66619803b7
;pkg: bump version to 1.24.99
2021-12-01 22:16:37 -10:00
Simon Michael
5648db0fd5
doc: update manuals
2021-12-01 20:59:33 -10:00
Simon Michael
2382fe5db8
;doc: finalise changelogs
2021-12-01 18:23:16 -10:00
Simon Michael
0c4b820111
;cabal: update cabal files
2021-12-01 17:16:28 -10:00
Simon Michael
387325b59e
;pkg: bump version to 1.24
2021-12-01 17:16:28 -10:00
Simon Michael
1d3f7a2aad
;doc: update manuals
2021-12-01 17:16:04 -10:00
Simon Michael
8c57d70940
;doc: edit ui changelog
2021-11-26 12:30:38 -10:00
Simon Michael
4933b9fc45
;doc: draft changelogs
2021-11-26 12:02:36 -10:00
Simon Michael
791f4655df
;doc: update manuals
2021-11-26 05:58:55 -10:00
Simon Michael
bfb8a13c13
imp: ui: Z -> z for easier zero toggling
...
Z remains supported as a hidden legacy key.
2021-11-25 11:58:41 -10:00
Simon Michael
eb4ad8cc11
imp: ui: also show declared leaf accounts (when showing zeros)
...
Similar to (and motivating) balance --declared, the goal is to
show a useful list of accounts when all you have is some starter
files with account declarations.
2021-11-25 11:57:39 -10:00
Simon Michael
e5678ce230
Revert "imp: ui: accounts: also show declared accounts, even if unused"
...
This reverts commit 29efacf02c .
(It breaks filtering by account, also the parent accounts aren't really desirable to see.)
2021-11-22 12:06:23 -10:00
Simon Michael
29efacf02c
imp: ui: accounts: also show declared accounts, even if unused
...
This will be more user-friendly when getting started.
2021-11-22 11:13:47 -10:00
Simon Michael
14aa047e08
;doc: update manuals
2021-11-21 23:33:44 -10:00
Simon Michael
30076e8ecc
;imp: doc: ui: -w flag
2021-11-21 23:33:16 -10:00
Simon Michael
7e4b2af361
imp: ui: -w short flag for --watch
2021-11-21 19:34:40 -10:00
Stephen Morgan
59b4968929
imp: ui: Display an error message on invalid regexp, rather than
...
silently ignoring. (#1394 )
2021-11-20 22:23:52 -10:00
Simon Michael
e0dc028374
;doc: update manuals
2021-11-20 22:07:45 -10:00
Simon Michael
c11d19a893
fix: ui: scroll selection to middle on first entry, also
...
The viewport doesn't exist until after first render, and scrollSelectionToMiddle didn't need it; viewportScroll queues up events for it.
https://github.com/jtdaugherty/brick/issues/349
2021-11-20 15:33:28 -10:00
Simon Michael
d0c937a41b
imp: ui: can click bottom blank area to go back
2021-11-19 11:32:33 -10:00
Simon Michael
956ee06591
imp: ui: transaction: refactor
2021-11-19 11:32:09 -10:00
Simon Michael
f5cfcf827d
imp: ui: don't use top margin as a click target yet
2021-11-18 23:01:52 -10:00
Simon Michael
b4254f41c6
;doc: update manuals
2021-11-18 22:57:53 -10:00
Simon Michael
6aa212dd4a
;doc: ui: consistent capitalisation, drop wrong ENTER references
2021-11-18 22:57:34 -10:00
Simon Michael
1d3afad881
;doc: ui: tweak
2021-11-18 22:49:29 -10:00
Simon Michael
568b39734b
;doc: update manuals
2021-11-18 22:48:14 -10:00
Simon Michael
35b16346a9
;doc: ui: document mouse support
2021-11-18 22:43:27 -10:00
Simon Michael
cf15dbd7c9
;doc: update manuals
2021-11-18 22:26:10 -10:00
Simon Michael
710c054589
ui: listScrollPushingSelection: do scroll if there's no selection
2021-11-18 22:21:37 -10:00
Simon Michael
7bbff6a359
fix: ui: accounts: don't let j or C-n move past bottom
2021-11-18 22:21:37 -10:00
Simon Michael
9f6595f122
ui: refactor, generalise listScrollPushingSelection
2021-11-18 22:21:37 -10:00
Simon Michael
731a416b8c
ui: register: scrolling pushes selection, like accounts screen
2021-11-18 22:21:37 -10:00
Simon Michael
3a57814402
ui: debounced clicking; click top/left margin to exit
2021-11-18 22:21:37 -10:00
Simon Michael
6d69ea9c29
ui: mouse scrolls accounts, register screens
2021-11-18 22:21:37 -10:00
Simon Michael
96a80fca70
ui: register: left click enters transaction screen
2021-11-18 22:21:37 -10:00
Simon Michael
35402fb472
ui: accounts: left click enters register
2021-11-18 22:21:37 -10:00
Simon Michael
2076d5a98b
ui: enable mouse support at startup
2021-11-18 22:21:37 -10:00
Simon Michael
8f37d8a611
;ref: ui: clarify vty construction
2021-11-18 22:21:37 -10:00
Stephen Morgan
ff0132df28
dev: Use realLength from doclayout instead of strWidth and textWidth. ( #895 )
...
This gives us more accurate string length calculations. In particular,
it handles emoji and other scripts properly.
2021-11-11 18:29:50 -10:00
Stephen Morgan
1bc04685b7
pkg: Drop base-compat-batteries dependency.
...
Our supported stackage versions are now new enough that we don't need
any of the compatibility features anymore.
2021-10-31 07:56:07 -10:00