-
Checkin to ใใฉใฏใผใฉใณใ
by in Tokyo, Tokyo, Japan -
byToday I started working on cleaning up the post list interface for the admin. As I can now post articles or statuses it doesn't make sense to show a menu on the left that says "Status" when I really want to show all posts.
Post lists in Tanzawa
Each post shows an icon indicating the type of post that it is, the name (if it has one), date created, a preview of the content, and links to edit or view the post. I also got to re-use my post dropdown menu component yesterday.
Just a couple more tweaks and I think I can release articles. -
The Week #33
by- Covid numbers are down to numbers we haven't seen since November. The vaccine is approved and they've started inoculating people. The weather's warming up and early bloomer cherry blossoms are starting to bloom. I'm optimistic.
- Meanwhile in Texas, it's been the exact opposite with a huge cold front (thanks climate change!) and a deregulated energy industry decided to not invest in weatherizing their natural gas and coal plant despite regulators saying they should caused people to lose power/heat for days in freezing temperatures. Then the (republican) leadership goes and tries to blame the entire thing on the wind and solar farms in west Texas, when those were unaffected by the cold. Never elect a man to office who says government doesn't work, because they might win and prove it. Thankfully my family made it through unscathed (though hopefully they didn't get a $16,000 electricity bill like some did)
- I used to listen to a lot of Japanese music when I was younger. These days, not really. Mostly electronic/punk when I'm working and Josh Rouse when I'm not. Lucky Old Sun is a new (to me) Japanese group I found lately. You should give it a listen. I like the last track on this EP a lot, but they're all good.
- I went to Chigasaki Sagtoyama Park on my four day weekend. It was my second visit. There's this large slide that's above the trees and goes downhill with rollers on it. I usually ride down with Leo in my lap because he wants to ride it, but it's a bit scary for him. As it was a regular work-day and I took the day off the park was fairly empty. So I went down by myself. Take a ride down the best slide in the world.
At the bottom of the hill/slide there's a couple of big white bouncy mounds that the children like to jump and play on. There was an older (double (half)) kid who looked similar to Leo. Which Leo noticed and kept on copying what he was doing when jumping. It was too cute.
-
byI've been avoiding dynamic content and Javascript in Tanzawa for as long as possible. Today I spent installing webpack and configuring my first stimulus controller. The controller is quite simple: open a details tag on hover and close it when not.
I think it still needs a little fine-tuning with the display timing. Seeing the toggle when a user goes to click New Status is jarring. Likewise closing immediately when no longer hovering is a source of frustration. So adding a shortย delay before performing either action would likely make it a bit easier to use.
The other side-benefit of starting to use stimulus is that it's helping me break up my templates into more reusable and logical components.Toggling the "New Post" menu -
by
I kinda want to move my server to FreeBSD. Maybe once I get Tanzawa to the point where I can migrate my blog over from WP to Tanzawa.
-
Checkin to ไบไฟฃๅทไบไธ็ฎๅ ฌๅ
Watching the bullet train
-
byI've started working articles with Tanzawa. Fundamentally they're the same as notes, except they have a name. Authoring an article looks much the same as a status.
Authoring an article in Tanzawa
Viewing an article on Tanzawa adds a title to the top. I also revisited the "byline" and made it italic. I've added light gray border to the footer of the post so you can visually tell when a post ends. The main post list view also has been updated to use this same color.An article in Tanzawa
Once I add some tests to confirm that micropub is assigning post kinds properly I think I can ship article support. Once shipped, I may modify my publishing schedule from "at least one post a day everyday" to a weekly round upย plus a status note or two as I have work to share. -
Checkin to ไป็ฐ้ๆฐดๅฐ
Bicycle and dog walking
-
byThe first step to being able to add new articles or bookmarks is to provide a way to navigate to the "new article" page.ย Here's what it's looking like so far.
Clicking New Status text will take you directly to new status page, while clicking on the green / disclosure triangle will expand the menu. All of this is done with the great <details> tag and a bit of css. Zero Javascript โค๏ธ.New Post Button