August 18, 2019

Video preview; Revising and refactoring modal ๐ŸŽฅ

Alan Montgomery @TheTechTeacher

So my night of planned backlog items and bugs for took a bit of a U-turn when I ventured down a rabbit hole with a few bugs I found. However, the resulting outcome is amazing ๐Ÿ”ฅ๐Ÿ’ช

As simplicity is key with my app, there's alot of functionality in behind the scenes to allow the powerful features to exist with a simplistic, user friendly UI in mind.

I ran into a few bugs which I had to iron out. As you'll see in the little sample video below of this screen, I allow the user to add sets through the incremental and decremental buttons, or by user input in the text box.

I render the set rows (reps and weight) based on objects in an array. So this is where the problem came in.

What I implemented;

if backspace in sets input, don't take it as an action, as it would be taken as a zero (0) and all rows would be removed. Instead, await the next input.
if the amount of sets entered is less than the amount of sets in the main array then 'pop' the difference out of the array.
if it's more then 'push' the difference into the array.
don't allow zeros (0) to be entered if the input value is 0.
Each action also updates the main sets array for the workout which triggers the re render.

I've also added a nice touch where the new row scrolls into view if it's out of view (longer than the max height property).

Check it out!

I'm so excited to release ๐Ÿ”ฅ๐Ÿ’ชโณ

Loading comments...
Today's Top Milestones
  • My side project got acquired ๐ŸŽ‰
    My side project Bannerium got acquired. **TL: DR;** * I got the lead from SaaS Place * I can't tell you the number, but it cov
  • $13k in Google Sheet Tutorials
    Better Sheets is nearing 700 members. WOW! at 690, that's over $13,000 in revenue. (not profit) It's getting hot in here. And that's a lot of customer
  • 1 year launch anniversary & $50K ARR milestone!
    August marks 1 year since launching Lunch Money on Show HN. Crazy to think that a year ago, no one really knew about Lunch Money and now I've hit $50k
  • First 10 Signups! has first 10 signups with 15 days of launch now. Having the experience and results of offline model - ha
  • #1 in germany ;)
    A slightly silly milestone, but the book seems to have caught on in Germany and spent a few weeks sitting at #1 in the english language education cate
  • Chrome Extension approved
    After several disapprovals Google approved the extension. Check it out at
  • Reworking the Newsletter
    I'm a little behind the curve on posting this update, but about a month back, I decided to rework [Forge the Future](https://forgethefuture.substack.c
  • ๐ŸŽ‰ Got 5 customers! - reminders to keep in touch with people. Monthly subscribers: 2 Yearly subscribers: 3 MRR: $15 Total Revenue: $91 Monthly active us
  • It was a shower thought idea
    I'm not a podcast guy. I'm not a youtube guy either. I'm not a recording guy. So, how did this happen? I'll tell you how it happened. I'm kicking myse
  • Added frequently asked feature.
    Keeping track of all feedbacks helps a lot in prioritizing development. No matter which feedback I get, I add it to my feature-for-development list an