aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data
Commit message (Collapse)AuthorAgeFilesLines
* Update func `current_doc_dir` to `current_cfg_dir`魏曹先生2025-12-011-1/+1
|
* Update current.rs魏曹先生2025-12-011-2/+2
|
* Remove return value from `sign_vault_modified` function魏曹先生2025-11-241-6/+3
|
* Add vault modification tracking魏曹先生2025-11-232-5/+39
| | | | | | | - Record vault state changes in sheet operations - Track modifications when creating, dropping, or updating sheets - Mark vault as unmodified after syncing with upstream - Add vault_modified module with check and sign functions
* Apply clippy suggestions魏曹先生2025-11-238-76/+49
|
* Strip workspace prefix from new paths in moved file detection魏曹先生2025-11-221-0/+5
|
* Add align module for sorting file analysis results魏曹先生2025-11-222-0/+108
|
* Update local workspace initialization files魏曹先生2025-11-221-3/+11
| | | | | | - Change SETUP.md to SETUP.txt for the todo list - Add .gitignore file to ignore cached data and members - Use constant for workspace root folder name
* fix: Update constants and path references魏曹先生2025-11-202-6/+11
| | | | Rename CLIENT_FILE_MEMBER_HELD to CLIENT_FILE_LATEST_DATA, update all related path references and method names.
* update: Improve file update task processing魏曹先生2025-11-201-19/+31
| | | | Implement complete update task processing for both local and remote operations, add version validation and conflict detection.
* feat: Enhance version tracking in LatestFileData魏曹先生2025-11-202-9/+23
| | | | Extend LatestFileData to track file versions alongside holding status, update method signatures to include version information.
* feat: Add file update verification system魏曹先生2025-11-201-3/+3
| | | | Add comprehensive file update verification with detailed failure reasons including version mismatch, file not held, and missing descriptions.
* Rename MemberHeld to LatestFileData and add version tracking魏曹先生2025-11-201-5/+11
| | | | | The struct now tracks both file holding status and latest file versions for permission validation and update checks.
* Change function signatures to use references魏曹先生2025-11-191-1/+4
|
* Derive Clone for LocalConfig and fix mapping_mut signature魏曹先生2025-11-192-3/+3
| | | | | The mapping_mut method now returns a mutable reference to allow modifying the mapping HashMap directly.
* Add mutable mapping accessor methods to Sheet and SheetData魏曹先生2025-11-191-0/+10
|
* Add setter methods for LocalMappingMetadata fields魏曹先生2025-11-191-0/+40
|
* Use std::path::PathBuf in latest_info module魏曹先生2025-11-171-1/+4
|
* Use member-specific paths for latest info files魏曹先生2025-11-172-3/+18
|
* feat: Add file status tracking and SHA1 hash system魏曹先生2025-11-1710-81/+936
| | | | | | | - Implement SHA1 hash calculation module with async support - Add file status analysis for tracking moves, creates, and modifications - Enhance local file management with relative path handling - Update virtual file actions with improved tracking capabilities
* fix: Windows support魏曹先生2025-11-091-12/+76
|
* Add path formatting utility and local sheet management魏曹先生2025-11-074-15/+154
| | | | | | | - Implement format_path_str function to clean and normalize file paths - Add LocalSheet struct for tracking local file metadata - Support CRUD operations on local sheet mappings - Integrate path formatting into local sheet operations
* Add documentation for local cached data structures魏曹先生2025-11-072-0/+7
|
* feat: Add local data management modules (WIP)魏曹先生2025-11-063-0/+138
| | | | | | | - cached_sheet.rs: Cached sheet data management - local_sheet.rs: Local sheet mapping structure - member_held.rs: Member file holding status tracking - NOTE: These modules are still under development
* feat: Refactor local workspace management魏曹先生2025-11-061-36/+21
| | | | | | | - Replace README with TODO list template - Add Windows-specific .jv directory hiding - Reorganize local workspace setup logic - Update imports for new local data modules
* feat: Enhanced data structures and constants魏曹先生2025-11-064-49/+24
| | | | | | | - Add new constants for local workspace management - Extend SheetData with write_count functionality - Simplify vault data structures - Update sheet and virtual file data handling
* Update draft folder structure to include account name魏曹先生2025-11-052-5/+28
| | | | | | | | | The draft folder path now includes the account name to prevent conflicts when multiple accounts work on the same sheet. This requires updating the draft_folder method signature and all call sites. Additionally, account switching is now restricted when a sheet is in use to maintain data integrity.
* feat: Add rollback support for file movement魏曹先生2025-11-031-18/+58
| | | | | | - Implement MovedItem struct to track file operations - Add rollback logic for draft-to-local and local-to-draft moves - Improve error handling with automatic rollback on failures
* update: Local actions and data structures魏曹先生2025-11-032-3/+9
| | | | | | - Update local actions implementation - Improve latest info handling - Enhance vault sheets management
* feat: Implement sheet usage management魏曹先生2025-11-031-0/+223
| | | | | | - Add sheet_in_use field to LocalConfig - Implement use_sheet and exit_sheet methods - Add draft folder management for sheet switching
* feat: Add sheet creation action魏曹先生2025-11-031-12/+27
| | | | | | - Implement make_sheet_action for creating sheets - Add sheet-related constants - Update sheet data structures
* Add LatestInfo struct for client data persistence魏曹先生2025-10-301-0/+28
|
* Change auth_member to return MemberId on success魏曹先生2025-10-302-2/+17
| | | | | | The authentication function now returns the authenticated member's ID instead of just () when successful. This provides callers with access to the authenticated member's identity for subsequent operations.
* Improve vault lock error message and formatting魏曹先生2025-10-291-8/+6
| | | | | | - Use clearer error message when vault is already locked - Fix code formatting for consistency - Remove unnecessary line breaks in error formatting
* Make config fields thread-safe with Arc<Mutex>魏曹先生2025-10-292-8/+31
| | | | | | - Change LocalWorkspace config to Arc<Mutex<LocalConfig>> - Change Vault config to Arc<VaultConfig> - Add config accessor methods for both structs - Update initialization methods to wrap config in Arc/Mutex
* Fix error handling in process_connection魏曹先生2025-10-271-3/+2
|
* Add service module to vault魏曹先生2025-10-271-0/+1
|
* feat: Add Server Lock魏曹先生2025-10-271-0/+43
|
* Fix some spelling issues.魏曹先生2025-10-241-1/+1
|
* Fix Clippy warnings and optimize code魏曹先生2025-10-131-4/+4
| | | | | | | | | - Fix let_underscore_future warning by properly awaiting async functions - Make accept_import function async to match add_mapping usage - Propagate errors properly with ? operator instead of ignoring them - Replace manual Default implementation with derive attribute - Replace vec! with array literal to avoid useless_vec warning - All tests pass and code is now Clippy clean
* feat: Update data configuration structures魏曹先生2025-10-122-4/+99
| | | | | - Add new configuration fields for local and vault data - Remove outdated todo.txt file
* Move vcs crate to vcs_data for better separation of concerns魏曹先生2025-10-0611-0/+1865
- Rename vcs crate to vcs_data to clearly define data layer - Maintain all existing data structures and functionality - Update dependencies to include action_system integration - Preserve test structure in vcs_data_test directory