Hey flock, Evan here! This week at Pinkbird, I’ve been fluttering around our codebase, making some essential updates to help our platform continue to soar. Here’s a breakdown of the tech-y advancements we achieved:
Embracing Google's Security
We now have ‘Login with Google’! Instead of reinventing the wheel, I’m leveraging Google’s security expertise, which is a massive time and worry-saver for me and more secure for you. When you log in with your Google account, I’m not storing your login credentials in our database, which is a good thing. Additionally, I’m making sure the login cookie is secure using HttpOnly and Secure settings.
In layman's terms, HttpOnly prevents the cookie from being accessed via client-side scripts, minimizing the risks associated with cross-site scripting attacks. On the other hand, the Secure flag ensures that the cookie is sent only over HTTPS, adding an extra layer of security against man-in-the-middle attacks.
Customer Database and API
Next up, I’ve added a new customer database table and backend API. This is the behind-the-scenes magic that helps Pinkbird keep track of your customer info efficiently. It’s what allows me to so quickly search the database for “Bob Smith” in a textbox that autosuggests names as you type.
Refactoring
I’ve also refactored the orders-
and app-
components, breaking them into smaller, more manageable pieces. By isolating the state to each component and allowing events to bubble up to affect any parent components, I’m ensuring a smoother flight for our data through the system. Using lit.dev’s native web components, attributes are passed from parent to child, and events are bubbled back up the DOM. It’s a tidy, efficient way of handling data and ensuring everything chirps along harmoniously. It also scales well as the app grows; since state is isolated to the smallest possible component, it’s easy to replicate and solve bugs.
Dark Mode Bug Fixes
Lastly, I squashed several bugs related to dark mode, making sure it’s a smooth sailing experience for those of you who prefer the lights dimmed. Here’s a sneak-peak of the dark mode experience (pre-design).
Up next, I’m going to be building out customer creation and taking some time to do user experience interviews with business owners.
Each tweak and tuck under the wings of Pinkbird’s tech infrastructure brings me closer to a more seamless, efficient platform for managing your operations. Stay tuned for more updates from the roost, and as always, feel free to reach out with any questions or suggestions. Your chirps are always welcome here!
Until next week, keep soaring!
Evan
Weekly Wine Recommendation
This week we’re sipping the Morgon 2018 Les Charmes Thulon. It sports dark fruit and earthy notes. Ideal with hearty meats or creamy dishes, it's a taste journey for the patient connoisseur.