prev pMAGI2024-02-09
MEMO
-
Fix minor bugs in [Plural Viewpoints
- 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
-
OPG Image pMAGI-2024-02-06
- prev pMAGI-2024-02-06
-
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.
-
d/acc support pMAGI2024-02-09
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.
nishio Unlocking Achievements
AI generated code for infinite loop access to Firestore to use up Quota
nishio And you’ve done this twice.
nishio Ahhh!
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
-
- /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
- http://localhost:3000/api/ogp/QmLOJqop2hyBtT8w0v6G should work
- Ensure that OGP is displayed
- You can check by expanding /d/1 with bsky
2024-02-14 Bluesky
- Hmmm… wow.
- Bluesky
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.