Player Ticket History - A Synopsis At A Glance (#75830)

## About The Pull Request

Adds a new front-end for viewing player ticket history stored in the
connected database.
Also adds a button to directly query for previous tickets from the
ticket panel.

## Pictures


![image](https://github.com/tgstation/tgstation/assets/12817816/4c01fb8b-3cf0-4d6c-a281-8eef2ff8f37c)

![image](https://github.com/tgstation/tgstation/assets/12817816/739f8b11-c064-4e90-bdae-22a4cc50c63d)

![image](https://github.com/tgstation/tgstation/assets/12817816/e4665d98-7bf9-4806-9d78-c8133682f7ae)

![image](https://github.com/tgstation/tgstation/assets/12817816/450edafc-b3b1-4013-8511-8328d944f440)
## Why It's Good For The Game

Gives admins the ability to look at a players behaviour in-game without
the need for external tooling, (statbus)
## Changelog

🆑
admin: Player Ticket History - view a player's ticket history without
the need to use external tooling.
/🆑
This commit is contained in:
Zephyr
2023-06-07 10:51:26 +12:00
committed by GitHub
parent 86ba209d5b
commit 89f5992a4c
6 changed files with 450 additions and 0 deletions
+9
View File
@@ -1122,6 +1122,15 @@
return
M.mind_initialize()
else if(href_list["player_ticket_history"])
if(!check_rights(R_ADMIN))
return
var/target_ckey = href_list["player_ticket_history"]
GLOB.player_ticket_history.cache_history_for_ckey(target_ckey)
GLOB.player_ticket_history.user_selections[usr.ckey] = target_ckey
GLOB.player_ticket_history.ui_interact(usr)
return
else if(href_list["create_object"])
if(!check_rights(R_SPAWN))
return