MODiX
MODiX copied to clipboard
Username fields on modix website do not ignore trailing whitespaces in the logs tab
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:
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.
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.
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.
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.
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.