Skip to content

Conversation

@kocielnik
Copy link
Contributor

@kocielnik kocielnik commented Sep 17, 2025

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 kocielnik changed the title Allow for custom growth rate in API Draft: Allow for custom growth rate in API Sep 17, 2025
@kocielnik kocielnik changed the title Draft: Allow for custom growth rate in API Allow for custom growth rate in API and Web UI Oct 17, 2025
placeholder="Ticker Symbol"
maxlength=8/>
</div>
<div class="col-md-2 nopadding">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found I couldn't submit the form while focus was on this field. It worked all right while focus was on the Ticker field, and on the "Analyze" button. @mrhappyasthma, any tips on how to fix that? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried including \n in the RegEx in the script below. Didn't help.

Also:

* Retry automatically twice on external API error.
* Migrate project config from Poetry to UV. I've found UV to be more
  reliable, and generally faster than Poetry.
@kocielnik
Copy link
Contributor Author

@mrhappyasthma LMKWYT:)

@kocielnik
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant