Files
vesti/openspec/changes/fix-selected-detail-panel/tasks.md
T

25 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. Партиал
- [x] 1.1: `_detail_selected.html` создан переносом DOM из `selected.html` (1:1, + `id="detail-panel"` и hx-атрибуты)
- [x] 1.2: `selected.html` подключает партиал через `{% include %}`, инлайновый блок удалён (199 → 48 строк)
- [x] 1.3: баланс `<div>`/`</div>` в партиале сходится (23/23)
## 2. Роут
- [x] 2.1: `GET /selected` — ветка `HX-Target: detail-panel` рендерит `_detail_selected.html`
- [x] 2.2: ветка `list-panel`/прочее поведение не изменилось (проба: 5431 байт, как до правки)
## 3. Проверка
- [x] 3.1: офлайн-сравнение полной страницы до/после: единственное отличие — атрибуты обёртки
(`id="detail-panel"`, `hx-get`, `hx-trigger="refresh-detail from:body"`, `hx-target`, `hx-swap`), остальной DOM идентичен
- [x] 3.2: проба на :8411 — `HX-Target: detail-panel` → 11830 байт с `detail-panel`+`approve-form`, без `list-panel`;
`HX-Target: list-panel` → 5431 байт, список без деталей (до правки detail-panel отдавал СПИСОК — баг воспроизведён)
- [x] 3.3: прод :8400 перезапущен: `systemctl is-active` = active, `/login` 200, `/selected` без сессии → 303,
в журнале ошибок нет; визуальная приёмка — за пользователем (сессия слетела при рестарте)
## 4. Документация
- [x] 4.1: STATUS/TODO/WALKTHROUGH — запись о фиксе
- [x] 4.2: `vesti-ops` — питфол HTMX-веток `/candidates` vs `/selected`