Commit Graph

11970 Commits

Author SHA1 Message Date
Simon Michael
876bdacf5d ;tools:make:etags: include .test files 2023-11-01 06:53:25 +00:00
Simon Michael
abc99d8dca ;dev: tests: ledger-compat tests cleanup 2023-10-29 00:16:47 +01:00
Simon Michael
65efc8b87f ;dev: tests: add outshine headings for more readability (in emacs) 2023-10-29 00:16:47 +01:00
Simon Michael
48732e6655 ;doc: TESTS name/link 2023-10-28 17:27:45 +01:00
Simon Michael
da2f021654 ;tools:bake:lastweek: improvements 2023-10-28 16:46:39 +01:00
Simon Michael
2ba321885d dev:web: refactor permission checking 2023-10-25 12:51:08 +01:00
Simon Michael
24ce9b5be1 ;bin:report1: cleanups 2023-10-24 13:38:08 +01:00
Simon Michael
efc87d9c0d ;web:sandstorm: bump app version, tweak title 2023-10-24 13:38:08 +01:00
Simon Michael
e40c82c153 ;cabal: update cabal files 2023-10-24 13:37:36 +01:00
Simon Michael
795dbd97f8 imp:web: cleanups; use --allow on Sandstorm (#834) 2023-10-24 13:37:36 +01:00
Simon Michael
95d33f20f6 imp:web: access control UX cleanups (fix #834)
Changes:

1. rename the sandstorm "manage" permission to "edit"
(old permission names: view, add, manage;
 new permission names: view, add, edit).

Rationale: "edit" best describes this permission's current powers, to users and to operators.
If we ever added more manager-type features we'd want that to be a new permission,
not a rename of the existing one (which would change the powers of existing users).

2. rename the sandstorm roles for consistency with permissions
(old role names: viewer, editor, manager;
 new role names: viewer, adder, editor)

Rationale: it's needed to avoid confusion.

3. add a new option: --allow=view|add|edit|sandstorm (default: add).
'sandstorm' sets permissions according to the X-Sandstorm-Permissions header.
Drop the --capabilities and --capabilities-header options.

Rationale: it's simpler and more intuitive.

4. replace "capability" with "permission" in ui/docs/code.

Rationale: consistent with the above, more familiar.
2023-10-24 13:37:36 +01:00
Simon Michael
c195e35572 ;bin:report1: cleanups 2023-10-23 19:29:32 +01:00
Simon Michael
15e76488e3 ;bin: link hledger-report1 scripts 2023-10-23 19:13:52 +01:00
Simon Michael
33cef6f494 ;imp:Hledger.Cli.Script: don't export main, do export CompoundBalanceCommand 2023-10-23 19:09:19 +01:00
Simon Michael
da774bd708 ;bin: hledger-report1: a custom compound report in haskell and bash 2023-10-23 19:07:52 +01:00
Simon Michael
31ecc9f4f2 imp:demo: improve error message when asciinema fails 2023-10-23 14:21:20 +01:00
Simon Michael
d8021ef754 fix:demo: avoid breaking asciinema 2.3.0 (fix #2094)
We were adding a trailing newline, which causes asciinema 2.3.0 to
show a JSON decode error.
2023-10-23 14:08:01 +01:00
Simon Michael
63d41b30db ;doc: haddock, comment fixes 2023-10-21 17:58:43 +01:00
Simon Michael
6d849f9e73 ;make: copy-exe[s]-*: fix help
vv#	examples/shared-expenses.journal
2023-10-21 17:58:43 +01:00
Simon Michael
b6a0ecd424 fix:web: check options like --capabilities before starting the app 2023-10-21 08:54:44 +01:00
Simon Michael
9b8044f737 fix:web:edit form: fix broken "File format help" link (fix #2103)
Now not broken, https rather than http, and pointing to the "Data
formats" section, which has links to each of the file formats
(in case editing a non-journal file).
2023-10-21 03:36:04 +01:00
Simon Michael
3a717d1625 ;doc:cli:Data formats: link to each format's doc 2023-10-21 03:36:04 +01:00
Simon Michael
605b3d6b94 imp:cli:Hledger.Cli.Version: export packagemajorversion 2023-10-21 03:36:04 +01:00
Jacob Weisz
b5bf0cbdb9 ;feat: Upgrade Sandstorm package with permissions 2023-10-20 16:18:37 +01:00
Philipp Klocke
6312446cbf web: Use guessAppRootOr to enable relative root if desired (fix #2099)
This is useful when serving on 0.0.0.0, such that querying from any
other device with <IP>:<PORT> does not fallback to 0.0.0.0:PORT,
which would fail.

Tested: Manually
2023-10-20 09:25:31 +01:00
Simon Michael
edeb906922 ;dev:bake lastweek 2023-10-20 08:34:57 +01:00
Simon Michael
03f757204b ;examples:csv: note where to find vanguard, fidelity CSV 2023-10-20 08:00:27 +01:00
Simon Michael
f157720fa3 ;bin:justfile: rename forecast.journal, forecast-import refinement 2023-10-19 11:17:57 +01:00
Simon Michael
7970ce7434 ;doc:areg,ui: note how separately-dated postings get combined 2023-10-19 10:24:47 +01:00
Simon Michael
8bfde51ae8 ;dev:ci: rename usual CI branch to "ci" 2023-10-18 14:02:59 +01:00
Simon Michael
6c95f47725 ;dev:ci: clean up, rename main CI workflow
Back to ci.yml.
2023-10-18 14:02:59 +01:00
Simon Michael
bd5b8b0b51 ;doc:REGRESSIONS: update 2023-10-18 14:02:59 +01:00
Simon Michael
661260f756 ;doc:print: cleanups (#2085) 2023-10-18 14:02:59 +01:00
Simon Michael
2f5feffa74 ;doc:CHANGES: document print and zero-rendering changes (#2085) 2023-10-18 13:56:24 +01:00
Simon Michael
5a72b9e9ea feat:print: add --round option for more control of precisions (#2085) 2023-10-18 13:56:24 +01:00
Simon Michael
c7bcdfcdcf ;doc:internals: Precision and rounding 2023-10-18 13:56:24 +01:00
Simon Michael
4e56199c57 dev: refactor transactionCheckBalanced 2023-10-18 13:56:24 +01:00
Simon Michael
c13c13ab1f lib!: use styleAmounts in more places; add rounding strategies 2023-10-18 13:56:24 +01:00
Simon Michael
94ab8b1ed7 dev: journalApplyCommodityStyles -> journalStyleAmounts 2023-10-18 13:56:24 +01:00
Simon Michael
f8027abb44 dev:print: refactor, add AmountStyle "rounding strategy"
Changes to enable more control of "rounding" behaviour
(ie, choosing display precisions for amounts).

This reverts 1.31's change of asprecision, making it a non-Maybe
again, and adds a new asrounding field providing more control over how
a target display precision is applied to existing amounts (two options
for now, more later). Functionality is in an interim state (reports do
no rounding).
2023-10-18 13:56:24 +01:00
Simon Michael
a0136a0b28 ;doc:REGRESSIONS: update 2023-10-18 02:36:40 +01:00
Simon Michael
ba8adf91fb ;doc:REGRESSIONS: update 2023-10-18 02:28:01 +01:00
Simon Michael
9ead8a64e1 fix:timedot: parse unitful quantities more accurately (fix #2096)
A quantity with a unit like "15m" was being parsed internally as
0.249999999... rather than 0.25 (and since hledger 1.21, printed that
way also). Now we round such quantities to two places during parsing,
to get exact quarter-hour amounts.
2023-10-17 12:05:10 +01:00
Simon Michael
ffc535ad64 lib: add Show to Table render functions for debugging 2023-10-17 11:46:00 +01:00
Simon Michael
72ef9186ba ;doc:journal: rewrite Commodity display style 2023-10-17 11:46:00 +01:00
Simon Michael
eda60f1e06 ;dev:stack: ghc 9.4 fix 2023-10-16 18:53:17 +01:00
Simon Michael
614b17cfa8 ;doc:LINKS: updates 2023-10-15 19:23:30 +01:00
Simon Michael
2135d388df ;doc:REGRESSIONS: add 2034 2023-10-15 18:16:17 +01:00
Simon Michael
929c5d6362 ;doc:REGRESSIONS: cleanup 2023-10-15 18:10:59 +01:00
Simon Michael
9dbfdffa06 ;doc:REGRESSIONS: cleanup 2023-10-15 18:03:01 +01:00