Commit Graph

677 Commits

Author SHA1 Message Date
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
50577588d0 web: upgrade flot to 0.8.3 2014-07-17 16:51:49 -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
927e7593fa web: cleanups 2014-07-17 15:05:39 -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
c27ea12b66 web: upgrade bootstrap to 3.2 2014-07-14 14:28:20 -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
7d984fb2e4 tools: fancy .ghci for hledger-web
Some configuration for running hledger-web in ghci, and misc. utilities
including hlint/hoogle/hayoo and a not-yet-working yesod devel-like
reloader from a recent reddit thread. (If enabling these, also uncomment
the required libs in hledger-web.cabal). Although it's not yet
automated, we can now test hledger-web changes without relinking:

>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
Press ctrl-c to quit
  C-c C-cInterrupted.
>>> :r
Ok, modules loaded: Settings, Main, Hledger.Web.Main, Application, Hledger.Web.Options, Settings.Development, Import, Handler.RootR, Handler.JournalR, Handler.RegisterR, Handler.SidebarR, Handler.Common, Handler.Utils, Foundation, Settings.StaticFiles, Handler.Post.
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
2014-07-06 10:38:41 -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
3b30837a23 web: allow warp 3*, wai-handler-launch 3* 2014-06-21 20:36:46 -07:00
Simon Michael
4f0b4ea36c web: add missing hs & js files 2014-06-14 14:33:11 -07:00
Simon Michael
09ec9b2f90 web: help tweaks 2014-06-13 00:39:15 +01:00
Simon Michael
71bd9f4110 web: changelog 2014-06-13 00:19:18 +01:00
Simon Michael
b25563b59f web: fix manual link 2014-06-13 00:19:12 +01: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
34f4800e82 Revert "remove Setup.hs files again, fixing a yesod devel warning"
Setup.hs are required by the Hydra buildbot.

This reverts commit 97ab3db8f0.
2014-05-24 13:39:09 -07: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
3ff7fe7f1b web: more static file cleanups 2014-05-23 10:20:20 -07:00
Simon Michael
13bc4d58ec web: update static files in cabal file 2014-05-23 09:46:11 -07:00
Simon Michael
6ecb2b9882 web: style.css -> hledger.css 2014-05-23 09:45:55 -07:00
Simon Michael
eea10d4420 web: upgrade jquery to 2.1.1 2014-05-23 09:34:32 -07:00
Simon Michael
bc8e4ef91e web: upgrade bootstrap to 3.1.1
This nicely fixes the too-narrow page layout.
2014-05-23 09:32:29 -07:00
Simon Michael
97ab3db8f0 remove Setup.hs files again, fixing a yesod devel warning
These were removed and re-added in 2011 because "hackage needed them".
Let's try again.
2014-05-23 09:04:00 -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
3ee0b5f29b web: fix account "only" hover links 2014-05-23 08:39:22 -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
Simon Michael
6b059aeb5e Merge branch 'rdesfo-0.23'
Conflicts:
	.version
	hledger-lib/Hledger/Read/CsvReader.hs
	hledger-lib/hledger-lib.cabal
	hledger-web/hledger-web.cabal
	hledger/hledger.cabal
2014-05-22 16:15:35 -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
2bba4dbe3c update changelogs 2014-05-08 14:35:20 -07:00
Simon Michael
3113e09a62 bump version to 0.23.2 2014-05-08 14:32:29 -07:00
Simon Michael
6d93fe15d3 update changelogs 2014-05-08 14:32:06 -07:00
Simon Michael
4b1714a9e0 bump version to 0.23.1 2014-05-07 16:44:44 -07:00
Simon Michael
41add3ffeb oh fine still cant do that, bump to 0.23.98 2014-05-03 17:18:12 -07:00
Simon Michael
87f1e83d78 bump version to 0.24dev 2014-05-03 15:51:57 -07:00
Simon Michael
07a82724ed lib, cli, web: change from "beta" to "stable"
Also add the hackage Console category to the first two.
2014-05-01 08:20:05 -07:00
Simon Michael
1eeedfe551 bump versions to 0.23 2014-05-01 08:17:17 -07:00
Simon Michael
524bfe73c6 final changelogs 2014-05-01 08:14:36 -07:00
Simon Michael
e6a1339370 cli: options help polish 2014-05-01 07:22:44 -07:00
Simon Michael
3fb5e25fd4 web: rename --static-root to --file-url 2014-04-30 08:48:23 -07:00
Simon Michael
a33dc3a124 web: build with the default -O, not -O2
Building hledger-web is taking more than half a gigabyte here.
Building with -O2 is generally considered to eat more memory.
and be less robust than -O, and seems unnecessary for hledger-web.
2014-04-29 09:56:05 -07:00
Simon Michael
7d579adb0e changelog updates 2014-04-28 00:55:14 -07:00
Simon Michael
d46b290287 update tested-withs 2014-04-19 12:16:14 -07:00
Simon Michael
499cf41b03 hledger, web: allow shakespeare 2.* 2014-04-19 12:15:20 -07:00
Simon Michael
f94d784f48 changelog updates from release branch
give hledger-lib a changelog, update changelogs

