You are browsing as a guest. Sign up (or log in) to start making projects!

2h 38m 19s logged

Small update on ReelTools. Added a search bar that filters by name, tag or
description in real time, and an edit button on each entry (before you could
only delete). Edit is a bit hacky: it loads the entry into the form and
deletes the old one, then when you hit Add it creates a new entry with the
changes. Felt cleaner than a full edit mode.

Hit a sneaky bug: editing the first entry kept deleting the last one. Took
me a while to figure out — turns out I was loading the data twice from
localStorage, which created different object instances, so indexOf returned
-1 and splice ate the last entry. Classic JS reference trap.

Search was tricky too because of the same issue — keeping the original index
when the list is filtered. Not touching the UI for now, ReelTools is done.
Moving on to the next project.

0
1

Comments 0

No comments yet. Be the first!