feat(market): add Minha Intenções tab with panel, hook, and badge
- Introduced "Minhas Intenções" tab visible only to logged-in users. - Integrated MyPurchaseIntentionsPanel and useMyPurchaseIntentions hook. - Added tab badge showing count of pending intentions. - Extended session API to include user’s main character for downstream features.
This commit is contained in:
1 parent
f35fee944d
commit
7f42def478
55 files changed
+4906
-95
No files matched your search
+2
-21
@@ -84,28 +84,9 @@ export function searchItems<T = any>(params: SearchParams): SearchResult<T> {
|
||||
return { items: [], total: 0 } as SearchResult<T>;
|
||||
}
|
||||
try {
|
||||
// Log básico do schema na primeira chamada
|
||||
// Schema logging desabilitado para reduzir poluição do console
|
||||
if (!schemaLogged) {
|
||||
try {
|
||||
const tables = db
|
||||
.prepare("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")
|
||||
.all() as { name: string }[];
|
||||
console.info("[items-db] Tabelas:", tables.map((t) => t.name));
|
||||
for (const t of tables.slice(0, 5)) {
|
||||
try {
|
||||
const cols = db.prepare(`PRAGMA table_info(${t.name})`).all() as any[];
|
||||
console.info(`[items-db] Colunas ${t.name}:`, cols.map((c) => `${c.name}:${c.type}`));
|
||||
const sample = db.prepare(`SELECT * FROM ${t.name} LIMIT 3`).all();
|
||||
console.info(`[items-db] Amostra ${t.name}:`, sample);
|
||||
} catch (inner) {
|
||||
console.warn(`[items-db] Falha ao inspecionar ${t.name}:`, (inner as any)?.message);
|
||||
}
|
||||
}
|
||||
} catch (intErr) {
|
||||
console.warn("[items-db] Falha ao ler schema:", (intErr as any)?.message);
|
||||
} finally {
|
||||
schemaLogged = true;
|
||||
}
|
||||
schemaLogged = true;
|
||||
}
|
||||
|
||||
const where: string[] = [];
|
||||
|
||||
Reference in new issue
Block a user