IsThisStockGood icon indicating copy to clipboard operation
IsThisStockGood copied to clipboard

Allow for custom growth rate in API and Web UI

Open kocielnik opened this issue 4 months ago • 2 comments

Fetching the growth rate has been failing once every few months.

Proposing to add an input box, for the user to provide their own growth rate percentage to be used in case fetching other values fails.

Q&A:

If the user thinks the growth rate that was fetched from upstream is wrong, can they input their preferred value in the box and see it used in the calculations?

No, this issue is strictly about opening a way for the user to make the Sticker Price calculations work regardless of the failing API calls.

We can discuss this scenario in the future.

What happens if I input "foo" in the new box?

JavaScript will push back at you, disallowing explicit typing of non-numeric characters. If you force the form to accept your invalid input, the server will fail internally, because we cast whatever you provide to an int.

kocielnik avatar Sep 17 '25 12:09 kocielnik

@mrhappyasthma LMKWYT:)

kocielnik avatar Oct 22 '25 20:10 kocielnik

Up-to-date preview: https://isthisstockgood.vercel.app/

kocielnik avatar Oct 22 '25 20:10 kocielnik