ux: simplify to 2 buttons, remove Analityka
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Removed redundant Analityka button since charts auto-load on page load.
"Odswiez wszystkie" now also renders charts after fetching.
Two buttons remain: "Najnowsze 10" (quick preview) and "Odswiez wszystkie"
(full fetch + cache + charts).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-20 09:23:15 +01:00
parent a8a434e99d
commit d82427136b

View File

@ -456,8 +456,7 @@
</h3>
<div style="display: flex; gap: var(--spacing-xs); align-items: center; flex-wrap: wrap;">
<button class="btn btn-secondary btn-small" onclick="loadFbPosts({{ company_id_key }}, this)">Najnowsze 10</button>
<button class="btn btn-secondary btn-small" onclick="refreshAllFbPosts({{ company_id_key }}, this)">Odswiez wszystkie</button>
<button class="btn btn-primary btn-small" onclick="loadAllFbPosts({{ company_id_key }}, this)">Analityka</button>
<button class="btn btn-primary btn-small" onclick="refreshAllFbPosts({{ company_id_key }}, this)">Odswiez wszystkie</button>
</div>
</div>
<div id="fbChartsSection-{{ company_id_key }}" style="display:none;">
@ -1017,6 +1016,7 @@
renderFbPosts(companyId, allPosts, null, false);
container.insertAdjacentHTML('beforeend',
'<div style="text-align:center;margin-top:var(--spacing-md);color:var(--text-secondary);font-size:var(--font-size-sm);">Pobrano ' + allPosts.length + ' postow z Facebook API i zapisano do cache</div>');
renderFbCharts(companyId, allPosts, 'teraz (swiezo pobrane)');
saveFbPostsToCache(companyId, allPosts);
} catch (err) {
btn.textContent = origText;