Great, it's up! Many thanks for all the help with testing. Please post if you notice any bugs (though there's a couple I already know about, please read on...)
RiptideLab Thing 1.0
The main change: Card-hover tags (
like this) now get card images from Scryfall.
I've written a new library from scratch. I took lots of inspiration from the Deckbox code, which is actually really nice. There are some things I have done totally differently, and some things I've copied wholesale.
I've dropped support for Internet Explorer, but come to think of it, I've used a lot of modern browser features too. So I have also dropped support for older versions of real browsers - if you are not seeing card-hovers any more, please post! I will add some backwards compatibility transpiling.
Known Issues
1. Partial card-names no longer work. I'll see if I can fix this, but if it's a lot of complication I'd rather just stop supporting this. It does break older posts though.
2. Card sometimes doesn't position within the screen correctly. I will get this fixed. Tough to debug because I rarely see it happen. If it consistantly happens to you, please post!
3. Mobile scrolling is worse - if you touch and scroll on a tagged card, it doesn't scroll
Caching
I've made an effort to really reduce calls to Scryfall. Here's what you should know:
- If we do find the card on Scryfall, the result is cached in your browser for
four weeks.
- If we don't, the result is not cached permanently, but
is saved in memory. That means it won't ping Scryfall every time you mouseover
something like this, but as soon as you refresh or navigate, it will forget about that result and need to fetch it again next time you hover that tag.
My reasoning is this: If a card tag is not returning anything, there could be 3 reasons:
- The card is misspelled
- There was a computing error somewhere
- The card hasn't been added to Scryfall yet.
The last two cases are really compelling reasons not to cache these results.
Image size
The new tooltips are a little bigger than they used to be. I stare at screens to much and I like things to be big and readable these days. If this is causing issues on your device, post!
Coming soon...
- Card image tags (
[ci]
) (will be slightly involved so it'll probably take another week)
- Deck and cubedeck tags further in the future
- More movie reviews