Commit Graph

11 Commits (master)

Author SHA1 Message Date
PJ Hampton ee9d459966 Tips: Add interactivity (#4155)
* initial commit.

* Fixed NaN issue with bill amount.

* Finish up tips.

* Fixed markup.

* Remove mathjs as dep

* Finishing touches...

* Tweak design.

* Add class

* Add simplified css

* overhaul ui

* Add total per person.

* Add secondary text

* Update input class.

* Add further bindings.

* Removed rouge file.
2017-06-23 17:12:52 -04:00
rgaul 42ec08c3ff Remove print 2016-06-11 15:14:19 +00:00
rgaul fc5c0feeed Fixup tests 2016-06-11 15:13:37 +00:00
rgaul 4731a97c0d Trigger calculations off of 'tax' and some cleanup 2016-06-09 01:58:45 +00:00
Ben Moon 83b9bbd6b7 Fix newline at end of file 2016-05-16 14:19:39 +01:00
Ben Moon 5f85cf4121 Update Goodies to use Test::Deep
* Ensure Test::Deep is imported.

* Replace '-ANY-' with ignore()

* Replace regexes with re(...)
2016-05-16 14:07:57 +01:00
Matt Miller 2eb74fd3d2 Tips: use as more general percentage calculator.
The guts were already here, just made them all work properly.

- Greatly expand triggering and allow guard to kick back false
  positives
- Use NumberStyler to handle and "make pretty" a variety of number
  formats
- Use named captures to make things easier to follow.

Fixes #690.
2014-10-16 13:59:13 +02:00
Matt Miller 68fc7c8dec Set explicit caching everywhere.
This explicity sets the caching behavior for all goodies. Goodies which
did not have caching behavior set in their package have had it added.
Similarly for the tests.

This resulted in a number of changes for caching behavior, mostly
moving towards more frequent caching.

I identified three cases where goodies should not be cached. They are when
the result depends upon:

- some random element,
- the time of day or year (as with relative dates), or
- the location of the requesting user

In all other cases, I presumed that the goodies were sufficiently
deterministic in their output to warrant caching.
2014-09-27 10:35:17 -04:00
Eric Johnson 9c29b27338 Added tests for example queries which are not currently tested.
Conflicts:

	t/TimezoneConverter.t
2014-02-10 21:36:14 +00:00
Dylan Lloyd 88a05a3781 added semicolon to tips results 2012-10-01 14:24:27 -04:00
Dylan Lloyd 1348a5c1ee added tests for tips goodie 2012-09-29 19:25:23 -04:00