Eliminate tab reload animation after saving card properties

- CardSection._animateEntrance: skip after first render to prevent
  card fade-in replaying on every data refresh
- automations: use reconcile() on subsequent renders instead of full
  innerHTML replacement that destroyed and recreated all cards
- streams: same reconcile() approach for all 9 CardSections
- targets/dashboard/streams: only show setTabRefreshing loading bar
  on first render when the tab is empty

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 00:07:18 +03:00
parent cb779e10d3
commit ec58282c19
5 changed files with 58 additions and 37 deletions

View File

@@ -364,7 +364,7 @@ export async function loadDashboard(forceFullRender = false) {
set_dashboardLoading(true);
const container = document.getElementById('dashboard-content');
if (!container) { set_dashboardLoading(false); return; }
setTabRefreshing('dashboard-content', true);
if (!container.children.length) setTabRefreshing('dashboard-content', true);
try {
// Fire all requests in a single batch to avoid sequential RTTs