Commit Graph

64 Commits (f8a223ad533c02267c7ada23062b80a33acffe37)

Author SHA1 Message Date
Chris Chambers 6d61156e8c feat: Use predicted buy price for styling if none is entered 5 years ago
Mike Bryant 8e8c80b491 fix: Allow people to input the buy price even as a first time buyer
This will give us a basis for colouring. Also remove the Sunday prices from the table, to avoid confusion and questions when people ask why the Sunday price is different to the one they put in. This has the added bonus of making the table smaller, and doesn't really remove any relevant information for the future.

Fixes #288
5 years ago
Mike Bryant ea5b0fa5da fix: Decrease precision for tiny numbers
When the numbers are so small then end up in e notation is pushes
everything too far to the right. Give up when it's too small to be
really useful.
5 years ago
Rex Tsou df8c260e24 fix: prevent variable being declared globally
Fixes #238
5 years ago
Lawrence Luk c36290d83a calculate pretty pastel colours based on potential profit 5 years ago
Lawrence Luk e16aba23ed Merge branch 'master' of https://github.com/mikebryant/ac-nh-turnip-prices into mikebryant-master 5 years ago
Mike Bryant 725bba5ec9 refactor: Move Predictor into class 5 years ago
Lawrence Luk 5bdf9668f9 merge from master 5 years ago
Mike Bryant 4c2f738a6b feat: Allow for row probabilities
Also change to use number not description, to work with translations
5 years ago
Nathan Abel 2218c10d77 Squashed commit of the following:
commit 4d46f7cfbda7d1818c5c07d22dce160fc5893ff4
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Wed Apr 15 12:43:30 2020 -0400

    Delete launch.json

    This is a vscode config file. I forgot to remove it :)

commit 96341d0030224d612fbd9bd20ca7c82405f817a9
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Wed Apr 15 12:40:15 2020 -0400

    Handle Missing Patterns

commit 7d995d5695861f81b1500ea63cbd0233530c9dea
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Wed Apr 15 12:27:29 2020 -0400

    Line break added

commit a0b5f13db7504e2d3793cab7527b84cbe2b192c4
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Wed Apr 15 12:25:33 2020 -0400

    Merge results into one col

commit 6576eb1a55cdb978aca73cb16547fd87a41477c2
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Wed Apr 15 12:13:44 2020 -0400

    Fix Sorting and Add Category Row

commit c9b257cf6f7487c271be5d3801399cc7cd92e67b
Merge: 511ef3c 8f49882
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Wed Apr 15 12:11:04 2020 -0400

    Merge branch 'master' of https://github.com/mikebryant/ac-nh-turnip-prices into category_total_chance

commit 511ef3caad223a4da0cd7f6ce4e68c5d108cbadd
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Mon Apr 13 11:49:58 2020 -0400

    Fix it better :)

commit fcb0429fa1711534ffe875b94fddfb54c33a75df
Author: Nathan Abel <abel8706@kettering.edu>
Date:   Mon Apr 13 11:42:45 2020 -0400

    Fix sort function
5 years ago
Mike Bryant f6afb113ee fix: Move input trigger out of local storage block, so it still loads the UI even if we have no storage
Fixes #161
5 years ago
Marcel Deglau 2ba5ce0185 Added i18n keys to source code 5 years ago
Mike Bryant 46f994c0ff feat: Taking a first stab at implementing translations 5 years ago
Mike Bryant 9aeb53c261
Merge pull request #130 from theRTC204/confirm-reset-fields
feat: Added confirm on reset all fields
5 years ago
Ryan Carbotte f89039454b feat: Add a flash message on permalink copy 5 years ago
Ryan Carbotte a3dc3d53c7 feat: Added button to generate a permalink
Added a button to the UI near the Reset fields button and generate a URL that only contains the populated fields

Closes #108
5 years ago
Ryan Carbotte 90fb28b212 feat: Added confirm on reset all fields
Closes #119
5 years ago
Lawrence Luk 54f2dc83f3 Adjust price brackets 5 years ago
Lawrence Luk b43ed3d15f Added color coding for ranges in display table 5 years ago
Lawrence Luk 79370b923f Added color coding for ranges in display table 5 years ago
Mike Bryant 89dfc6ce6e feat: Add chart visual 5 years ago
Blake Felt a893a5617b Removed UI notification when query is used.
A console log shows instead.

Cleaned up getPreviousFromQuery.
It now returns null when the "prices" parameter is not used.

Fixed getPreviousFromLocalStorage to only look at local storage.

Changed from_query to populated_from_query to be more descriptive.
5 years ago
Blake Felt a62a86235c Added parameters first-time and previous-pattern.
Added text box to notify that values will not be saved.

Valid first-time options are:
yes/true/1
no/false/0.

Valid first-time options are:
0/fluctuating
1/large-spike
2/decreasing
3/small-spike
anything else defaults to unknown.

