From c556860e49dbcbd6297a2624cb89034a010df72b Mon Sep 17 00:00:00 2001 From: david raistrick <1108844+keen99@users.noreply.github.com> Date: Sat, 4 Jul 2026 16:07:21 -0400 Subject: [PATCH] refactor(App): remove dead SDK imports (BUG-17) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit App.js imported 9 Firestore SDK functions it never called standalone: doc, setDoc, addDoc, collection, onSnapshot, updateDoc, deleteDoc, query, writeBatch. All writes go through storage adapter (storage.*). Auth pieces (initializeApp, getAuth, signInAnonymously, onAuthStateChanged, signInWithCustomToken, getFirestore) stay — real SDK init in firebase mode. orderBy/limit stay — now neutral builders from index.js (prev commit). --- src/App.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 26b805c..d869f7d 100644 --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,6 @@ import React, { useState, useEffect, useRef, useMemo } from 'react'; import * as shared from '@ttrpg/shared'; -import { initializeApp } from './storage'; -import { getAuth, signInAnonymously, onAuthStateChanged, signInWithCustomToken } from './storage'; -import { getFirestore, doc, setDoc, addDoc, collection, onSnapshot, updateDoc, deleteDoc, query, orderBy, limit, writeBatch, getStorage, getStorageMode } from './storage'; +import { initializeApp, getAuth, signInAnonymously, onAuthStateChanged, signInWithCustomToken, getFirestore, orderBy, limit, getStorage, getStorageMode } from './storage'; import { PlusCircle, Users, Swords, Trash2, Eye, Edit3, Save, XCircle, ChevronsUpDown, UserCheck, UserX, HeartCrack, HeartPulse, Zap, EyeOff, ExternalLink, AlertTriangle,