Fix tracker issues and add deprecation notice

This commit is contained in:
Spicy_Marinara
2026-05-04 13:08:52 +02:00
parent 70792f8a2a
commit 38fb3d8c51
11 changed files with 423 additions and 42 deletions
+8 -4
View File
@@ -95,7 +95,8 @@ import {
updateDiceDisplay,
addDiceQuickReply,
getSettingsModal,
showWelcomeModalIfNeeded
showWelcomeModalIfNeeded,
showDeprecationModalIfNeeded
} from './src/systems/ui/modals.js';
import {
initTrackerEditor
@@ -1511,11 +1512,14 @@ jQuery(async () => {
// Non-critical - continue without it
}
// Show welcome modal for v3.0 on first launch
// Show deprecation notice once for this release; otherwise keep the old welcome flow.
try {
showWelcomeModalIfNeeded();
const deprecationModalShown = showDeprecationModalIfNeeded();
if (!deprecationModalShown) {
showWelcomeModalIfNeeded();
}
} catch (error) {
console.error('[RPG Companion] Welcome modal failed:', error);
console.error('[RPG Companion] Startup modal failed:', error);
// Non-critical - continue without it
}