Simon Michael
ebba1b09f2
web: fix more ghc 7.10 import warnings ( #239 )
2015-04-07 18:49:33 -07:00
Simon Michael
b0d71e3ccc
web: declare a bunch of language pragmas
...
Makes the code more declarative, and makes building without cabal easier.
2015-04-07 18:35:41 -07:00
Simon Michael
aa47a7dc12
hledger-web: build with GHC-7.10
2015-03-29 06:33:53 -07:00
Simon Michael
e76cc6ee47
web: stay in add form when there are errors
2015-02-23 23:22:02 +00:00
Simon Michael
9351f10b81
web: show all add form errors as form errors
...
Don't allow internal server errors during form validation.
2015-02-20 09:31:13 +00:00
Simon Michael
d3453c66c1
web: improve add form validation ( #223 , #234 )
...
The add form is now partly using yesod-form.
2015-02-20 09:30:59 +00:00
Simon Michael
16aaf35c4b
web: move old edit/import stuff out of AddForm
2015-02-16 18:20:31 +00:00
Simon Michael
55967e9192
web: Post -> AddForm; drop/comment more old stuff
2015-02-16 16:21:07 +00:00
Simon Michael
a1aff10225
web: comment unused handlers
2015-02-16 15:35:27 +00:00
Simon Michael
ebe0ee184c
web: remove unused /journal/entries view
2015-02-16 15:03:48 +00:00
Simon Michael
7138acaec4
web: clarify some confusing parameter handling
2015-02-15 08:17:47 +00:00
Julien Moutinho
cf28985cf2
lib: move from Text.ParserCombinators.Parsec to Text.Parsec
...
NOTE: required to use liftIO in includedirective
SEE: http://www.vex.net/~trebla/haskell/parsec-generally.xhtml#IO
2014-11-20 10:08:30 +01:00
Simon Michael
c1c9a989be
web: fix a warning
2014-10-23 10:27:07 -07:00
Simon Michael
b6774f47a3
balance, print: add -o and CSV output here too
...
Not very elegant yet, but works.
2014-10-21 12:02:23 -07:00
Simon Michael
c2644f4c48
web: clean up warnings
2014-10-18 10:35:04 -07:00
gwern
d1618aaca8
strip trailing whitespace from all Haskell files
2014-10-14 18:48:24 -07:00
Simon Michael
2992ce069d
web: add form ignores trailing blank fields
...
Empty final account/amount fields are now ignored. Empty fields
followed by non-empty fields are not allowed.
2014-08-14 01:10:51 -07:00
Simon Michael
834fef7389
web: add handler cleanup, rename vars
2014-08-14 00:26:22 -07:00
Julien Moutinho
73d4c86002
web: journal: better display of account names
2014-07-29 11:54:31 -07:00
Simon Michael
6c60119a92
web: show right zero commodities on register chart
...
If zero amounts are recorded with a commodity, any resulting zero
balances appearing in the register chart will have the proper commodity
and colour. (This is the first and so far only case of hledger
preserving the commodity of zero amounts.)
2014-07-28 18:47:59 -07:00
Simon Michael
40ab1e17f6
amounts cleanups, and support zeros with commodity
2014-07-28 18:45:13 -07:00
Simon Michael
455de6531d
web: just show a simple link as the home button for now
2014-07-23 15:04:17 -07:00
Simon Michael
f2845e9b2e
web: ensure whitespace between accounts headings
2014-07-23 15:03:41 -07:00
Simon Michael
f622f8e532
web: ensure the null commodity appears in legend
2014-07-23 15:03:03 -07:00
Simon Michael
a415759022
web: make chart point color consistent
2014-07-18 17:06:47 -07:00
Simon Michael
f2d9c6e9c1
web: more register chart improvements
...
- show a background color for future and less-than-zero regions
- show points for transactions, not all line corners
- hovering over point shows balance, date, posted amount and transaction
- clicking a point scrolls towards that date
2014-07-18 16:45:46 -07:00
Simon Michael
470835adc2
web: show points and zero/today lines on chart
2014-07-18 07:55:23 -07:00
Simon Michael
4333cae43f
web: register chart improvements
...
- bigger
- plot is horizontal when balance is not changing
- legend for commodities
- some work towards stable commodity colors
2014-07-17 18:56:55 -07:00
Simon Michael
441cae645f
web: account transactions report, register clarifications
...
Clarify the semantics and code of account transactions report a bit.
In the web account register view, emphasise the "historical balance" vs
"running total" distinction; show it as a label for the chart as well,
to reduce confusion.
2014-07-17 16:20:34 -07:00
Simon Michael
b42298c1e2
web: fix warnings
2014-07-15 06:55:14 -07:00
Simon Michael
b0d74b1466
web: support more than 2 postings in the add form
...
- ctrl plus/ctrl minus adds/removes posting fields
- clicking the more link or pressing tab in the last field also works
- the focus is adjusted sensibly
- the add form is reset if closed and reopened, except the number of postings
- keyboard shortcuts should be less dependent on focus now
- tested in recent firefox, chrome, safari
- things should be robust with typeahead, with one notable exception:
typeahead is not enabled in the new account fields when you add
postings. I tried hard, help welcome.
2014-07-14 14:30:30 -07:00
Simon Michael
67c8ceb142
web: after adding, just redisplay the journal
2014-07-12 15:18:39 -07:00
Simon Michael
009df13baf
web: make the add form a modal dialog
...
The add form has become a modal dialog, and been moved into the default
template. This simplifies some things, for now. Eg it's easily
accessible from any page.
2014-07-09 00:04:50 -07:00
Simon Michael
ed3fd58fb9
web: rename help modal
2014-07-09 00:00:23 -07:00
Simon Michael
14b5d1ca3e
web: fix a haddock breakage
2014-07-08 11:49:34 -07:00
Simon Michael
8fe26fe345
web: add form stricter parsing, better errors ( fixes #194 )
2014-07-05 13:07:57 -07:00
Simon Michael
f30deee197
web: fix compilation after recent lib changes
2014-07-03 09:37:02 -07:00
Simon Michael
201521dc5a
a few tweaks
2014-06-24 14:51:09 -07:00
Simon Michael
4f0b4ea36c
web: add missing hs & js files
2014-06-14 14:33:11 -07:00
Simon Michael
ec51d28839
web: a bunch of ui cleanup & improvement
...
- the web UI has been streamlined; edit form, raw & entries views dropped
- we now remember whether sidebar is open or closed
- better help dialog
- keyboard shortcuts are now available
- better add form
- more bootstrap styling
- static file cleanups
- report filtering fixes
- upgrade jquery to 2.1.1, bootstrap to 3.1.1, drop select2, add typeahead, cookie, hotkeys
- clarify debug helpers a little
- refactoring
2014-06-13 00:19:00 +01:00
Simon Michael
884f64e292
web: reduce ui over-complexity
...
For now, you can do three things in the web ui: add a transaction, view
journal entries, view an account register. Filtering is not quite right yet.
2014-05-24 08:23:02 -07:00
Simon Michael
adde48a805
web: small column heading improvements
2014-05-24 08:20:33 -07:00
Simon Michael
702f900ec0
web: fix warnings
2014-05-23 09:02:20 -07:00
Simon Michael
3c8786df1f
web: tweak tooltips, remove unused code
2014-05-23 09:01:25 -07:00
Simon Michael
7778a0b821
web: reorganise sidebar links
2014-05-22 20:57:22 -07:00
Simon Michael
3f3a526e8a
web: move sidebar links out of balanceReportAsHtml
2014-05-22 20:36:49 -07:00
Ryan Desfosses
b60da51386
made the following changes to resolve deprecated warnings:
...
replaced hamletToRepHtml with giveUrlRenderer
updated type RepHtml to Html
replaced settingsPort with setPort
2014-05-21 07:30:54 -04:00
Ryan Desfosses
3182f2c69a
Common: Added Register link to sidebar
2014-05-14 12:13:34 -04:00
Simon Michael
7d36789b74
web: fix build failures caught by the bot
2014-03-19 08:45:52 -07:00
Simon Michael
3b8b3d234e
web: work around build failures on new OS X/xcode 5 related to clang
2014-02-08 08:43:20 -08:00
Simon Michael
c53732a4af
balance: new multi-column reports & documentation
...
Two new multi-column balance report modes show ending balance per
period: `--cumulative`, starting from 0, and `--historical`, starting
from the historical starting balance.
The balance command's specification has been clarified and consolidated
in the Balance.hs haddock. Reports.hs has also had haddock updates. The
old AccountsReport type is now BalanceReport, still used by
single-column balance report. The new MultiBalanceReport type is used by
the multi-column reports.
2013-12-07 05:43:31 -08:00
Simon Michael
060d1fdd1b
change comm: to sym: and require a match on the whole symbol
2013-09-09 15:26:45 -07:00
Simon Michael
957f57a07b
new comm:REGEXP query matches commodity symbols. Also some minor amt: fixes.
2013-09-09 15:04:43 -07:00
Simon Michael
42da3a5071
web: avoid trailing commas in register chart values, in case of trouble with IE
...
Hopefully adding [] is harmless.
2013-06-03 23:18:04 -07:00
Simon Michael
4f5b43050e
web: list chart values earliest first
2013-06-03 23:17:06 -07:00
Simon Michael
8f435e1620
Merge pull request #121 from jeffrichards/master
...
remove the tooltip from the hledger-web journal screen.
2013-06-01 15:58:26 -07:00
Simon Michael
9602c29692
web: show zero-balance accounts in the sidebar as well ( fixed #106 )
2013-06-01 15:42:50 -07:00
Simon Michael
2e5718d5ea
web: show one line per commodity in charts. Needs more polish, but fixes #109 .
2013-06-01 15:33:33 -07:00
Jeff Richards
7890f24415
remove a the tool tip from the journal screen, as it just duplicates the
...
info shown on screen.
2013-06-01 14:20:08 -07:00
Simon Michael
cc087826e0
web: don't show prices in the accounts sidebar ( fixes #114 )
2013-06-01 12:35:10 -07:00
Simon Michael
41277766fc
fix a compilation warning
2013-06-01 11:38:01 -07:00
Xinruo Sun
34a31285a9
web: use select2 to autocomplete
...
Use the javascript library select2 to autocomplete descriptions and
account names when adding a transaction. The autocomplete searches by
substring, prefix and infix. New values will also be accepted.
This replaces dhtmlxcombo library so it is removed. Also updated jquery
to the latest 1.10.1.
2013-06-01 13:20:37 +08:00
Simon Michael
207fd06a6f
web: fix a compilation breakage from balance assertions work
2013-05-30 14:45:30 -07:00
Simon Michael
19d55076a4
web: require yesod 1.2, cabal file cleanup
2013-05-14 15:36:44 -07:00
Simon Michael
2eabcd1360
reverse and rename the blaze_html_0_5 flag to blaze_html_0_4
2013-04-19 12:40:29 -07:00
Simon Michael
05da80b71d
web: use full width for search box, update search help
2013-04-15 17:28:30 -07:00
Simon Michael
d5e575c862
web: remove io-storage
2013-04-09 12:53:21 -07:00
Simon Michael
0df4a235af
web: set up journal for yesod devel, store it in App ( fixes #101 )
...
The web app's journal state is now kept in the yesod App as an IORef,
instead of using io-storage.
yesod devel now works; it uses the journal file specified by
$LEDGER_FILE, or ~/.hledger.journal.
web: update journal state handling, fix yesod devel - WIP
2013-04-09 12:41:22 -07:00
Simon Michael
67d1f91909
web: fix compilation; also fixes some hardcoded static urls (Xinruo Sun)
2013-01-11 13:54:49 +00:00
Simon Michael
621a91807e
rename actual/effective dates to primary/secondary
...
The command-line flag is now --date2. Alternate spellings --effective and --aux-date
are accepted for compatibility.
2012-12-06 04:43:41 +00:00
Simon Michael
e3d5fdde66
web: small style cleanup
2012-12-03 23:53:26 +00:00
Simon Michael
0f664057d7
web: fix this dev build warning without breaking prod
2012-11-23 20:49:53 +00:00
Simon Michael
6cf883bcc3
web: fix build error
2012-11-21 17:39:31 +00:00
Simon Michael
ad88df99fa
refactor: try to organise handler support code better
2012-11-20 02:51:38 +00:00
Simon Michael
26a37bf3df
web: quick fix for "Prelude.read: no parse" errors with GHC >= 7.6
2012-11-24 15:13:14 +00:00
Simon Michael
81354fb492
web: split handlers into multiple files
2012-11-20 02:23:23 +00:00
Simon Michael
64180b18ef
refactor: clarify that price amounts have only a single commodity
2012-11-19 23:17:55 +00:00
Simon Michael
5a534f1c73
web: fix after refactor
2012-11-19 21:47:47 +00:00
Simon Michael
cfbd8bb956
web: update for yesod 1.1.3
...
Build with latest yesod. Also reorganise to conform more closely with
yesod's standard scaffold layout to reduce upgrade effort.
2012-11-15 17:48:48 +00:00