Test with:
https://turnipprophet.io/?pattern=large-spike&prices=90.91..93.94..&first=true
5 years ago
Mike Bryant e40f944c2e fix: Fix reset button 5 years ago
Mike Bryant d048472a7d
Merge pull request #45 from tylermatchett/dynamic-querystring
Readable dynamic length querystrings
5 years ago
Mike Bryant b10358f13e fix: Retain compatibility with previous stored data 5 years ago
Mike Bryant 54b8458a5f Squashed commit of the following:
commit efffda8fc2ae9ebf5df051c33159fc4334075470
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 19:03:49 2020 -0400

    Fixed Reset Button

    Fingers crossed on last commit

commit ff6b739533c20e1eb3f4942b06def9fdfcf58548
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:49:54 2020 -0400

    Copy Update + Radio Button Fix

    Changed the copy under "First-Time Buyer" and made the selected radio button a solid fill rather than only coloring the text.

commit 95887a68b671dcf231e4e7aea6710bfe4e2eae29
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:31:18 2020 -0400

    Removed a Console Log

commit 84f1ef8b96730818903aaa0e12ab12be642f8bd1
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:27:03 2020 -0400

    Added Probabilities

    Chart will now also display % chance of that pattern.

commit d047d7749ca2809165068fe3f787c83ffba8b45e
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:08:35 2020 -0400

    Added "First Buy" and "Previous Pattern"

    All CSS needed for these fields have also been included, as well as some Javascript updated to reflect the new radios.

commit 95b60e1458df72c86cf91c2017cb8208e0829d9b
Merge: 1d6046b be09f8e
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 13:51:53 2020 -0400

    Merge branch 'front-end'

commit be09f8e6085dccf90683c819a3deec44852a54b1
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 13:51:43 2020 -0400

    Requested changes

    This commit adds changes as requested in https://github.com/mikebryant/ac-nh-turnip-prices/pull/34

commit 1d6046bfe283e6a779e2e2f49edd12b6fdf128bd
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:34:12 2020 -0400

    typo

commit a414b8fdc22aaad82265d502601c0d2a67050f5d
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:22:36 2020 -0400

    Update scripts.js

commit fbc3878d831e0f9abeb2de40337dedb8ee20f794
Merge: d521944 3cad0d4
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:18:57 2020 -0400

    Merge branch 'master' of https://github.com/Trevor-Welch/ac-nh-turnip-prices

commit d521944eae82eeb0644b13ffa75a23ec3d2f52ef
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:15:37 2020 -0400

    Massive UI Rework

    This commit completely changes the UI of the app, giving it a more Animal Crossing touch and make it feel like an app on the Nook Phone.

commit 3cad0d4f2a127ba46e946a9b0bebfc1cfb7001f2
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Mon Apr 6 20:43:38 2020 -0400

    Refactored scripts.js

    Scripts.JS was very hard to read initially.

    This commity cleans things up, abstracts functions, and makes it a bit more easier to read.
5 years ago
Tyler Matchett dbb9882553 Readable dynamic length querystrings
This adjusts the current querystring read to allow for shorter, more readable querystrings
5 years ago
Mike Bryant f30e1e751e Remove minimum, rename other field to guaranteed minimum 5 years ago
jtplatt99 f4ab1be863 Add 'LeastMax' Parameter
Add additional logic to compute 'LeastMax', which represents the worst case scenario maximum price achievable during the week (assuming everything is sold on the correct day).
5 years ago
Lou Huang 63e6b1adec feat: display %chance of each pattern if known 5 years ago
Pi-Hsun Shih 976df77673 Undo one more unrelated change. 5 years ago
Pi-Hsun Shih 9c3299b4fb Undo more unrelated style change. 5 years ago
Pi-Hsun Shih 9aca6465c2 Undo unrelated style changes.
This should be done in another PR :P
5 years ago
Peter Shih fb7fbe55e3
Merge branch 'master' into upstream_master 5 years ago
Ryan Carbotte cb69d49113 feat: Add toggle for filtering results to first ever buy 5 years ago
Mike Bryant 91e428e563 More fixes 5 years ago
Mike Bryant 6470b39f84 fix: Fix UI issue 5 years ago
Trevor Welch ead6e51525 Refactored scripts.js
Scripts.JS was very hard to read initially.

This commity cleans things up, abstracts functions, and makes it a bit more easier to read.
5 years ago
Pi-Hsun Shih 88a8525382 Don't override localstorage when there's query string. 5 years ago
Pi-Hsun Shih 53fe5d69a2 Catch exception locally. 5 years ago
Pi-Hsun Shih adc538b3ff Change from hash to query string. 5 years ago
Pi-Hsun Shih 02d600e62d Add support to remember prices in hash parameter.
This makes linking to a particular price chart easier.
5 years ago
Ryan Carbotte bdf967afc3 feat: Added a fresh coat of paint from Materialize
Adds some visual styling based on Material Design language, using the Materialize library.
5 years ago
Mike Bryant 250da34d74 refactor: Move predictions logic to a separate file
Fixes #6
5 years ago
Mike Bryant 4ab53128f0 fix: Properly implement small spike
Closes #8
5 years ago
Valerio Riva 840f684dee added week min and week max columns, sorted table by week max price
added css
5 years ago
Mike Bryant 0b599b368b Add min/max prices for each day 5 years ago
Mike Bryant d7976bd4fd fix: Predict higher prices in second day of spike if we know 5 years ago
Mike Bryant 4bcf881c40 Add experimental support for guessing the buy price 5 years ago