fix: re-fetch instrument data after login for new machines
Auth success handler now eagerly loads instrumentSelectorData via listPlugins + getSoundfontCatalog. The mount-time useEffect runs before auth token is set, so it silently fails on new machines.
This commit is contained in:
@@ -795,3 +795,9 @@
|
||||
- **Tóm tắt thay đổi:** Xóa `else` branch trong `seed_admin()` — từng kiểm tra `if not verify_password(default_pwd, ...)` và reset password admin về `admin123` + `must_change_password=1` mỗi lần server restart nếu password đã bị đổi. Giờ chỉ create admin khi chưa tồn tại.
|
||||
- **Các file ảnh hưởng:** `app/core/auth.py`
|
||||
---
|
||||
|
||||
### [2026-07-29 11:34] Task: Fix instrument list not loading on new machine after login
|
||||
- **Tóm tắt thay đổi:** Thêm `listPlugins()` + `getSoundfontCatalog()` fetch trong `handleAuthSuccess` — re-fetch instrument data sau khi login vì useEffect mount chạy trước khi token được set, fail silent.
|
||||
- **Các file ảnh hưởng:** `app/static/js/app.jsx`
|
||||
- **Ghi chú/Test (nếu có):** `npm run build` — build passes.
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user