Commit Graph

165 Commits (master)

Author SHA1 Message Date
Solomon Ucko a348cfaeef Fixed typo (#4686)
There should only be 1 "r" in "tera".
2019-01-29 14:16:10 -05:00
Brian Stoner f2a4bbb30d
update conversion length defaults to mile/kilometer 2018-10-01 09:38:06 -04:00
Rohit Upadhyay 9c5af71177 Fixes #4520, added gigapascal to pressure units to fix broken unit (#4522)
* fixed overtriggering in Game2048

* Added two more tests to help fix issue #4473

* Added regex guard in handle function to fix #4473.

* modified regex guard for #4473

* Added a test to t/Game2048.t

* Removed trailing comma.

* Conversions: Added Gigapascal to pressure units #4520

* Update Conversions.t

* Update Conversions.t

* Added test for Gbar for conversions goodie
2018-01-29 22:35:54 -05:00
Pratheev cbd6dad6c1 Conversions: JS error (#4551) (#4557)
* Conversions: JS error

* Conversions: JS error (#4551)

* Conversions: JS error (#4551)

* Conversions: JS error (#4551)
2017-12-26 21:18:25 -05:00
kRkk d6b03c53d5 Conversions: Fix #4523 (#4524)
* Fix #4523

* Add decimeter
2017-10-25 13:41:49 -04:00
PJ Hampton 39df16f326 Update floz definition. (#4492) 2017-09-20 17:01:26 -04:00
PJ Hampton 4783cdef4d Fix micro symbol issue. (#4484) 2017-09-11 16:35:26 -04:00
jc86035 687f7de9f2 Conversions: Add light years, astronomical units, parsecs (#4438)
* Update conversions.js

* Update conversions.js

* Update conversions.js

* Update conversions.js

* Update triggers.yml

* Update triggers.yml

* Add some tests for new units

* ce

* Update Conversions.t
2017-09-02 10:54:22 +01:00
PJ Hampton e31c2260f0 Add micron alias. (#4416) 2017-08-10 15:38:27 -04:00
PJ Hampton 27c5c308de Conversions: Add case sensitivity. Fix ambiguity collisions (#4406)
* Check in work.

* Fix casing ambiguity.

* Fix ambiguity selection.

* break out of outer loop.

* fix YAML
2017-08-08 16:37:13 -04:00
PJ Hampton d17dde90b6 Conversions: US locale defaulting (#4372)
* Add tests to drive development.

Check in work.

Fixed temp triggering ambiguity.

Add experimental conversions US default.

Update the tests.

* Update based on feedback.
2017-08-08 09:46:44 -04:00
PJ Hampton 003713f78a Conversions: Add DTR and Custom Digital Units (#4359)
* Add Data Transfer speed conversions.

* Add *bi digital units.

* Finish unit + user testing.
2017-07-18 12:08:02 -04:00
PJ Hampton 6307864f65 Conversions: Updates UI + Triggering (#4345)
* Fix floz + add n miles.

* Support fractions.

* Update conversions.

* Update based on feedback.
2017-07-13 07:51:16 -04:00
PJ Hampton 0fd68b0912 Conversions: Add expanded triggers. (#4328)
* Add expanded triggers.

* Update triggering / tests.

* Remove convert as a trigger.
2017-06-29 17:29:18 -04:00
PJ Hampton 6457fdeb33 Conversions: Add general triggers. Add aditional aliases. (#4327)
* Add general triggers. Added aditional aliases.

* Remove blocking legacy code.

* Add french word for converter.

* Add missing closing brackets
2017-06-28 11:25:58 -04:00
PJ Hampton e1fe0c8fc0 Add failing tests. (#4325)
Update triggering.

Update triggering scheme.
2017-06-28 09:41:51 -04:00
PJ Hampton 9de55b6dce Conversions: Long numbers instead of e notation. (#4326)
* Limit e notation.

* Use Math.max instead of ternary
2017-06-26 17:59:07 -04:00
PJ Hampton 799b7e8a8f Removed duplicate from lang triggers. (#4322) 2017-06-23 18:38:30 -04:00
PJ Hampton 7de983bec4 Conversions: Distinguish between Imperial/US units in volume (#4310)
* Fix Imp/US Gallons.

* Fix tbsp/tsp/cups (imp/us)
2017-06-20 16:35:48 -04:00
PJ Hampton 5daa945081 Add plural aliases (#4285)
Add speed generic trigs.

Update the natural language triggering scheme.

Update yml file. Remove dep

Reduce yaml file.

mint/mool refactor requests.

Update stuff.
2017-06-20 16:25:14 -04:00
PJ Hampton f4effd1f7d Workaround math.js erg def bug. (#4297) 2017-06-20 16:23:43 -04:00
PJ Hampton 4680490b7a reduced font-size (#4314) 2017-06-20 15:03:24 -04:00
Zaahir Moolla 1c867979c1 Conversions: Support single unit input, case-insensitive fallback check (#4261)
* Allow celcisu typo, updated tests accordingly

* Store regex captures in variables

* Allow single unit inputs through guard

* Pass through single unit input to frontend

* Explcitly match guard regex, better check for valid result

* Cleanup whitespace and indentation

* Lowercase symbols that are case-insensitive

* Fix and simplify guard regex

* Better handling of named captures, ensure left unit is not only match

* Case sensitive match first, fall back to lowercase match on symbol

* fix indentation

* remove redundant m on regex match

* Removed default if duplicate.
2017-06-15 15:51:24 +01:00
PJ Hampton 9b7556fbf0 Add speed base + units. (#4282) 2017-06-12 16:08:33 -04:00
Zaahir Moolla e9e378f3c3 Conversions: Allow "celcius" typo, updated tests (#4260)
* Allow celcisu typo, updated tests accordingly

* correct typo, move new tests below

* simplify celsius regex
2017-06-09 18:17:11 +02:00
Zaahir Moolla 6955f0fded prevent text from overlapping dropdown icon (#4258) 2017-06-09 16:57:52 +02:00
Zaahir Moolla 828b7b4cbb fix metric/imperial ton aliases (#4263) 2017-06-08 20:04:38 +02:00
PJ Hampton 8c5ac1d651 Conversions: Broaden Triggering (#4239)
* Add triggers to list.

* Remove smart match.

* Stash.

* Broaden triggering.

* Update test formatting.

* Revert "Update test formatting."

This reverts commit 390186743c07bffa5d57025e04926d2473a3ff2e.
Reverting because this creates big conflicts in the PR. We can address
the formatting later

* simply language trigger loading

* Add acronyms for teaspoon

* remove trailing spaces

* Add test for abbreviated teaspoon and tablespoon

* remove trailing spaces
2017-06-05 20:18:18 +02:00
Parth Mehta db13126409 Conversions Suggestion: (ANGLE) - Add Missing Units (#4224)
* added custom units for angle conversions

* added triggers for angle custom units

* added front-end tests for custom angle units

* Refactoring. Categorized queries by the quantity they represent

* minor update

* added trigger for the word - microarcseconds

* replaced exponent-based values with decimal-based ones

* Updated tests to use defined units

* added the missing commas

* removed duplicate e+12 from test spec
2017-06-03 15:35:10 +01:00
Zaahir Moolla c6e5e95641 Remove forced 100% width on select to allow custom dropwdown arrow (#4229) 2017-05-25 22:31:41 +01:00
PJ Hampton 07a5ba3e85 Add missing energy units. (#4223) 2017-05-24 18:06:25 -04:00
PJ Hampton afddef774c Conversions: (VOLUME) Merge Volumes / Update Triggering (#4193)
* Merged vol/liquid vol

* Added triggering for volume units.

* Added in imperial gallon name

* Fix yaml file.

* Fix triggers based on feedback.
2017-05-23 12:37:05 -04:00
PJ Hampton 4c789c0c85 Conversions: add 'deg' to temperature aliases (#4218)
* Add deg c/f to temperature aliases.

* Add aliases for c/f (temperature)
2017-05-22 15:08:03 -04:00
Yashhwanth Ram 03c20c1587 Conversions: Add pressure units (#4214)
* Add extra units for pressure conversion (#4178)

* Fix KPa to kPa and Kbar to kbar

* Fix Kbar to kbar in customUnits
2017-05-18 12:35:01 +01:00
Owen Hines 90df22ecb7 Conversions: Add more mass units (#4213)
* Added missing mass units. Commits from #4192

* Fixed duplicate declaration of customUnits array.

* Precision changes to pass tests.
2017-05-16 17:30:48 +01:00
Futtetennista 479aaa3f0e Conversions: Add missing units (POWER) (#4185)
* Add power custom unit and some tests

* Update triggering

* Fix spec

* Add missing comma

* Amend symbols

* Fix specs

* Fix kilowatt symbol

* Use unit value from yml file

* Amend units
2017-05-15 17:05:14 +01:00
PJ Hampton 1ce7de6bdb Add in missing duration units. (#4195) 2017-05-12 14:55:36 -04:00
Aditya Tandon 07d1553b1d Conversions: Adds missing units for Force conversion type (#4197)
* adds kilonewton unit to force type

* adds remaining units

* formats the file and  comma correction

* fixing the test

* fixing the test 2

* fixing the test part 3

* fixing the test part 4 perhaps the final one

* fixing the test part 4 surely the final one

* fixing the test part 4 definetly the final one
2017-05-12 14:20:43 -04:00
PJ Hampton aed0d1adde Conversions: Enable Frequency Conversions (#4194)
* Add in frequency units to UI.

* Add frequency support
2017-05-11 18:00:50 -04:00
PJ Hampton 422602d17a Add missing area units. (#4196) 2017-05-11 17:50:39 -04:00
Zaahir Moolla 973969fde9 Conversions: Use stacked input/select on desktop (#4184)
* Stacked layout on desktop as well, larger input font

* ceanup whitespace

* 80% width desktop
2017-05-09 21:13:01 +01:00
PJ Hampton 512d0c49e8 Conversions: Fixed spelling of cmH2O and Cups, Fixes FE-Tests (#4160)
* Fixed spelling of cmH2O

* Add working tests.

* Try jasmine-node.

* Added init package file.

* Install mathjs.

* Refactored custom units.

* Finish up tests.

* Update package.json.

* Fix cups spelling.
2017-05-05 15:18:03 -04:00
Zaahir Moolla d0ae4dd477 Flip top and bottom section, minor design tweaks
remove left padding to aling selection with search box
widen unit dropdown width to allow for long unit names
2017-05-03 15:05:50 -04:00
PJ Hampton 2e1fb271fb Removed mathjs import in node context. 2017-05-03 15:06:58 +01:00
PJ Hampton 7d29f94f78 Comment out math import. 2017-05-03 13:26:42 +01:00
PJ Hampton 5339c29f9e Add tests for custom units. 2017-05-03 13:09:41 +01:00
PJ Hampton f8f408af94 Add math for tests. 2017-05-02 23:24:36 +01:00
PJ Hampton 2cf2cfcc00 Order select keys alphabetically. 2017-05-02 22:48:51 +01:00
PJ Hampton c3388bb77a Checking in work. 2017-05-02 22:38:43 +01:00
PJ Hampton 8b59c5fb4a Update triggers. 2017-05-02 21:25:19 +01:00