90 Commits

Author SHA1 Message Date
Jamie Greunbaum
8432df5456 Adjusted the layout of the bug report form. 2024-06-15 21:52:02 -04:00
Jamie Greunbaum
d20e47b5dc Gitea form post method now takes empty descriptions into account.
If the description box is empty, new lines are not added between the last line
and the marker data. If empty description boxes are eventually made possible, this
will allow for that.
2024-06-09 16:49:03 -04:00
Jamie Greunbaum
30152c45cc Bug report form and bug info menus now correctly set focus on themselves, making them possible to use with a controller. 2024-06-09 16:39:00 -04:00
Jamie Greunbaum
026f31ae35 Fixed a bug that caused Gitea markers to never have their severity set. 2024-06-09 16:37:59 -04:00
Jamie Greunbaum
64d3f0a51e Menu items on the bug report form are hidden if they don't have any options to select. 2024-06-09 15:35:51 -04:00
Jamie Greunbaum
e38a4e190e Added a check to make sure the BugbotServerAPI object used by the editor is valid before trying to open the bug's URL. 2024-06-09 15:35:11 -04:00
Jamie Greunbaum
7b5325c1be Bug markers refresh when the "Bug Report Platform" project setting is changed during editing. 2024-06-09 15:33:38 -04:00
Jamie Greunbaum
f9bfbc38c8 Added an option in the Jira API to treat assigned issues as equivalent to "In Progress". 2024-06-09 03:23:16 -04:00
Jamie Greunbaum
941ea98a35 Selected markers now deselect themselves immediately, and can't be selected at all if part of a multi-selection. 2024-06-06 16:09:41 -04:00
Jamie Greunbaum
524948c800 Bug info dialogue box now exists in-game, and offers the same functionality as the editor popup. 2024-06-06 15:11:55 -04:00
Jamie Greunbaum
f73debc9b2 Added an invisible sphere behind the bug marker icon, which makes it much easier to click on markers in the editor. 2024-06-06 00:04:24 -04:00
Jamie Greunbaum
41cc9305cf Markers are deselected once the bug info popup is closed, mostly to prevent errors when switching between tabs while markers are selected. 2024-06-06 00:03:29 -04:00
Jamie Greunbaum
843ac8f765 Jira Version fields were not working correctly due to putting "value" in the post data like all the other fields, whereas Jira expects versions to be "name". This has been fixed. 2024-06-05 22:59:58 -04:00
Jamie Greunbaum
fb66765bce Bug markers show a dialogue when selected, giving basic info and offering a link to the bug's webpage. 2024-06-05 19:26:56 -04:00
Jamie Greunbaum
695945b783 Made a minor change to formatting. This code does not need to be two lines and I don't know why I made it that way. 2024-06-05 10:30:51 -04:00
Jamie Greunbaum
e529d410bb Jira API query now uses JQL to filter issue types and statuses on request.
JQL statements were added which will:
- Only retrieves issues with the set type (defaults to "Bug")
- Only retrieve issues from the current project
- Only retrieves issues relevant to the current scene
- Filters out issues where the marker location is empty
- Filters by whether the set resolution status should be displayed in the editor
2024-06-05 10:30:00 -04:00
Jamie Greunbaum
795455f915 BugMarker collision shape is rendered invisible by default, making the markers
more clear and distinct when loaded into the editor.
2024-06-05 01:09:22 -04:00
Jamie Greunbaum
c21115e97a Bug markers can now give bug info when clicked
The bug marker root node is now placed directly in the scene tree, as it was
once before. Not only does this now work correctly when switching nodes, this
makes them interactible, allowing them to give information about the bug that
was clicked on, currently printed to the console.
2024-06-05 01:08:00 -04:00
Jamie Greunbaum
cfe08da56c Project names are now retrieved from the project settings using a virtual function in the BugbotServerAPI class. 2024-06-04 14:24:06 -04:00
Jamie Greunbaum
1900b0aeaa Relabeled "Component:" to "Department:", since this nomenclature makes more sense on services other than Bugzilla. 2024-06-04 02:22:40 -04:00
Jamie Greunbaum
78d333a2ab Merge pull request 'Jira now supports all the same field types as the other APIs, with the addition of supporting cascading select lists for Hardware and OS combined.' (#25) from optional-tags-for-jira into main
Reviewed-on: BattyBovine/Bugbot#25
2024-06-04 02:17:45 -04:00
Jamie Greunbaum
3a36d1316b Jira now supports all the same field types as the other APIs, with the addition of supporting cascading select lists for Hardware and OS combined. 2024-06-04 02:13:47 -04:00
Jamie Greunbaum
482781d6c6 Moved lesser-used label prefixes for Gitea into a new setting subcategory. 2024-06-03 12:12:20 -04:00
Jamie Greunbaum
2f9edef1b9 Merge pull request 'Bugzilla API is now fully implemented' (#24) from bugzilla-api into main
Reviewed-on: BattyBovine/Bugbot#24
2024-06-03 11:47:11 -04:00
Jamie Greunbaum
4eed4393e4 Bugzilla API is now fully implemented. 2024-06-03 11:44:46 -04:00
Jamie Greunbaum
275cc63225 Bug report form now has an extra check to ensure the received array of tag options is the correct size. 2024-06-02 22:54:49 -04:00
Jamie Greunbaum
097990dcbe Added default status label lists to BugbotServerGiteaAPI, even though they are blank by default. 2024-06-02 02:44:26 -04:00
Jamie Greunbaum
fc99f7c468 Added proper defaults for showing unresolved, in progress, and resolved bug markers. 2024-06-02 02:14:59 -04:00
Jamie Greunbaum
869bef413e Merge pull request 'Jira API is now fully implemented.' (#15) from add-jira-support into main
Reviewed-on: BattyBovine/Bugbot#15
2024-06-01 03:07:12 -04:00
Jamie Greunbaum
c5c0c192cb Jira API is now fully implemented. 2024-06-01 03:04:07 -04:00
Jamie Greunbaum
d763eb48fe Gitea labels are now passed with both names and IDs to more easily support services that use one or the other. 2024-05-31 23:40:15 -04:00
Jamie Greunbaum
d4d59c957c Revert "Filling in menu lists on the bug report form no longer depends on the exact item format used by Gitea."
This reverts commit bf7389466a66d3a8cc16daaa53386b67eefd8cad.
2024-05-31 19:57:52 -04:00
Jamie Greunbaum
512658b0e5 Improved tag sorting code to simply sort the original list of available tags instead of trying to sort them later. 2024-05-31 15:01:55 -04:00
Jamie Greunbaum
b1c2451c3e Bugbot no longer freezes if the thread is busy with a request when the player places a marker. 2024-05-31 03:20:09 -04:00
Jamie Greunbaum
bf7389466a Filling in menu lists on the bug report form no longer depends on the exact item format used by Gitea. 2024-05-31 03:14:32 -04:00
Jamie Greunbaum
12a294cdd5 Setting duplicate_of makes no sense when it's not even being used right now. Leaving it as default makes more sense than resetting it to default manually for no reason. 2024-05-30 20:10:20 -04:00
Jamie Greunbaum
0495c15a6d BugbotBugData now defaults the normal to Vector3.UP. 2024-05-30 20:09:40 -04:00
Jamie Greunbaum
c7e78ba4ac Bugbot now properly uses project settings to determine raycast length for marker placement. 2024-05-30 20:06:52 -04:00
Jamie Greunbaum
cf1c6a3632 Gitea bugs are now considered to be "in progress" if someone is assigned to the bug. 2024-05-30 02:19:47 -04:00
Jamie Greunbaum
7cdd6d239d Server is no longer incorrectly pulled from Gitea settings every time. 2024-05-29 20:26:07 -04:00
Jamie Greunbaum
27b5d593f6 Bug markers now have their info properly set when first created. 2024-05-28 18:39:58 -04:00
Jamie Greunbaum
58bc591405 Functions for returning API responses are now handled entirely in the parent class, avoiding code duplication across all supported APIs. 2024-05-28 15:59:01 -04:00
Jamie Greunbaum
407e3b2a9e - Improved error handling for empty fields.
- Added extra static typing hints.
2024-05-28 13:21:54 -04:00
Jamie Greunbaum
b7a08e7511 - Adjusted theming, including adding an error colour to text when a form field needs to be filled out. 2024-05-28 01:15:08 -04:00
Jamie Greunbaum
941967d5ee Merge pull request 'Bug markers look better at longer distances.' (#9) from bug-marker-distance-improvements into main
Reviewed-on: BattyBovine/Bugbot#9
2024-05-27 19:28:00 -04:00
Jamie Greunbaum
a2d92f6fdd Bug markers look better at longer distances. 2024-05-27 19:25:32 -04:00
Jamie Greunbaum
d9bc4da810 Marker data is now created using a Dictionary stringified into JSON. 2024-05-27 14:49:25 -04:00
Jamie Greunbaum
e80fb3dff9 Bug data is printed to console when a marker is clicked. This will eventually have a real UI to show more detailed information. 2024-05-27 02:52:55 -04:00
Jamie Greunbaum
c571c35908 Merge pull request 'Bug markers can be loaded and unloaded during gameplay' (#7) from in-game-marker-display into main
Reviewed-on: BattyBovine/Bugbot#7
2024-05-27 02:04:48 -04:00
Jamie Greunbaum
b75c1f002f Bug markers can now be loaded and unloaded during gameplay using static functions in the Bugbot class. 2024-05-27 02:01:39 -04:00