Simon Michael
892eb06396
;dev: ui: replace "curses interface" with TUI
2022-11-07 16:48:54 -10:00
Simon Michael
a726be0e28
imp: ui: add flags to select starting screen
2022-11-07 16:04:39 -10:00
Simon Michael
1a526b82c9
imp: ui: debug log startup args, debug level, initial screen stack
2022-11-07 14:52:42 -10:00
Simon Michael
05aeedf6c9
imp: ui: start on all accts scrn if no bs accts detected, or with an acct query
2022-11-07 09:42:21 -10:00
Simon Michael
b0966adc93
dev: debug logging: ".log" suffix instead of ",logging"; improve docs
2022-11-06 09:01:12 -10:00
Simon Michael
9a8a8a75a2
imp: ui: start on balance sheet screen: better initial screen stack
2022-11-06 07:59:45 -10:00
Simon Michael
4a35945a8f
imp: ui: start on balance sheet accounts screen
2022-11-04 23:16:40 -10:00
Simon Michael
988c164ec8
imp: debug logging improvements; hledger-ui logs to hledger-ui.log only
...
Hledger.Utils.Debug's "trace or log" functions are now controlled as
follows: to enable logging, append ",logging" to the program name at
startup (using withProgName). This also works when running in GHCI.
And they log to PROGNAME.log, not debug.log.
All (hopefully) debug logging in the hledger packages is now "trace or
log" capable.
This means that hledger-ui should now log all debug output to
./hledger-ui.log, with none of it appearing on the console.
2022-11-03 16:07:54 -10:00
Simon Michael
9a9ebfc0e3
dev: ui: rename hledger-ui debug helpers
2022-10-31 12:42:09 -10:00
Simon Michael
52d7f99360
fix: ui: fix internal screen state when using --register
...
This seems not to have been user-visible.
2022-10-28 16:52:45 -10:00
Simon Michael
21c00f9ba2
imp: ui: improve --debug=2 debug.log logging
2022-10-28 16:51:55 -10:00
Simon Michael
45ee5d125d
imp: ui: support/require fsnotify 0.4.x
2022-09-19 18:18:50 -10:00
Simon Michael
e51d4059db
feat: ui: add income statement accounts screen
2022-09-11 13:51:40 -10:00
Simon Michael
9fc92cefe4
imp: ui: at --debug 2+, also log events
2022-09-10 12:55:00 -10:00
Simon Michael
975522e759
feat: ui: add balance sheet accounts screen
2022-09-08 12:23:59 -10:00
Simon Michael
75a19e8609
feat: ui: add top-level menu screen
2022-09-08 12:23:59 -10:00
Simon Michael
a5f4d2fd6e
dev: ui: refactor: simpler, more debuggable Screen type
...
Follow-on from the brick 1.0 migration work (#1889 , #1919 ).
These new types aim to be more restrictive, allowing fewer invalid
states, and easier to inspect and debug. The screen types store only
state, not behaviour (functions), and there is no longer a circular
dependency between UIState and Screen.
2022-09-07 11:56:13 -10:00
Simon Michael
96db4fe9cc
dev: ui: enable/fix name shadowing warnings
2022-08-23 02:57:59 +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
2a594b7fb7
pkg: ui: use/require brick 1.0+ ( #1889 )
2022-08-17 15:57:27 +01: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
3456fcb862
test: ui: web: Use report date from _rsDay for hledger-ui and
...
hledger-web, rather than getCurrentDay.
File watching in hledger-ui continues to use getCurrentDay.
2021-09-09 14:40:39 -10:00
Stephen Morgan
765466c392
dev!: ui: Rename fields of UIOpts for consistency.
...
In code, either replace the name with the new name, or use the lenses
instead.
watch_ -> uoWatch
cliopts_ -> uoCliOpts
2021-09-09 13:31:43 -10:00
Stephen Morgan
09a2449f4f
ref: ui: Pull register and theme options into UIOpts.
2021-09-09 13:31:43 -10:00
Stephen Morgan
54c73ff759
ref: ui: Refactor code to eliminate requirement for change_ in UIOpts.
...
--change is already stored in balanceaccum_ in ReportOpts, so it does
not need to be stored in UIOpts too.
2021-09-09 13:31:43 -10:00
Stephen Morgan
761e00caa4
cln: hlint: Clean up lambda related warnings.
2021-08-27 06:13:56 -10:00
Simon Michael
606d992fc8
cli: disable no-longer-used --binary-filename flag
...
It was still supported (as a hidden flag) by hledger-web,
and now is not.
2021-08-05 21:51:10 -10:00
Stephen Morgan
c404800fbf
ref!: forecast: Move forecast_ from ReportOpts to InputOpts.
2021-08-05 21:10:47 -10:00
Stephen Morgan
b0aa70b27a
lib!: Rename the fields of ReportSpec.
...
This is done to be more consistent with future field naming conventions,
and to make automatic generation of lenses simpler. See discussion in
\#1545.
rsOpts -> _rsReportOpts
rsToday -> _rsDay
rsQuery -> _rsQuery
rsQueryOpts -> _rsQueryOpts
2021-07-23 10:37:08 -10:00
Simon Michael
a83c2f6950
;cln: ui: clarify watch loop
2021-07-20 20:38:39 -10:00
Simon Michael
87f575e643
ref: bal: rename some report types to clarify/sync with docs
...
ReportType -> BalanceCalculation
ChangeReport -> CalcChange
BudgetReport -> CalcBudget
ValueChangeReport -> CalcValueChange
BalanceType -> BalanceAccumulation
PeriodChange -> PerPeriod
CumulativeChange -> Cumulative
HistoricalBalance -> Historical
ReportOpts:
reporttype_ -> balancecalc_
balancetype_ -> balanceaccum_
CompoundBalanceCommandSpec:
cbctype -> cbcaccum
Hledger.Reports.ReportOptions:
balanceTypeOverride -> balanceAccumulationOverride
2021-07-15 14:22:20 -10:00
Stephen Morgan
68e975adf1
lib,cli,ui,web: Remove unused LANGUAGE pragmas.
2021-06-07 17:33:54 -10:00
Stephen Morgan
c87290e5f5
ui: Remove unnecessary CPP when dropping support for GHC 8.4.
2021-06-07 17:33:54 -10:00
Stephen Morgan
4609e79f2c
lib,cli,ui,web: A number of AccountName and Journal functions which are
...
supposed to produce unique sorted use Sets internally to be slightly
more efficient. There is also a new function journalCommodities.
2021-03-23 11:26:30 -07:00
Simon Michael
ffb985f1a2
ui, web: make --man and --info work, similar to hledger
...
(cf #1410 )
2021-03-03 05:57:31 -08:00
Stephen Morgan
e4e533eb9f
lib,cli,ui: Replace some uses of String with Text, get rid of some unpacks, clean up showMixed options.
2021-01-02 15:08:09 +11:00
Simon Michael
6158d16443
;ui: refactor, simplify query
2020-12-12 11:52:15 -08:00
Simon Michael
cc2654b17b
;ui: notes ( #1387 )
2020-11-15 11:32:43 -08:00
Simon Michael
4aecb9182e
;ui: notes ( #1387 )
2020-11-15 11:20:40 -08:00
Stephen Morgan
260283e2f1
lib,cli,ui,web: Introduce ReportSpec, which holds ReportOpts, the day of
...
the report, and the parsed Query.
2020-10-23 14:14:11 -07:00
Stephen Morgan
fcbe511d42
ui,web: Adopt new ReportOptions interface, store literal query string in UIOpts.
2020-10-23 14:14:11 -07:00
Stephen Morgan
07dd30c1e5
lib,cli,ui: Change to consistent naming scheme for Hledger.Utils.Regex.
2020-09-01 11:36:34 +10:00
Stephen Morgan
e5371d5a6a
lib,cli,ui,web: Make Regexp a wrapper for Regex.
2020-08-31 12:04:45 +10:00
Stephen Morgan
f5a7c84065
ui: Bump version of vty, present in all supported stackage, to get rid of CPP.
2020-08-29 15:08:28 -07:00
Stephen Morgan
2fd678e415
lib,cli,ui: Remove old CPP directives made redundant by version bounds.
2020-08-29 15:08:28 -07:00
Simon Michael
3f55c23603
;review, tag all error calls with an easier to find PARTIAL: comment ( #1312 )
2020-08-05 16:08:33 -07:00
Simon Michael
5b5eab1afe
ui: update for new parseQuery ( #1312 )
2020-08-05 14:18:50 -07:00
Simon Michael
7868da2a48
ui: ESC now restores exactly to initial app state ( #1286 )
...
Also resetFilter (DEL/BS key) no longer changes tree/list mode.
2020-07-18 12:24:37 -07:00