test: Manually add SVG file to momentry database for testing

Problem diagnosis:
- Upload API returns 201 Created 
- file_uuid generated: 9e553348... 
- But upload handler doesn't save to database 
- Tree API returns empty nodes []
- Frontend shows empty tree

Root cause:
- upload_file() handler only saves file to disk
- No database persistence logic
- hardcoded demo_dir path

Temporary solution:
- Manually inserted SVG to momentry.sqlite
- file_registry: 1 record (test.svg)
- file_nodes: 1 record (test.svg)
- Tree API now shows 1 node 

Permanent fix needed:
- Add FileTree::insert_node() logic to upload handler
- Save to user-specific database (momentry.sqlite)
- Use FileTree::new_file_node() to create node

Files:
- data/users/momentry.sqlite (added test.svg manually)
This commit is contained in:
Warren
2026-05-17 01:10:13 +08:00
parent 9b7b201230
commit b123fc9c47

Binary file not shown.