Dev Diary 0005 - Week of October 30th

Job Related

This week ended up being a short week as well so I didn't quite get through my to-do list as I planned. But I still managed to straighten out the application permissions and role creation (which groups common permissions together). I wrote several more unit tests and started mapping out a QA test plan. My boss said one of the help desk employees will help out testing application so I want to make sure that testing is approachable and that we have a good way to track issues in Asana (the project management system my company uses).

General

Sick kids, sick husband, sick me. Though I avoided the head cold that was going through the rest of my family my wisdom tooth infection was pretty bad. So I got it removed on Thursday. Ouch.

Side Project - Lillihub

Besides playing Animal Crossing, I worked on my side project and updated it with a couple new things and all the changes I wrote about from last week

The biggest one I think people will like is side swiping images (when there are multiple) on small screens. I tried getting it to look good and work well on a large screen, but horizontal scrolling is just a difficult UI monster at that size without resorting to JavaScript. So I played it safe and only did the swipe on small screens. I'll continue to ponder how to make it work desktop users. 

In general, on the server using a DOM parser I check each post for multiple images. If I find multiple images I save a reference to that image (or the anchor element if the image is in an anchor tag) and then remove it from the DOM. Then I create a new div container with the css markup I need and append it to the bottom of the post, placing each image inside.

It isn't 100% perfect, if the underlying blog post had malformed HTML tags, or really small images... things can look a bit strange. But overall it works as I expected.

I did get rather frustrated trying to implement "last seen" functionality. I kept running into issues setting a cookie with a post id. I'm not sure if it's because I was doing it inside a GET request or if it's because I'm using chunked transfer encoding or something else. I'll need to dig into this. 

Here are the other things I did:

  • The post editor now has spellcheck enabled
  • The post editor now has a character counter
  • Made UI consistent across bookmarks, bookshelves, manage blog area with same action button format as the posts
  • Manage blog posts now shows the full text of the blog post for long posts as well as short posts
  • The permalink for the post is now above the comments
  • Added in a favico.ico
  • You can now unmute and unblock users (from their profile page, under Advanced)

Also, lots of little bug fixes everywhere. Some from when I refactored and some that were there all along.

I also released the source code! Yay! 

I'm not sure why showing people my code, outside of work, bothers me. Imposter syndrome? Spending too long as a solo developer and developing bad coding habits? Maybe.🤷‍♀️ But in any case. It's up there for people to take a look 😄

Until next week,
Loura

Dispatches from the fleet

What passing ships signaled back

Unfurl the messages

Pen yer reply

Scratch a message on the parchment and cast it off. After you sign in you may need to re-open this modal.