Kiwi Dev Journal Day 7 - Navbar

  • The navbar is functional but not yet animated. Code needs refactoring, but the basics are in place.
  • Dropped a “new post” button in the top right corner. Meh! This is where it always was in Kiwi. Not sure what I hate about it now. But yeah… that’s not staying. I’m thinking maybe the top right of the source-list? Is that weird?
  • Scroll position now saved between launches and after timeline updates. Learned some cool new ES6 tricks. You can use a MutationObserver on the document object. Then after each change you find when your object gets added, rendered, or whatever. Very useful for scroll position to determine when the timeline is actually laid out. Once everything is in place remember to remove the observer. observer.observe(document, { attributes: false, childList: true, characterData: false, subtree:true })
  • Did lots of work behind the scenes to fill out the navigation hierarchy. There are now independent nav stacks for each of the primary timelines. Each saves its own cache, scrolling state, etc.

Day 7

#dotblog #devjournal

What is this: these are random snippets from my dev journal working on a simple client app for fun. This is a non-serious side project, progresses very slowly, and will probably never see the light of day. The images may not perfectly correspond to the journal entry. In most cases I’ve added them later based on the relative time of git checkins.

isaiah @isaiah