Commit Graph

114 Commits (ea597d47617acd30b15d97c880f72f03f0bd9c10)
 

Author SHA1 Message Date
Ryan Carbotte ea597d4761 feat: Updated the website favicon and PWA icon
Credit to @ErinPeril for the icon work!

Closes #71
4 years ago
Mike Bryant 42509c4c09
Merge pull request #113 from peter50216/fix-peak-start
Fix peak_start not defined
4 years ago
Pi-Hsun Shih b653b3993c Fix peak_start not defined
Fix #110.
4 years ago
Mike Bryant 8f49882245 Revert "Make probability accurate by condition probability on the value."
This reverts commit 3fa1867340.
4 years ago
Mike Bryant a5194879d0 Revert "Fix a wrong comment."
This reverts commit 8c43570c9a.
4 years ago
Mike Bryant c615df9397
Merge pull request #105 from peter50216/fix-accurate-prob
Accurate probability.
4 years ago
Pi-Hsun Shih 8c43570c9a Fix a wrong comment. 4 years ago
Pi-Hsun Shih 3fa1867340 Make probability accurate by condition probability on the value.
Tested that the result is same as the "should report" in #95.

Fix #48, #95.
4 years ago
Pi-Hsun Shih 28e73937bc Refactor and move common parts out. 4 years ago
Mike Bryant 0634b5e64c
Merge pull request #106 from mikebryant/fudge-factor
fix: Add a fudge factor
4 years ago
Mike Bryant 6cfc140173 fix: Add a fudge factor
The reversed code isn't a perfect match for ARM 32-bit floating point assembly. This should allow us to cope with things that are a little out of range due to floating point weirdness
4 years ago
Mike Bryant 46929bd556 fix: Use min for guaranteed minimum
Should be, max of mins for each pattern, then min of those
4 years ago
Mike Bryant f8319bb348
Merge pull request #104 from mikebryant/chart
feat: Add chart visual
4 years ago
Mike Bryant 89dfc6ce6e feat: Add chart visual 4 years ago
Mike Bryant 21cb1a0ed2 fix: Make guaranteed minimum correct for all patterns, and fix sorting
Fixes #98

Fixes #76
4 years ago
Mike Bryant 10f9b3a755
Merge pull request #58 from Molorius/master
Added parameters first-time and previous-pattern.
4 years ago
Mike Bryant da1d75ba51
Merge pull request #102 from peter50216/patch-2
Update rate range to match intceil
4 years ago
Mike Bryant 53c98b84c3
Merge pull request #103 from peter50216/patch-3
Change prediction of rate to consider not only the previous known value
4 years ago
Peter Shih 7d1f46fe8c
Change prediction of rate to consider not only the previous known value
This also makes the predicted range more strict, so won't help with all those invalid pattern issues, but should give an more accurate result.
4 years ago
Peter Shih a41f2d5975
Update rate range to match intceil
I doubt this would change any prediction at all, but this is more correct according to the code.
4 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.
4 years ago
Mike Bryant af774022a0
Merge pull request #93 from theRTC204/switch-to-intceil
feat: Implements a more true to game code intceil calculation
4 years ago
Ryan Carbotte 0d9e0d8f8d feat: Implements a more true to game code intceil calculation
This replaces all instances of Math.floor() and Math.ceil() with a
calculation that more closely matches the C++ implementation in game.
4 years ago
Mike Bryant b6c92ea82f
Merge pull request #56 from HarryPeach/master
Progressive Web App support
4 years ago
Mike Bryant 8745b42b1a
Merge pull request #91 from theRTC204/fix-remove-debug-statement
fix: Removed a debug statement left behind
4 years ago
Ryan Carbotte 4a711fde74 fix: Removed a debug statement left behind 4 years ago
Mike Bryant baff942960 docs: Add some notes on scope 4 years ago
Harry Peach 34e0bbcaa5 Added extra precached files 4 years ago
Harry Peach 1c65137cb6 Added icons for the PWA 4 years ago
Harry Peach a50ad6a332 Removed netlify leftover files 4 years ago
Harry Peach 8791c5fa92 Added basic service-worker support 4 years ago
Mike Bryant 302218de57
Merge pull request #84 from theRTC204/master
feat: Add dynamic list of contributors
4 years ago
Mike Bryant 4d5a245fd0
Merge pull request #78 from timplunkett/patch-3
Clarify price should be from your island
4 years ago
Ryan Carbotte e20e884611 fix: Changed to use HTML URL for contributor link 4 years ago
Ryan Carbotte c2559fedbf feat: Add dynamic list of contributors 4 years ago
Trevor Welch c4c2ff7cd1 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.

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.

Added Probabilities

Chart will now also display % chance of that pattern.

Fixed added lines
4 years ago
Tim Plunkett fb1cb3476a
Clarify price should be from your island 4 years ago
Mike Bryant 42c3fdd2a3
Merge pull request #67 from kantenkugel/patch-1
Change reset Button to type button
4 years ago
Mike Bryant f8cf8058a5
Merge pull request #64 from phoenix-meadowlark/patch-1
Provides consistent cross-browser sorting behavior.
4 years ago
Michael Ritter 0af21f93fc
Change reset Button to type button
This avoids being able to accidentally reset the form by pressing enter in one of the input fields

Solves https://github.com/mikebryant/ac-nh-turnip-prices/issues/62
4 years ago
Phoenix Meadowlark 927480748c
Update to provide consistent cross-browser behavior.
Changes the sorting in `generate_possibilities` to have the intended effect. The old version worked on firefox, but did not sort the list on chrome because `a.weekMax < b.weekMax` does not return `-1` if `a.weekMax > b.weekMax`.
4 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
4 years ago
Mike Bryant 8afadbddeb
Merge pull request #53 from theRTC204/improve-data-table-usability
fix: Improved data table visibility on different devices
4 years ago
Mike Bryant 13cb859406
Merge pull request #52 from theRTC204/minor-visual-tweaks
fix: Reduced overall element size throughout UI
4 years ago
Ryan Carbotte d0e1ded041 fix: Improved data table visibility on different devices
This change introduces new behavior for the data table.

If the device supports a fine pointer (mouse or touchpad) and a screen
width that is less than 1400px, we will set a max height on the table
allowing the horizontal scroll bar to be easily accessable.

If the device supports a coarse input (touch) we will not set a max
height on the table, because horizontal scrolling is a simple swipe.

If the device has a screen that is wider than 1400px we will not set a
max height on the table, as there would not be a horizontal scroll bar.
4 years ago
Ryan Carbotte 73cab71e6e fix: Reduced overall element size throughout UI 4 years ago
Mike Bryant e40f944c2e fix: Fix reset button 4 years ago
Mike Bryant d048472a7d
Merge pull request #45 from tylermatchett/dynamic-querystring
Readable dynamic length querystrings
4 years ago
Mike Bryant c36fefedbb
Merge pull request #50 from mikebryant/rebase-34
Rebasing #34
4 years ago
Mike Bryant b10358f13e fix: Retain compatibility with previous stored data 4 years ago