Hey there, ParaVocê readers! I'm here to give you a sneak peek into the latest tech updates I've been cooking up.
The New Orders Functionality
1. Viewing Recent Orders - The List View
I've added a basic feature that lists recent orders. Think of it like a to-do list, but for orders. This list gives a clear view of what's been ordered, making life simpler for anyone managing sales. There’s a lot more to do to make it robust, like filtering and sorting, but the framework is in place.
2. Detailed Single Order View
Ever wanted to see everything about an order in one place? That's what I've done here. When you click on an order, you'll see all its details: products, quantities, prices, shipping and billing addresses, and all the money talk - taxes, shipping fees, and totals.
3. Attaching Products to Orders
Products and their details now latch onto orders like a koala to a tree. I record the quantity and the price at the time of purchase. This means no more guessing games about how much something cost when it was ordered.
The New Components
1. The Button-Icon Component
I’ve standardized icons that look like buttons. Now, they all have a consistent look and feel - colors that change when you hover, just-right padding, and uniform sizes. It’s like giving a makeover to all the buttons so they match and play nice together.
2. The Price- Component
Talking about money across different currencies can be a headache, right? Not anymore. I store all money as integers (or 'ints'). Why ints, you ask? Because using floats (numbers with decimals) for money can lead to tiny errors - imagine giving someone $10.0000001 instead of $10. That's why I stick to ints.
Here’s how it works: in the backend, an amount like $10 is stored as 1000 (cents). But when it shows up on your screen, it transforms back into $10.00. For different currencies, it adapts accordingly – like ¥1000 for yen. And the coolest part? I've added a tabular option for this component. This means in financial tables, all prices are in a straight, neat line, thanks to a monospace font.
Next week I’ll be continuing improvements to orders. Until then!
Evan
Weekly Wine Recommendation
Try the 2017 Lan Culmen Reserve Rioja Suprema - a classic Rioja with 100% Tempranillo. Expect a symphony of dusty minerality, leather, cedar, and vibrant red fruits. A true old-world gem!