feat(live): board dynamique sans refresh (issue #15)
Diffusion SSE sur toutes les mutations (move, création, capture,
étiquettes) via _publish_board_changed; GET /api/board/{o}/{r}
(fragments _card.html rendus serveur, même pipeline que la page);
board-live.js: diff en place par colonne avec animation FLIP,
application différée pendant un drag, filtres/compteurs réappliqués,
repli par sondage 45 s sans webhooks. Carte extraite en partiel
_card.html partagé page/API.
This commit is contained in:
@@ -152,6 +152,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
});
|
||||
}
|
||||
|
||||
// Exposed for board-live.js (issue #15): after a remote refresh
|
||||
// swaps column fragments, filters/counts/hints must be recomputed.
|
||||
window.kanbanteApplyFilters = applyFilters;
|
||||
window.kanbanteRefreshHints = refreshEmptyHints;
|
||||
window.kanbanteUpdateCounts = updateCounts;
|
||||
|
||||
// Keyboard: "/" jumps to the filter box.
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === '/' && !/INPUT|TEXTAREA|SELECT/.test(document.activeElement?.tagName || '')) {
|
||||
|
||||
Reference in New Issue
Block a user