Commit graph

3 commits

Author SHA1 Message Date
2ff8d57c08 feat(mse): shared bot modal component + pagination on positions/bots
- Extract bot creation modal to _bot_modal.html partial (TomSelect, min_notional display)
- bots.html and index.html now include the partial via {% include %}
- Remove duplicate modal JS from bots.html; add onBotCreated/onModeChange hooks
- Add 20-item pagination to positions.html (open + closed tables)
- positions.html: remove redundant loadMode (handled by _header.html partial)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 10:45:06 +03:00
64806dd32e feat(mse): minijinja template engine, shared header partial
- tmpl.rs: OnceLock ile build-time compile edilmiş minijinja env
- _header.html: ortak header partial — logo, nav (active_page değişkeni), mode-toggle, çıkış
- index.html, bots.html, positions.html: hardcoded header → {% include "_header.html" %}
- bots.html: + Yeni Bot butonu header'dan page-toolbar'a taşındı

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 20:26:15 +03:00
5db9332157 feat(mse): unified header, testnet order tracking, bot restart on update
- Ortak header yapısı: logo sol, nav orta (Dashboard/Botlar/Pozisyonlar), mode+çıkış sağ — index.html, bots.html, bot.html hepsinde aynı
- positions.html eklendi (yeni /positions sayfası)
- runner.rs: 30s periyodik order status sorgusu — FILLED/CANCELED pozisyonları closed_positions'a taşır, open_positions'dan siler
- update_bot: çalışan bot varsa durdur + yeni config ile yeniden başlat
- initChart guard: çift grafik oluşmasını engeller
- routes.rs: /positions route eklendi, unused import temizlendi

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 20:19:56 +03:00