MODiX icon indicating copy to clipboard operation
MODiX copied to clipboard

Username fields on modix website do not ignore trailing whitespaces in the logs tab

Open kameko opened this issue 5 years ago • 3 comments

When entering a full username in the logs/infractions tab ( https://mod.gg/logs/infractions ) in the Subject or Creator fields with trailing whitespace, no results show up, instead of ignoring/trimming the whitespace. This is especially bothersome since double clicking and copying a username from the Subject or Creator fields seem to append some whitespaces at the end.

Attached is an example: image

Also to note is I did not add the whitespaces in that image. As stated above, double-clicking a name to select the text then copying it adds those automatically, so it's kind of a one-two punch thing.

kameko avatar Jun 25 '19 20:06 kameko

Also maybe as a suggestion to turn lemons into lemonade, make the names in the Subject and Creator fields act as links to show only results for that subject/creator. I'm not gonna make an issue for it, but if that sounds interesting to any developers then maybe you could make an issue for it.

kameko avatar Jun 25 '19 20:06 kameko

Don't think we can fix this. We use vue-good-table to provide this filtering, so it's either report to them and hope they fix it (or we do) or run a custom solution which could introduce more bugs.

joshuaedwardcrowe avatar Jun 26 '19 18:06 joshuaedwardcrowe

It is possible to fix, we actually run a custom filterer anyway so it works on username or ID (though I think that logic was moved to the server) - I'll look into it.

jmazouri avatar Jun 26 '19 22:06 jmazouri

As part of a new effort to refocus on priorities, I will close this. If you feel this is imperative to the bot, a new issue can be opened to supersede this.

patrickklaeren avatar Mar 26 '24 14:03 patrickklaeren