(cherry picked from commit a67cee4e5f9e3dc09be86e7bc0e8fd77168a5070)

Conflicts:
	hledger/CHANGES

update changelogs

(cherry picked from commit ef053a42523ff2d57921837896b9ccc0a260cc27)

web: changelog

(cherry picked from commit 105c1d01429680a4e8a11a8c4be06f4ceca4329e)

web: changelog

(cherry picked from commit 3d42c123be7dd51be6586549f1f057052cc6fff9)
2014-04-17 12:36:00 -07:00
Simon Michael
a9c83f0ce1 web: add Peter Simons' patch fixing Data.Conduit.Network HostIPv4 error (#171)
(cherry picked from commit 993cae3a74eaa42b720fe51744e5459fd5a4eaa9)

Conflicts:
	hledger-web/Hledger/Web/Main.hs
2014-04-17 12:35:42 -07:00
Simon Michael
53b801f033 changelog
(cherry picked from commit 033586dd526012252df8b26ab3515d12ab8d228f)
2014-04-15 16:56:28 -07:00
Simon Michael
8454299666 web: allow http-client 0.3.*, fixing cabal install again 2014-04-14 21:24:59 -07:00
Simon Michael
b3ab814478 docs typo 2014-04-08 16:00:41 -07:00
Simon Michael
ec42b8d9ee move towards per-package changelogs, clarify doc/RELNOTES.md status 2014-04-08 15:52:37 -07:00
Simon Michael
7d36789b74 web: fix build failures caught by the bot 2014-03-19 08:45:52 -07:00
Simon Michael
637c0a4a17 web: allow warp 2.1 2014-03-14 11:29:57 -07:00
Simon Michael
97e3f852a1 bump version to 0.22.98 aka 0.23 alpha 2014-03-04 11:17:56 -08:00
Simon Michael
5da1e4c71c web: changelog 2014-02-10 13:44:04 -08:00
Simon Michael
7443c8bf4b web: bump version to 0.22.4 2014-02-10 13:43:54 -08:00
Simon Michael
0ce919fdc4 web: update tested-with 2014-02-10 13:43:36 -08:00
Simon Michael
d9370d72d8 web: include the right unminified version of jquery.url.js (1.1) to avoid js breakage 2014-02-10 13:42:12 -08:00
Simon Michael
94add086b2 web: changelog 2014-02-10 13:14:06 -08:00
Simon Michael
3c4cdcb2aa web: bump version to 0.22.3 2014-02-10 13:13:15 -08:00
Simon Michael
e846e8bb54 web: fix version number reported by --version 2014-02-10 13:12:56 -08:00
Simon Michael
1a5ebab34b web: bump version to 0.22.2 2014-02-10 12:47:16 -08:00
Simon Michael
93d3718b9c web: start a hackage-compatible change log for the hledger-web package 2014-02-10 12:47:00 -08:00
Simon Michael
b0b9e56a9d web: include unminified source of all javascript, to help packagers (fixes #161) 2014-02-10 12:43:37 -08: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
0a3a3c6472 web: allow blaze-html 0.7 (closes #159) 2014-01-27 09:06:51 -08:00
Simon Michael
2160941c86 Merge branch 'release-0.22.1'
Conflicts:
	NEWS.md
	hledger-lib/hledger-lib.cabal
2014-01-08 15:34:20 -08:00
Simon Michael
2ec6231a51 bump version to 0.22.1 2014-01-08 15:01:45 -08:00
Xinruo Sun
0275485bf9 web: add a --static-root option to customize static files root 2013-12-15 12:20:07 +08:00
Simon Michael
8befcb8354 bump version to 0.22, update tested-with & doc building 2013-12-13 18:28:45 -08:00
Simon Michael
641dc5aa84 web: also build with http-conduit 2.x
http-client is now also required. Later we perhaps should switch to it
entirely and drop the http-conduit dependency.
2013-12-09 10:06:53 -08:00
Simon Michael
d8c987a1cd web: allow latest warp & wai-handler-launch 2013-12-09 07:32:40 -08:00
Simon Michael
02fea186a3 web: fix debug option breakage in Main 2013-12-08 19:48:51 -08:00
Simon Michael
926080310a web: avoid warp 2 for now to stay installable 2013-12-07 14:41:37 -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
a7c7fc1a43 web: fix too-loose yesod dependency, we require 1.2.* 2013-11-02 11:55:04 -07:00
Simon Michael
009c7e3f90 bump version to 0.22 alpha 2013-09-22 22:38:27 -07:00
Simon Michael
a66a715eeb command line options API updates, possibly fixing hledger-web build 2013-09-22 22:31:06 -07: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
c2cdead4ef web: remove another yesod-platform dependency 2013-07-10 08:23:32 -07:00
John Wiegley
a05e7a5a67 yesod-platform dependency is unnecessary 2013-06-24 15:42:12 -05:00
Simon Michael
318d36d712 bump version 2013-06-23 16:50:35 -07:00
Simon Michael
4eda6119f8 bump version to 0.21.2 2013-06-04 19:07:22 -07:00
Simon Michael
080eb866ec web: clean up language extensions a bit, make autoweb works again 2013-06-04 18:23:55 -07:00
Simon Michael
557419de8c bump version to 0.21.1 2013-06-03 23:18:30 -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
b6e256554d Merge branch 'master' of github.com:simonmichael/hledger 2013-06-01 15:58:37 -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
4041f5a553 bump version to 0.21 2013-06-01 15:58:06 -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
c744451dfa web: loosen "starting web browser" message for servers 2013-06-01 11:40:00 -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
4721bfce42 bump yesod-platform dependency to avoid a cabal install failure
cabal-install's default backtracking of 200 is insufficient to
install (eg) current hledger-web, yesod-platform 1.2 and HP. (It works
at 400). Requiring the latest yesod-platform seems to resolve the problem.
2013-05-29 22:24:52 -07:00
Simon Michael
19d55076a4 web: require yesod 1.2, cabal file cleanup 2013-05-14 15:36:44 -07:00
Simon Michael
4ff2635bf8 bump version to 0.20.98 (0.21 alpha) 2013-05-14 10:30:46 -07:00
Simon Michael
1db8920644 bump version to 0.20.0.1 2013-05-04 07:26:15 -07:00
Simon Michael
28a605ceb0 docs: update bug tracker and repository locations in cabal files 2013-05-03 06:46:23 -07:00
Simon Michael
9234923ed5 web: require at least version 1.1.7 of yesod-core to avoid a Foundation.hs build error 2013-05-03 06:36:48 -07:00
Simon Michael
b89168d1b0 bump version number 2013-05-01 12:46:37 -07:00
Simon Michael
8873ffbe77 web: fix auto-exit in local mode, clarify startup messages 2013-05-01 12:02:47 -07:00
Simon Michael
b06c96c04c web: be less verbose about web files source, mention it only in dev mode 2013-05-01 07:24:42 -07:00
Simon Michael
c9b6dd8819 web: --server flag re-enables long-running, request-logging mode; output cleanups 2013-05-01 07:23:59 -07:00
Simon Michael
0a47715b17 web: also launch a browser at startup; auto-terminate after 2m or on enter
We're now using the wai-handler-launch middleware. This injects a
script in each page that pings the server repeatedly, and terminates
the server if it gets no pings (ie there are no browser tabs
displaying the app) for two minutes. The server can also be easily
terminated at the console by pressing enter, yesod devel style.
2013-04-20 20:02:50 -07:00
Simon Michael
9148bd8e8c web: don't use wai-handler-launch with yesod devel 2013-04-20 19:57:19 -07:00
Simon Michael
0a77eba02e web: try using wai-launch-handler.. not working yet 2013-04-20 10:03:15 -07:00
Simon Michael
e252b43c0a web: remove left sidebar border, extend right border to height of sidebar content 2013-04-19 14:49:15 -07:00
Simon Michael
dc6998ea2a web: hide copyright boilerplate in dev build 2013-04-19 14:46:22 -07:00
Simon Michael
1a57dbb65c web: disable request logging in production builds, for now 2013-04-19 14:45:25 -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
a32b0513bd update tested-withs. hledger needs 7.2+, hledger-web needs 7.4+ for now 2013-04-19 12:26:05 -07:00
Simon Michael
fc39b4c25d the version bump was premature, revert so I can push
This reverts commit 1bc8b73159.
2013-04-19 11:54:26 -07:00
Simon Michael
dd956ea395 web: make cabal test pass 2013-04-19 11:50:41 -07:00
Simon Michael
030a03d9e3 Merge branch 'master' of github.com:simonmichael/hledger 2013-04-18 12:49:14 -07:00
Peter Simons
b7283759d6 hledger-web: allow building with blaze-html 0.6.x 2013-04-18 14:23:05 +02:00
Peter Simons
da8f4a1cb6 hledger-web: add missing Setup.hs file 2013-04-18 13:16:38 +02:00
Simon Michael
1bc8b73159 bump version 2013-04-17 17:20:59 -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
b878779c8a web: build with latest clientsession and http-conduit 2013-04-15 08:20:59 -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
Marko Kocic
2cd0a9c9c0 Switch to new yesod clientSessionBacked2 for better performance 2013-04-09 08:56:41 +00:00
Simon Michael
9ffd34687a web: avoid a fromJust error when running with yesod devel (not working yet) 2013-04-05 20:59:31 -07:00
Simon Michael
a33b42bbd9 update tested-with in cabal files 2013-02-25 19:50:49 +00:00
Simon Michael
345bc18182 web: 98: add missing template files to cabal file, again fixing cabal-dev & hackage builds (Eric Hetzner) 2013-01-24 17:07:21 +00:00
Simon Michael
caa0b27cb0 web: 97: add missing static files to cabal file fixing cabal-dev and hackage builds 2013-01-11 14:49:28 +00: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
c553103caf bump version 2012-11-27 23:53:16 +00:00
Simon Michael
3da5f3c0c6 web: use normalise, bootstrap, and widgets 2012-11-27 23:52:08 +00:00
Simon Michael
a44d30e6f1 web: serve a favicon (Yesod's) 2012-11-27 23:51:24 +00:00
Simon Michael
bd629e4853 web: tested with GHC 7.6 2012-11-27 05:31:31 +00:00
Simon Michael
7599ec2c84 web: allow latest shakespeare-js & yesod-form 2012-11-27 05:31:12 +00:00
Simon Michael
1d8fe29c4c docs: point to new repo location on darcs hub 2012-11-17 04:31:21 +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
ae74983436 web: build-depends cleanup 2012-11-24 15:35:09 +00:00
Simon Michael
3d8dbb9d35 web: depend on same yesod version in lib and exe 2012-11-21 17:41:11 +00:00
Simon Michael
7798744d60 should have released hledger-lib; bump all version numbers again 2012-11-24 16:01:19 +00:00
Simon Michael
d22be3ac30 bump hledger & hledger-web versions 2012-11-24 15:34:53 +00:00
Simon Michael
0e8eb92c23 web: bump hledger dependency, release notes 2012-11-17 03:49:29 +00:00
Simon Michael
3d33673b25 web: obey command-line query options at startup again 2012-11-15 17:53:10 +00:00
Simon Michael
2ed17f29e6 web: fix ghc/cabal warnings 2012-11-16 17:08:27 +00:00
Simon Michael
a39b8f652a web: add missing files to cabal 2012-11-16 17:08:54 +00:00
Simon Michael
42185474c0 web: tweak "embedded files" message 2012-11-17 01:23:05 +00:00
Simon Michael
695ff9a49e 91: don't require a ./config/ directory at hledger-web startup
As before, hledger-web writes a yesod session file in the current
directory at startup. It's now called ./.hledger-web_client_session_key.aes
2012-11-17 01:25:33 +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
Simon Michael
f441bbd946 web: add missing CPP pragma 2012-10-13 14:57:42 +00:00
Simon Michael
00f22819ae balance report speedup
This refactoring fixes an O(n^2) slowdown in the balance command with
large numbers of accounts. It's now speedy, and the implementation is
clearer. To facilitate this, the Account type now represents a tree of
accounts which can easily be traversed up or down (and/or flattened
into a list).

Benchmark on a 2010 macbook:

    +-------------------------------------------++--------------+------------+--------+
    |                                           || before:      | after:     |        |
    |                                           || hledger-0.18 | hledgeropt | ledger |
    +===========================================++==============+============+========+
    | -f data/100x100x10.journal     balance    ||         0.21 |       0.07 |   0.09 |
    | -f data/1000x1000x10.journal   balance    ||        10.13 |       0.47 |   0.62 |
    | -f data/1000x10000x10.journal  balance    ||        40.67 |       0.67 |   1.01 |
    | -f data/10000x1000x10.journal  balance    ||        15.01 |       3.22 |   2.36 |
    | -f data/10000x1000x10.journal  balance aa ||         4.77 |       4.40 |   2.33 |
    +-------------------------------------------++--------------+------------+--------+
2012-10-21 17:18:18 +00:00
Simon Michael
51a9f2a948 bump version 2012-10-21 20:20:35 +00:00
Simon Michael
f03b020e2f set version with CPP instead of cabal-file-th; make building more robust
hledger and hledger-web were reading their version number (and program
name) from their cabal files at compile time using cabal-file-th,
which allowed the version number be maintained in one place (per
package).

This meant you had to be in same directory as the cabal file when
building, which made life more complicated, eg emacs compilation mode
could not jump to errors. Also, it slowed down building slightly, and
is a factor in hledger Debian packages being unavailable on a number
of platforms (we also use TH for report templates).

Now, the build version is set with a CPP VERSION flag, which seems
simpler overall. For cabal builds, this needs to be configured
manually in a few more places in each cabal file. For makefile builds,
it is set it to the name of the most recent darcs tag (which should be
more useful than the old behaviour). If not set, it defaults to the
blank string, useful eg for haddock. And, all makefile builds now run
from the top directory.
2012-10-13 19:21:17 +00:00
Simon Michael
7fec954cbf support latest cmdargs, haskeline, split 2012-10-08 16:50:35 +00:00
Simon Michael
155cb0eafe web: fix compilation error with -fblaze_html_0_5 flag 2012-07-08 00:18:39 +00:00
Simon Michael
f8a9cce43d bump base lower bound to 4.3 to enforce GHC 7 requirement 2012-07-08 00:22:20 +00:00
Simon Michael
63973c3728 bump version to 0.18.2 2012-07-08 00:24:40 +00:00
Simon Michael
5e944374de web: don't auto-create a missing journal file at startup 2012-06-29 22:48:41 +00:00
Simon Michael
461f370db0 web: fix a cabal warning 2012-06-29 22:54:54 +00:00
Simon Michael
480e9a4080 web: cabal flag "blaze_html_0_5", off by default, uses the newer blaze-html 0.5 2012-06-29 23:07:19 +00:00
Simon Michael
6db9db0be1 bump version 2012-06-29 23:09:19 +00:00
Simon Michael
4b11890e02 web: fix a build error 2012-03-07 16:42:35 +00:00
Simon Michael
e8114f3ffb web: add missing language flag to hledger-web.hs 2012-03-30 19:24:43 +00:00
Simon Michael
28d86aca53 web: fix excess angle bracket in add form 2012-04-01 21:07:01 +00:00
Simon Michael
25b514b721 web: fix js error breaking second use of add form (#72) 2012-04-01 21:08:30 +00:00
Simon Michael
bb131f1b8c web: add closing angle brackets which yesod 1.0 requires 2012-04-01 20:30:44 +00:00
Simon Michael
296a4d1bb2 web: better hamlet override 2012-04-03 17:53:12 +00:00
Simon Michael
64b6316785 web: revert unintended hunk in Settings.hs 2012-04-03 17:43:49 +00:00
Simon Michael
acc5139c54 tools: makefile updates 2012-04-03 17:12:47 +00:00
Simon Michael
f298aac874 web: fix account balance rendering 2012-05-29 03:18:24 +00:00
Simon Michael
9184036fe8 require blaze-html < 0.5 to simplify that dep 2012-05-29 14:59:43 +00:00
Simon Michael
f35b961c86 web: update for yesod 1.0 2012-05-29 02:53:33 +00:00
Simon Michael
8f94ae3de4 web: yesod 0.10 now requires shakespeare-text 0.11, relax the upper bound on that 2012-03-28 15:43:32 +00:00
Simon Michael
98274b481d more build warnings 2012-05-06 20:44:23 +00:00
Simon Michael
88f69e12e2 fix Dates exports for hledger-web 2012-04-16 17:09:27 +00:00
Simon Michael
d0bf2667c2 bump version 2012-05-28 21:08:05 +00:00
Simon Michael
1f1a1eb16f bump version 2012-03-30 00:27:23 +00:00
Simon Michael
93dd7bd064 web: simplify ifdef 2012-05-29 16:43:13 +00:00
Simon Michael
b4514cc37d web: don't munge static file names in dev mode 2012-05-29 03:09:43 +00:00
Simon Michael
f6f615196f web: define our own hamlet so it can be tweaked for debugging 2012-04-01 20:49:36 +00:00
Simon Michael
cfa59cc4f8 web: Hledger.Web api cleanup, haddocks 2012-04-01 20:29:10 +00:00
Simon Michael
2912a11929 web: officially drop GHC 6.12 support, fix build warnings with 7.0, 7.2, 7.4 2012-03-29 23:24:48 +00:00
Simon Michael
7f3b990394 docs: fix api docs 2012-03-07 16:05:04 +00:00
Simon Michael
5b749ab8a2 web: work around static file problem by skipping etag parameter 2012-05-29 16:45:24 +00:00
Simon Michael
88212f26e8 simplify journal parser names 2012-05-09 15:34:05 +00:00
Simon Michael
c23d1793ae docs: clarify supported GHC versions 2012-03-29 22:09:54 +00:00
Simon Michael
e1b1b8bce8 rename Matcher to Query, simplify constructors 2012-05-16 07:12:49 +00:00
Simon Michael
0c73d91f94 web: fix static file embedding in non-dev builds 2012-03-09 18:52:31 +00:00
Simon Michael
a27eb7c29f more matcher -> query renaming 2012-05-16 07:37:24 +00:00
Simon Michael
c27707f578 web: bump version, upgrade to yesod 0.10 2012-03-05 07:52:36 +00:00
Simon Michael
8492f6cae4 fix unicode handling on GHC >= 7.2, unify utf8 IO compatibility layer
tests pass again from GHC 6.12.3 to 7.4.1
2012-03-29 19:06:31 +00:00
Simon Michael
51408e52ed web: make "yesod devel" work 2012-03-30 19:31:53 +00:00
Simon Michael
6eb7ad28e1 refactor/beef up readJournal/readJournalFile 2012-03-23 16:21:41 +00:00
Simon Michael
1165a9e634 set more upper bounds to fix cabal install issues with latest web packages 2012-03-03 19:01:32 +00:00
Simon Michael
f1da4912e8 web: we can use the main aeson package again 2012-01-02 13:17:44 +00:00
Simon Michael
48460b0130 fix missing chart regression (#72) 2012-01-03 13:00:28 +00:00
Simon Michael
03359b48d3 web: prevent flot js error which broke add form fields after adding a transaction (#72) 2012-01-03 12:14:22 +00:00
Simon Michael
7f60e3504c web: fix $ quoting 2012-01-03 10:46:39 +00:00
Simon Michael
fd22dde57b web: needed to escape literal dollar signs in hamlet templates 2012-01-02 13:19:12 +00:00
Simon Michael
015dacb0d7 web: add form should reject blank account names (#81) 2012-01-04 11:35:39 +00:00
Simon Michael
26ad00a659 support and require latest cmdargs 2012-01-05 18:25:15 +00:00
Simon Michael
3e3af47b96 bump cmdargs upper bound in other places 2012-01-03 11:00:35 +00:00
Simon Michael
0bd7fffaf7 web: dodge a yesod-core regression breaking add form redirect (#53) 2012-01-12 15:44:32 +00:00
Simon Michael
1b834afb20 web: avoid problematic redirect after submitting the add form 2012-01-03 12:43:30 +00:00
Simon Michael
0670fda22e web: allow template-haskell 2.6.0.0 2012-01-29 21:32:07 +00:00
Simon Michael
c686645fab refactor: update version number handling 2012-01-31 06:01:31 +00:00
Simon Michael
6b784c0e65 bump version 2012-02-02 05:37:02 +00:00
Simon Michael
9329873cef bump version to "0.17 alpha" 2012-01-31 05:18:18 +00:00
Simon Michael
62454b45ff update tested-with fields 2012-01-30 04:21:03 +00:00
Simon Michael
9040821e8d web: fix ghc 6.12 incompatibility in Settings.hs 2011-10-26 17:30:17 +00:00
Simon Michael
a954ecd9d6 bump version, relnotes for hledger-web bugfix 2011-10-26 17:31:34 +00:00
Simon Michael
db7f4d1b3d use cabal-file-th to get executable name and version from cabal files 2011-10-19 19:53:42 +00:00
Simon Michael
959d8a4591 web: clean up name clash with Yesod.Core 2011-10-19 19:57:12 +00:00
Simon Michael
0a5e85f5ef web: bump version & relnotes for a bugfix release 2011-10-24 17:50:32 +00:00
Simon Michael
ebf215d971 web: another fix for cabal builds, disable favicon.ico since it's not easily embeddable 2011-10-05 00:48:53 +00:00
Simon Michael
9347f3169d bump hledger-web version 2011-10-05 00:49:06 +00:00
Simon Michael
428ce79c82 web: more cabal extra-source-files fixes 2011-10-05 00:18:30 +00:00
Simon Michael
bcc616823d bump just hledger-web version 2011-10-05 00:28:18 +00:00
Simon Michael
5c07a465da web: simplify static path definitions 2011-10-04 22:44:39 +00:00
Simon Michael
c3b5bcb37b web: declare static files as extra-source-files for cabal (#63) 2011-10-04 22:45:45 +00:00
Simon Michael
e3e9c6b40a docs: note hledger-web build flags 2011-10-04 23:48:06 +00:00
Simon Michael
329cafae93 web: fewer build warnings in production mode, add a threaded flag for debian (#68) 2011-10-04 23:02:57 +00:00
Simon Michael
4fb325b92a bump version 2011-10-04 23:53:50 +00:00
Simon Michael
85cb11efbf web: don't bother running cli unit tests at startup 2011-09-12 23:38:21 +00:00
Simon Michael
7f91a97d19 fix yesod haddock breakage 2011-09-14 02:42:18 +00:00
Simon Michael
187a7a1cc7 web: obey at least some command-line options, like --cost
Report filtering options like --period, and filter pattern arguments, are still ignored.
2011-09-14 19:53:05 +00:00
Simon Michael
4ca655b6a0 web: follow yesod file naming more closely 2011-09-12 23:37:55 +00:00
Simon Michael
4c52dd5b76 web: production build now has all web content embedded, dev build uses ./static (#63) 2011-09-12 23:30:29 +00:00
Simon Michael
c7c67efc1c web: adjust --help to indicate command-line arguments are not expected
Arguments are still accepted and ignored, since I can't see how to disallow them with cmdargs
2011-09-14 22:53:29 +00:00
Simon Michael
f6e15a2a80 fix warning 2011-09-19 03:25:19 +00:00
Simon Michael
fda4085e80 clarification 2011-09-20 15:23:08 +00:00
Simon Michael
15c39ac6c9 web: prevent an infinite redirect when custom base url has a trailing slash 2011-09-20 15:23:55 +00:00
Simon Michael
85b2307e78 web: modify the default base url when a custom port is specified 2011-09-19 03:25:12 +00:00
Simon Michael
2b5bd268b9 web: hide old title and search form when adding/editing 2011-09-21 22:42:06 +00:00
Simon Michael
0311595d3b web: editform title 2011-09-21 22:42:15 +00:00
Simon Michael
6019c932fb web: ensure we get the fixed aeson-native to prevent NFData build error (#65) 2011-09-22 13:37:58 +00:00
Simon Michael
7bc67a7f00 web: update for yesod 0.9 2011-09-12 18:41:43 +00:00
Simon Michael
d4a3a8c3a0 web: do auto-create the journal for the web command
At add time would be better, but for at startup is easier
2011-09-23 14:07:50 +00:00
Simon Michael
6f0f1acf7e fix hledger-web build error 2011-09-27 16:29:43 +00:00
Simon Michael
9b2a5f56e1 only the add and web commands auto-create the journal file 2011-09-23 03:53:14 +00:00
Simon Michael
453750be43 web: the cabal build enables production mode (with embeded files) by default 2011-09-14 02:51:31 +00:00
Simon Michael
b0b1f7d733 bump version 2011-10-01 17:17:02 +00:00
Simon Michael
80afd4ae7a web: bump hledger-web version 2011-09-12 23:10:01 +00:00
Simon Michael
27e4fec943 web: fix some invalid html 2011-09-10 19:52:35 +00:00
Simon Michael
23200cdd87 web: fix journal edit form 2011-09-10 20:03:59 +00:00
Simon Michael
f37d7b5659 bump version 2011-09-12 22:52:24 +00:00
Simon Michael
c834f4a8af bump version for all but hledger-lib, due to hledger fix 2011-09-02 19:25:31 +00:00
Simon Michael
cda23bd533 web: add missing Hledger.Web.Options to cabal file 2011-09-02 17:13:47 +00:00
Simon Michael
3f333bf02b web: tighten up dependencies 2011-09-02 17:22:23 +00:00
Simon Michael
e3f5fdb196 bump version (hledger-web only) 2011-09-02 17:58:49 +00:00
Simon Michael
b6f2650fb0 updated tested-with 2011-05-29 04:50:47 +00:00
Simon Michael
1467357058 web: drop unused cabal data-dir/data-files 2011-05-29 16:51:14 +00:00
Simon Michael
1c3a5da1fa web: better settings for wai-handler-devel 2011-06-03 23:11:53 +00:00
Simon Michael
8a4c6ab5a1 web: alternate background color on journal view 2011-06-05 20:44:55 +00:00
Simon Michael
dfce1c48d2 web: don't let account names wrap in sidebar 2011-06-14 19:07:14 +00:00
Simon Michael
5106938b4b web: stay on add form; format errors/added transaction a little better 2011-06-14 21:12:24 +00:00
Simon Michael
ed3cdf377c web: let register account column be wider 2011-06-14 20:48:04 +00:00
Simon Michael
c8d8c02646 web: just a little padding after item totals 2011-06-13 21:22:11 +00:00
Simon Michael
6efe8fb30b web: indent accounts more than "all accounts" in sidebar 2011-06-14 21:32:01 +00:00
Simon Michael
9d00eeec23 haddock fix in EmbeddedFiles 2011-06-17 18:15:10 +00:00
Simon Michael
b352048948 web: soften day separators slightly 2011-06-24 01:25:01 +00:00
Simon Michael
a88449a031 web: tone down day/month borders slightly 2011-06-14 20:19:52 +00:00
Simon Michael
6452d0bb2e web: js refactor 2011-06-24 14:21:17 +00:00
Simon Michael
10592618ef web: fix ?edit=1 2011-06-05 19:54:36 +00:00
Simon Michael
77133de9c6 web: highlight on mouse over sidebar links, not table cells 2011-06-29 23:44:36 +00:00
Simon Michael
26486b4fc6 web: add missing dependency to cabal file 2011-07-01 00:33:47 +00:00
Simon Michael
8f487ae4be web: ensure basic black on white body color 2011-07-01 15:28:41 +00:00
Simon Michael
a62c51eff6 web: hide postings in a simpler way not requiring a special style 2011-07-17 16:00:34 +00:00
Simon Michael
613001a468 web: add a missing css class to balance report total 2011-07-17 16:01:14 +00:00
Clint Adams
5ead6d05b1 update to cmdargs 0.8 API
Between 0.7 and 0.8, modeArgs changed from

modeArgs :: Maybe (Arg a)

to

modeArgs :: ([Arg a], Maybe (Arg a))
2011-08-30 21:41:25 +00:00
Simon Michael
464d8d4bcb hledger now detects and runs hledger-* add-ons found in path; many options cleanups 2011-08-22 14:55:39 +00:00
Simon Michael
4104114d4e harmonise package descriptions, make them hackage-compliant 2011-09-02 00:28:27 +00:00
Simon Michael
9e056d573e Setup.hs is needed after all, by hackage 2011-09-02 00:29:50 +00:00
Simon Michael
5ce53abe6f remove all Setup.hs, cabal no longer needs them and helps haddock 2011-06-03 17:09:54 +00:00
Simon Michael
059825a9b2 optionsgeddon.. port to cmdargs and a fully modal cli 2011-08-15 22:50:09 +00:00
Simon Michael
774434fcf2 web: always show empty and boring accounts too 2011-06-14 19:39:49 +00:00
Simon Michael
2d3ac6f032 web: don't run tests when just creating support files 2011-06-14 19:48:52 +00:00
Simon Michael
2bdeb2bf6e web: run unit tests at startup.. it's handy for development, and why not 2011-06-13 21:44:38 +00:00
Simon Michael
95f461fc94 web: make view data a little easier to construct and customise 2011-07-17 16:03:23 +00:00
Simon Michael
cd0c945454 web: move code to Hledger.Web for importability, consistency 2011-08-05 23:55:57 +00:00
Simon Michael
d1447c984a web: support wai-handler-devel for auto-rebuilding
Eg: hledger-web$ wai-handler-devel 5001 AppRun withWaiHandlerDevelApp
2011-06-03 22:35:22 +00:00