Merge remote-tracking branch 'tomt610/feature/fab-widgets' into test-pr90-pr91-combined

This commit is contained in:
Spicy_Marinara
2026-01-10 16:47:15 +01:00
11 changed files with 936 additions and 5 deletions
+4
View File
@@ -34,6 +34,7 @@ import { renderQuests } from '../rendering/quests.js';
import { renderMusicPlayer } from '../rendering/musicPlayer.js';
import { i18n } from '../../core/i18n.js';
import { generateAvatarsForCharacters } from '../features/avatarGenerator.js';
import { setFabLoadingState, updateFabWidgets } from '../ui/mobile.js';
// Store the original preset name to restore after tracker generation
let originalPresetName = null;
@@ -235,6 +236,7 @@ export async function updateRPGData(renderUserStats, renderInfoBox, renderThough
try {
setIsGenerating(true);
setFabLoadingState(true); // Show spinning FAB on mobile
// Update button to show "Updating..." state
const $updateBtn = $('#rpg-manual-update');
@@ -391,6 +393,8 @@ export async function updateRPGData(renderUserStats, renderInfoBox, renderThough
}
} finally {
setIsGenerating(false);
setFabLoadingState(false); // Stop spinning FAB on mobile
updateFabWidgets(); // Update FAB widgets with new data
// Restore button to original state
const $updateBtn = $('#rpg-manual-update');