Merge pull request #40 from timothyjlaurent/timothyjlaurent/stuck-spinners

fix: add global spinner animation to prevent stuck loaders
This commit is contained in:
gsxdsm
2026-05-05 14:29:38 -07:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -175,6 +175,18 @@ html {
--xsmall-breakpoint: 640px; --xsmall-breakpoint: 640px;
} }
/* Global spinner animation — used by 25+ components via className="animate-spin"
or inline animation: "spin ...". Must live at the stylesheet top level (not
inside any selector block) so the keyframes and utility class are available
before any task cards are loaded. */
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.animate-spin {
animation: spin 1s linear infinite;
}
:root { :root {
--bg: #0d1117; --bg: #0d1117;
--surface: #161b22; --surface: #161b22;

View File

@@ -57,6 +57,7 @@ vi.mock("@fusion/core", async () => {
self.getTask = mockTaskStoreGetTask; self.getTask = mockTaskStoreGetTask;
self.getSettings = vi.fn().mockImplementation(async () => structuredClone(mockTaskStoreSettings)); self.getSettings = vi.fn().mockImplementation(async () => structuredClone(mockTaskStoreSettings));
self.getMissionStore = vi.fn().mockReturnValue({ self.getMissionStore = vi.fn().mockReturnValue({
listMissions: vi.fn().mockReturnValue([]),
getMissionWithHierarchy: vi.fn().mockReturnValue(null), getMissionWithHierarchy: vi.fn().mockReturnValue(null),
findNextPendingSlice: vi.fn().mockReturnValue(null), findNextPendingSlice: vi.fn().mockReturnValue(null),
activateSlice: vi.fn(), activateSlice: vi.fn(),