pMAGI2024-02-13~
MEMO
Fix minor bugs in PluralViewpoints
I hear the QR code is not correct.
Or that it's hard to catch the eye in the Topic List or Add Topic.
Slow response issue because the topic list is read server-side with blocking Firestore
nishio Wait, in the first place, in this view, I think the appearance of the text in a monospace font and line breaks without considering word breaks or hyphenation is sufficient. I guess... then there is no need to get the width. In the end, which technology choice is better depends on the unspoken requirement specification of "how you expect it to look like.
nishio Until 5 minutes ago, I was thinking "I can't get the width, so it's impossible to make my own line breaks, Sharp was the wrong choice and I'll choose Puppeteer" If you want to limit it to English, I'm OK with that, but I have a feeling that's going to be a future tie-in.
I thought it was something like that because the default OGP Image size was horizontal, but I felt like I only needed the MAGI part.
2024-02-13
✅fix: QR code is incorrect
✅fix: I'm not sure if it's hard to stop looking at the topic list or Add Topic.
Slow response issue because the topic list is read server-side with blocking Firestore
Maybe it's fixed, let's release it (...)
Deployment was rubbish due to the OGP part that was in the process of being created.
AI generated code for infinite loop access to Firestore to use up Quota
nishio And you've done this twice. https://pbs.twimg.com/media/GGNBLZ8a0AAC-Ld?format=jpg&name=medium#.png
https://pbs.twimg.com/media/GGNCDZZbQAAtrTj?format=jpg&name=medium#.png
nishio Bug that the acquired data itself is in the dependency of useEffect and is reacquired as soon as the acquisition is finished. nishio Oops, the individual pages are still alive in the server-side rendering cache! nishio Oh, but if you don't fix the bug and deploy again, you'll lose Quota again. nishio oops, I see, the server side static content generation is Over Quota and the deployments are rubbish, this is a pain in the ass... nishio I've decided to stop read by security rules and deploy the bugfix version tomorrow after Quota recovers. Other TODOs
Create a flow line from the individual topic page to the topic list and top description page.
Server-side OGP rendering could be done by ditching the difficult line break process for rendering.
Spark after all
https://gyazo.com/3077fb70e33ffff579b373ac5b5af830
/api/ogp/7
It's now 630x700.
I need to think about what to write in the meta tags and how to process the data differently depending on where it is, but I'm too tired for that today.
---
TODO
✅ Create a flow line from the individual topic page to the topic list and top description page.
Resolve Firestore Quota issues
If Quota is restored, the rule will be reverted.
deploy
Ensure that OGP is displayed
You can check by expanding /d/1 with bsky
2024-02-14
Bluesky
https://gyazo.com/d976cb4051cd4faea106dc6803d827c3
Twitter
https://gyazo.com/c821ad75d938a3a7f28912cfb8ae142c
Hmmm... wow.
Twitter
https://gyazo.com/f89fde5e048682da2a7d18f635097124
Bluesky
https://gyazo.com/3d8683b61a51917e1e27aed6db277379
2024-02-15
In the end, the range of what can be seen depends on the environment, so I don't think it's a good idea to try too hard.
I'll just outline the fonts to eliminate the misalignment and be done with it.
---
This page is auto-translated from /nishio/pMAGI2024-02-13~ using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.