feat(panel): adaptive monitoring poll intervals (v1.x closure phase 1)
test / test (push) Has been cancelled
test / test (push) Has been cancelled
Replace fixed 5 s hx-trigger polling with data-poll markers and panel.js scheduling: 5 s while active, 30 s when idle, none when tab is hidden. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
## Общий чек-лист прогресса
|
||||
|
||||
- [ ] **Фаза 1** — адаптивный опрос мониторинга
|
||||
- [x] **Фаза 1** — адаптивный опрос мониторинга
|
||||
- [ ] **Фаза 2** — mail.log в `/data` + postqueue reconcile
|
||||
- [ ] **Фаза 3** — docs: development.md, README, удаление планов и `docs/archive/`
|
||||
- [ ] **Фаза 4** — релизный коммит `1.0.0` (по явной команде)
|
||||
@@ -60,12 +60,12 @@
|
||||
|
||||
### Чек-лист
|
||||
|
||||
- [ ] `status_body.html`, `mail_queue_body.html`, `system_log_body.html`, `deliveries_rows.html` — `hx-trigger="load"` + маркер polling
|
||||
- [ ] `panel.js` — `lastActivity`, schedule после `htmx:afterRequest` (5s / 30s)
|
||||
- [ ] `htmx:afterSwap` — реинициализация polling-элементов
|
||||
- [ ] `beforeRequest` для hidden tab — оставлен
|
||||
- [ ] `architecture.md` — одна строка про polling
|
||||
- [ ] CHANGELOG `[Unreleased]`
|
||||
- [x] `status_body.html`, `mail_queue_body.html`, `system_log_body.html`, `deliveries_rows.html` — `hx-trigger="load"` + маркер polling
|
||||
- [x] `panel.js` — `lastActivity`, schedule после `htmx:afterRequest` (5s / 30s)
|
||||
- [x] `htmx:afterSwap` — реинициализация polling-элементов
|
||||
- [x] `beforeRequest` для hidden tab — оставлен
|
||||
- [x] `architecture.md` — одна строка про polling
|
||||
- [x] CHANGELOG `[Unreleased]`
|
||||
- [ ] Стенд (опционально): idle → ~30s; активность → ~5s; hidden → 0 запросов
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user