- Published on
Day 6, Release/Bug Fix and Retrospective
- Authors
- Name
- Aldren Terante
- @aldrenterante
Day 6 - Styling Cleanup
Most of the change were styling concerns. I also added about page for a quick summary of my career experience. It seems all the issues are now fixed and expected pages are added correctly. So I prepare the release branch ready to be merge in master for tomorrow production deployment.
Release Day! Panic Day!
Without any hesitation or pretesting (I was too confident about the release) I merged and deployed to production. I was so happy since it only take just a week to rebuild my site but suddenly it turns out worse..
The main concern was toggle dark mode feature had some intermittent issues. It seems when I try to do page refresh some of the stylings gone wrong. I keep asking myself, "WHY I DIDN'T CATCH THIS!". So I turn it off the toggle feature and then look what was the real trigger causing the issue.
Here were the list of issues that I found:
- Window object is not defined while running the build.
- Poor implementation of the localForage for setting/getting the last theme mode.
For the fix I use gatsby-styled-components-dark-mode
plugin but the issue still persist. After I keep digging more it turns out that the main style.scss
was added only in the index page were it should be in the Layout. So it can available to rendered pages after running the build.
While fixing the bug issues, I also keep finding ways add new features.
- Add tags by post to display all articles filtered by a tag
- Add disqus comment for single blog post page.
- Add and setting up google analytics for tracking page views.
- Update 404 styling page.
- Add more content to about page.
- Adjust overall styles for mobile (mostly padding and margin).
- Add Favicon :)
Retrospective
Here are the things that I learned while rebuilding my website.
- Progress over Perfection!
- Always create your draft post in your local first, hahaha.
- Run production build in your local and test it!
- I learned GraphQL in the hard way.
- Properly add you git commit so it can help you the track things.
- Don't be afraid to use new tools and get your hard dirty.
- Be ready to commit mistakes, learned from it and repeat pattern.
Hopefully you can learned something from my journey as well. Thanks for reading :)