FEATURE: Add "Recent Errors" tab and improved error modal (#2169)

This commit is contained in:
Michael Ficocelli
2025-06-16 19:43:21 -04:00
committed by GitHub
parent cf72937faf
commit 18f84396e2
17 changed files with 530 additions and 34 deletions
+6
View File
@@ -12,6 +12,7 @@ import {
assertAndSanitizeStyles,
} from "../JsonSchema/JSONSchemaAssertion";
import { mergePlayerDefinedKeyBindings, type PlayerDefinedKeyBindingsType } from "../utils/KeyBindingUtils";
import { toggleSuppressErrorModals } from "../ErrorHandling/ErrorState";
/**
* This function won't be able to catch **all** invalid hostnames. In order to validate a hostname properly, we need to
@@ -119,6 +120,8 @@ export const Settings = {
SaveGameOnFileSave: true,
/** Whether to hide the confirmation dialog for augmentation purchases. */
SuppressBuyAugmentationConfirmation: false,
/** Whether to hide the info dialog for script errors. */
SuppressErrorModals: false,
/** Whether to hide the dialog showing new faction invites. */
SuppressFactionInvites: false,
/** Whether to hide the dialog when the player receives a new message file. */
@@ -253,5 +256,8 @@ export const Settings = {
// Merge Settings.KeyBindings with DefaultKeyBindings.
mergePlayerDefinedKeyBindings(Settings.KeyBindings);
// Set up initial state for error modal suppression
toggleSuppressErrorModals(Settings.SuppressErrorModals, true);
},
};