Ports in game bug reporting from CM (#30376)

* adds the files doesn't even compile yet WIP

* compiles now. axed some stuff we don't need

* Update skin.dmf

* It technically works

* Adds in the stylesheet as well

* makes approval work

* Update tgui.bundle.js

* changes url to para master

* Makes apostrophes work

* removes token read line

* moves bug report verb to OOC.dm and changes its name to "Report a Bug"

* Update bug_report.dm

* Update tgui.bundle.js

* Adds API token var to config.

* adds a per ckey cooldown of 5 minutes for bug reports

* tgui rebuild

* rebuild tgui

* Update tgui.bundle.js

* review changes

* better timeout check

* changes example config to include the github token

* Update tgui.bundle.js

* tgui rebuild

* add message when bug report list is empty and changes some warnings to info type messages

* move round id and byond builds to additional details

* moves initial user ref to UID. Fixes commit hash stuff adds TM list

* Update tgui.bundle.js
This commit is contained in:
Migratingcocofruit
2025-10-16 21:22:02 +03:00
committed by GitHub
parent a9c3b6d242
commit 1abb121eb7
12 changed files with 537 additions and 3 deletions

View File

@@ -187,6 +187,7 @@ GLOBAL_LIST_INIT(admin_verbs_debug, list(
/client/proc/debug_bloom,
/client/proc/cmd_mass_screenshot,
/client/proc/allow_browser_inspect,
/client/proc/view_bug_reports,
))
GLOBAL_LIST_INIT(admin_verbs_possess, list(
/proc/possess,

View File

@@ -667,7 +667,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
dresscode = custom_names[selected_name]
if(isnull(dresscode))
return
if(dresscode == "Recover destroyed body...")
dresscode = input("Select body to rebuild", "Robust quick dress shop") as null|anything in potential_minds
@@ -923,3 +923,22 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
CHECK_TICK
log_and_message_admins_no_usr("The world has been decontaminated of [counter] radiation components.")
/client/proc/view_bug_reports()
set name = "View Bug Reports"
set desc = "Select a bug report to view"
set category = "Debug"
if(!check_rights(R_DEBUG|R_VIEWRUNTIMES|R_ADMIN))
return
if(!length(GLOB.bug_reports))
to_chat(usr, "<span class='warning'>There are no bug reports to view</span>")
return
var/list/bug_report_selection = list()
for(var/datum/tgui_bug_report_form/report in GLOB.bug_reports)
bug_report_selection["[report.initial_key] - [report.bug_report_data["title"]]"] = report
var/datum/tgui_bug_report_form/form = bug_report_selection[tgui_input_list(usr, "Select a report to view:", "Bug Reports", bug_report_selection)]
if(!form.assign_approver(usr))
return
form.ui_interact(usr)
return