ysdsad
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-08-14 02:13:02 +02:00
parent 3205d9f0f6
commit 8bcd445759
2 changed files with 42 additions and 4 deletions

View File

@@ -821,7 +821,18 @@
: null,
]),
hoveredPoint
? h('div', { key: 'hover', className: 'mc-mini-card' }, [
? h('div', {
key: 'hover',
className: 'mc-mini-card',
style: {
position: 'absolute',
top: 28,
right: 0,
zIndex: 3,
pointerEvents: 'none',
maxWidth: '220px',
},
}, [
h('div', { key: 'label', className: 'mc-kicker', style: { color: hoveredPoint.color } }, hoveredPoint.label),
h('div', { key: 'value' }, `${hoveredPoint.x}: ${hoveredPoint.value}`),
])
@@ -1678,15 +1689,19 @@
async function loadSchemaStatus(key) {
try {
const schema = await request(`${apiBase}/projects/${encodeURIComponent(key)}/schema-status`, { timeoutMs: 4000 });
setSchemaStatus(normalizeSchemaStatus(schema));
const normalized = normalizeSchemaStatus(schema);
setSchemaStatus(normalized);
return normalized;
} catch (err) {
setSchemaStatus(normalizeSchemaStatus(null));
setError((previous) => previous || `Schema-Status konnte nicht geladen werden: ${err.message}`);
return null;
}
}
async function loadBootstrap(key, options) {
const suppressError = !!(options && options.suppressError);
const schemaStatusOverride = options && options.schemaStatusOverride ? options.schemaStatusOverride : null;
const cacheKey = `${key}:${activeTab || 'overview'}`;
const cachedPayload = bootstrapCacheRef.current.get(cacheKey) || null;
@@ -1708,7 +1723,8 @@
}, 30000);
try {
if (schemaStatus.missing_count > 0 || schemaStatus.pending_upgrade_count > 0) {
const effectiveSchemaStatus = schemaStatusOverride || schemaStatus;
if (effectiveSchemaStatus.missing_count > 0 || effectiveSchemaStatus.pending_upgrade_count > 0) {
setPayload(normalizeBootstrap(null, key));
setError('Mining-Checker Schema ist noch nicht initialisiert. Bitte im Tab Settings die Datenbank initialisieren.');
return false;
@@ -2646,7 +2662,8 @@
? `Angewendete Upgrades: ${result.upgraded.join(', ')}.`
: 'Keine Upgrades erforderlich.')
);
await loadBootstrap(projectKey);
const refreshedStatus = await loadSchemaStatus(projectKey);
await loadBootstrap(projectKey, { schemaStatusOverride: refreshedStatus || nextStatus });
} catch (err) {
setError(err.message);
} finally {