Today, I continue preparations for refactoring. Szymon updated the environment and added a spoiler tag in the markdown editor. Additionally, there were several fixes and improvements related to collections and the People page.
https://codeberg.org/Kbin/kbin-core/pulls/1325
https://codeberg.org/Kbin/kbin-core/pulls/1327
You can track changes in the official repository
https://codeberg.org/Kbin/kbin-core
or on Github
https://github.com/ernestwisniewski/kbin
Great changes! A spoiler tag button is really nice, especially since the formatting for it can be a bit clunky. On that note though, I think it’d be nice to have an alternate format for making spoilers that doesn’t literally have the word spoiler in it.
It’s also awesome to see that official collections are explicitly marked, but the way it’s done is rather odd. It’s a button that creates an “Are you sure?” prompt on the screen when you click it. It seems like something that’s meant for instance owners.
I think something less obtrusive next to the collection’s name would be better for marking official collections. I implemented that with a checkmark in my userstyle, and I prefer it to the button. Maybe have the text “official” show when you hover over it to indicate what it means.
Like this?
Do you mean just displaying something other than “spoiler” in the header? Or not using the word “spoiler” when writing the tag at all? If the latter, I believe it’s done that way to match how it works on lemmy.
I mean not having the word spoiler when writing the tag. I get that it’s done for Lemmy compatibility, which is why I suggest an alternative way to do it (like how italics can be written like _this_ or like *this*).
True, though this doesn’t give the spoiler a header.
Maybe something like ||header|content||, based off how Discord handles spoilers, could work.
So
don't click if you're 8 or younger
santa isn’t real
could be written as
||don’t click if you’re 8 or younger|santa isn’t real||
Edit: Backslashing doesn’t seem to work on colons for whatever reason, so I removed that example of how the spoiler could be written.
(like how italics can be written like this or like this).
How do you get that to display without italicising/bolding the text? (E: like has clearly happened to me lol)
Backslashes. To get _this_, you type \_this\_. In fact, you can backslash backslashes, which is how I showed the backslashes here.
Amazing, thanks!
(now to hope I actually remember lol)
spoiler
testing
(E: I’ve tried several ways to get it to work, once I got the little triangle but also the word “spoiler” on the end, the rest of the times I got variations of what it looks like now. Am on desktop)
(E2: it’s now settled on a little triangle, it was showing the ::: bits before, I swear 😂)
As always, your work is fantastic, @Ernest!
Having that spoiler tag available in the editor will be great, especially on mobile!
The “Add New” button is a nice update to the #Collections page – should be useful for #discoverability and accessibility which hopefully inspires others to use this feature! Also glad to see that unfollowing a #Collection has been renamed from “Delete” to “Unlike”. The spoiler tag update is also definitely welcome.
I’ve found where to create a collection, but where do I view those already created by others? And is that really the main difference between a collection and my subscribed feed, that they can be shared?
Go to the Magazines tab in the top bar and then there’s a collections tab on the page that opens.
Ah, thanks!