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:
Binary file not shown.
Reference in New Issue
Block a user