-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Feature]: Show disk-persisted courses on home page #214
Description
Problem or Motivation
The home page course list calls listStages() which reads from browser IndexedDB only. Courses stored on disk in data/classrooms/*.json are not shown on the home page.
After a server restart or in a different browser, the "Recent" section on the home page appears empty even when courses exist on disk.
Once #213 merges, users can access a persisted course in any browser by pasting the direct classroom URL (http://localhost:3000/classroom/{id}). But there is no way to discover or list courses from disk on the home page.
Environment
- Discovered while investigating and fixing [Bug] 课程数据未持久化到服务器磁盘 #53
Proposed Solution
On home page load, read data/classrooms/*.json from disk alongside listStages() from IndexedDB, then merge and deduplicate the results by classroom ID before rendering the recent courses section. Courses found on disk should display with their title and scene count from the JSON file.
Alternatives Considered
No response
Area
UI / UX
Additional Context
No response