Files
DarkflameServer/dDatabase/GameDatabase/ITables/IBugReports.h
Aaron Kimbrell e213a7aeff feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:30:43 -05:00

39 lines
1.3 KiB
C++

#ifndef __IBUGREPORTS__H__
#define __IBUGREPORTS__H__
#include <cstdint>
#include <string>
#include <string_view>
#include "dCommonVars.h"
#include "json.hpp"
class IBugReports {
public:
struct Info {
std::string body;
std::string clientVersion;
std::string otherPlayer;
std::string selection;
LWOOBJID characterId{};
};
// Add a new bug report to the database.
virtual void InsertNewBugReport(const Info& info) = 0;
// Get paginated list of bug reports with optional search/filtering for DataTables
// resolvedFilter: -1 = all, 0 = unresolved only, 1 = resolved only
virtual std::string GetBugReportsTable(uint32_t start, uint32_t length, const std::string_view search = "", uint32_t orderColumn = 0, bool orderAsc = true, int8_t resolvedFilter = -1) = 0;
// Get a single bug report with reporter and resolution details, or {"error": ...} if missing
virtual nlohmann::json GetBugReport(const uint32_t id) = 0;
// Mark a bug report resolved. Column names match NexusDashboard so existing databases keep their data.
virtual void ResolveBugReport(const uint32_t id, const uint32_t resolverAccountId, const std::string_view resolution) = 0;
virtual void DeleteBugReport(const uint32_t id) = 0;
virtual uint32_t GetBugReportCount() = 0;
};
#endif //!__IBUGREPORTS__H__