Stephen Morgan
7e44b89bb4
lib: Remove unused label on TranspactionReport and AccountTransactionsReport.
2021-01-02 15:08:09 +11: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
Simon Michael
80146f6143
;web: fix yet another typo ( #1362 )
2020-09-30 15:55:09 -07:00
Simon Michael
0cb4bbf105
;web: fix typo ( #1362 )
2020-09-30 14:02:05 -07:00
Simon Michael
e66a862681
;web: /version: use hledger-web's version, not hledger's ( #1152 )
2020-09-29 17:56:00 -07:00
Simon Michael
fd200a85af
web: /version provides hledger version string as JSON ( #1152 )
2020-09-29 17:28:03 -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
Henning Thielemann
ebe021b0c8
;web: maintain queries in all other links, too
2020-05-27 04:59:55 -07:00
Henning Thielemann
c35d0a8b44
;web: transaction fragments: use numeric identifiers for journal files
...
This saves us from any escaping issues.
2020-05-25 10:02:39 -07:00
Henning Thielemann
e9792bfd42
;web: links from register to journal now contain journal filename
...
in order to distinguish transactions from multiple journal files (#1041 )
2020-05-25 10:02:39 -07:00
Simon Michael
7ec25da13a
web: edit/upload: normalise line endings, avoiding parse errors ( #1194 )
...
Renamed: writeValidJournal -> writeJournalTextIfValidAndChanged
Added comments clarifying line ending behaviour of:
add, import, appendToJournalFileOrStdout, readFilePortably,
writeFileWithBackupIfChanged, writeJournalTextIfValidAndChanged
Summary of current behaviour:
- hledger add and import commands will append with (at least some)
unix line endings, possibly causing the file to have mixed line
endings
- hledger-web edit and upload forms will write the file with
the current system's native line endings, ie changing all
line endings if the file previously used foreign line endings.
2020-02-24 14:04:44 -08:00
Simon Michael
46d516e7a3
move JSON instances from hledger-web to hledger-lib
2019-12-16 17:17:00 -08:00
Simon Michael
4db14ef70f
;api: another round of hledger-api purging; fix the build
2019-09-11 14:49:22 -07:00
Simon Michael
ef1bd24edc
web: don't disable /add PUT with --serve-api, that's considered API
2019-08-17 17:17:30 +01:00
Simon Michael
c3da82043b
web: --serve-api disables server-side UI; startup logging cleanups
2019-08-16 23:55:56 -07:00
Caleb Maclennan
11d9e5eb6a
code: Strip extraneous trailing whitespace from Haskell sources
2019-07-15 16:40:49 +01:00
Simon Michael
6a62bd6437
web, api: update for MarketPrice/PriceDirective change
2019-06-13 15:50:01 -07:00
Simon Michael
adb6ee40eb
lib: clarify price types ( #131 )
...
dropped journalPrices
renamed Price to AmountPrice, AKA "transaction price"
renamed MarketPrice to PriceDirective.
added new MarketPrice (more pure form of PriceDirective without the amount style information)
Prices is now a more efficient data structure, but not used yet.
2019-06-13 15:50:01 -07:00
Henning Thielemann
1fa4419cd1
web: register page: clip linked accounts to 40 characters
...
This was the behaviour before adding the links.
2019-06-13 10:12:44 -07:00
Henning Thielemann
adbdbf002c
web: avoid spaces before commas in register account links
2019-06-13 10:12:44 -07:00
Henning Thielemann
ac96bcfdf0
web: add links to accounts in register transactions
2019-06-13 10:12:44 -07:00
Simon Michael
7ef3ddd1e6
web: fix build breakage
2019-05-23 22:25:28 -07:00
Simon Michael
20bc386b80
restore TransactionsReport
...
hledger-web's register chart uses it, I didn't see it
because it's called from a hamlet template.
2019-05-23 22:15:40 -07:00
Simon Michael
54c1529638
lib: drop TransactionsReport, BalanceHistoryReport
...
They seem unused.
2019-05-23 21:55:19 -07:00
Simon Michael
7c14e10858
web: /accounts: return all accounts, not just top-level ones ( #985 )
...
Accounts are returned as a flat list, in tree order, with asubs fields
empty.
2019-03-09 15:47:06 -08:00
Simon Michael
115643a024
web: silence one more pesky warning
2019-02-20 20:45:09 -08:00
Simon Michael
2dc716cdb4
web: support adding new transactions via JSON PUT ( #316 )
...
A single transaction can be added by PUT to /add.
(I read that PUT, not POST, should be used to create;
perhaps the web add form should also use PUT ?)
As with the web form, the `add` capability is required (and enabled by
default).
Here's how to test with curl:
$ curl -s http://127.0.0.1:5000/add -X PUT -H 'Content-Type: application/json' --data-binary @in.json; echo
New readJsonFile/writeJsonFile helpers in Hledger.Web.Json
are handy for generating test data. Eg:
>>> writeJsonFile "in.json" (head $ jtxns samplejournal)
2019-02-20 20:23:51 -08:00
Simon Michael
b46212ae50
web: better ToJSON instances, new FromJSON instances, utilities ( #316 )
2019-02-20 20:23:45 -08:00
Jakub Zárybnický
861baadb2b
web: Re-add 'balanced transaction' validation to add form
2019-02-20 14:57:04 -08:00
Simon Michael
7e0b74d431
web: fix warnings
2019-02-19 07:29:08 -08:00
Simon Michael
afd7931ca0
web: add the same 6 JSON routes as in hledger-api ( #316 )
2019-02-18 23:57:58 -08:00
Simon Michael
10b45c75aa
web: fix tooltips showing transactions ( fixes #927 )
2019-02-18 07:55:29 -08:00
Jakub Zárybnický
8d1ee38627
web: Add missing capability guards to /manage and /download
2018-06-24 23:17:56 +02:00
Jakub Zárybnický
483283ec43
web: Add capabilities guards and conditional widget rendering
2018-06-24 16:25:22 +02:00
Jakub Zárybnický
e8668e2a5c
web: Conform layout to the rest of hledger-* packages
2018-06-24 14:18:06 +02:00