netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Card name hover/highlight issues

Open nealterrell opened this issue 11 years ago • 14 comments

Minor issues from #424 today:

  1. Usernames are being linked to cards. "TheCodeTroll" highlights and links Troll.
  2. Gimoire links as Grim.
  3. e3 Feedback Implants -> Imp.

highlights

nealterrell avatar Jul 23 '15 18:07 nealterrell

Sometimes cards have strange output: image

Saw this with Plascete Carapace and Grimoire and Wyldside.

nealterrell avatar Jul 23 '15 19:07 nealterrell

I had the same issue with Drive By played on Adonis Campaign.

Upgrades in remote servers are also positioned weirdly now (next to each other instead of overlapping).

screen shot 2015-07-23 at 20 57 17

mtgred avatar Jul 23 '15 19:07 mtgred

I was just thinking Kati Jones, Plascrete Carapace, Adonis Campaign... it might be due to alternate art cards.

Grimoire has no alt art though.

mtgred avatar Jul 23 '15 19:07 mtgred

OK, the cards needs to be sorted before changing the message. I'll provide a patch later this evening.

queueseven avatar Jul 23 '15 19:07 queueseven

I proved a simply fix by using a regular expression with word boundaries. Don't know why I didn't used it from start.

"TheCodeTroll" should also no longer link Troll.

A user name that matches exactly a card title is still linked to the card. The question is: Is this worth "fixing" (would require some work) or should be keep this behaviour as easter egg?

queueseven avatar Jul 23 '15 20:07 queueseven

Chrome on Windows.

nealterrell avatar Jul 23 '15 21:07 nealterrell

All the alt art cards consistently have the issue.

Dominic you have access to alt art cards on the live server. I'll mail you a json file to import then into your local db if you give an email address.

mtgred avatar Jul 23 '15 22:07 mtgred

@mtgred my email is my github username @gmail.com What's special about the alt arts? Is there just another image code used?

queueseven avatar Jul 24 '15 13:07 queueseven

I can't reproduce the issue with the upgrade positioning.

queueseven avatar Jul 24 '15 18:07 queueseven

I'm seeing the side-by-side upgrades in the same remote in both Chrome and Firefox on Windows.

JoelCFC25 avatar Jul 24 '15 18:07 JoelCFC25

The issue is still present with Chrome/Firefox on Mac OS. In the screenshot below, Jackson is in server 1, the 3 others cards are in server 0, the 3rd card is underneath server 1 and can't be clicked.

But the card preview has been removed from the live server. So the positioning issue comes from elsewhere. I'm investigating the issue and will continue the discussion in #427.

screen shot 2015-07-24 at 20 57 25

mtgred avatar Jul 24 '15 19:07 mtgred

@DominicKexel Regarding alt art, yes they have a different code starting with 005. I sent you the alt art data and images.

mtgred avatar Jul 24 '15 19:07 mtgred

@mtgred thanks, I found the issue. Since some cards are now multiple times in the :card collection, the card title in a message would get replaced multiple times, resulting in the strange behaviour seen on the live system. I changed it so that alt art images (:setname "Alternates") are now preferred.

queueseven avatar Jul 24 '15 20:07 queueseven

@nealterrell I think this issue can be closed.

queueseven avatar Aug 13 '15 14:08 queueseven