summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src
AgeCommit message (Collapse)Author
2025-12-15Prevent lost file classification for erased directories魏曹先生
The lost files calculation now filters out paths that are already marked as erased, avoiding duplicate classification.
2025-12-15Rename `file_status` to `workspace_analyzer`魏曹先生
2025-12-15Add edit mapping action for sheet operations魏曹先生
2025-12-11Add constant for VF meta file name魏曹先生
2025-12-11Match moved files using latest hash instead of initial hash魏曹先生
2025-12-04Change add_mapping to accept path by reference魏曹先生
2025-12-02Add fallback defaults for optional config fields魏曹先生
Make server config fields optional and provide default values when missing. This ensures backward compatibility and graceful handling of partial configuration.
2025-12-01Update vault.rs魏曹先生
2025-12-01Change default vault auth mode from password to key魏曹先生
2025-12-01Refactor vault config to use template-based generation魏曹先生
- Replace direct serialization with template-based config file generation - Add new dependencies: whoami, redox_syscall, wasite, web-sys - Update VaultConfig structure with new enum types and serialization attributes - Modify setup_vault to accept vault_name parameter and use template - Update all test calls to include vault_name parameter
2025-12-01Add logger configuration to VaultServerConfig魏曹先生
2025-12-01Update func `current_doc_dir` to `current_cfg_dir`魏曹先生
2025-12-01Update current.rs魏曹先生
2025-11-26Update gitignore patterns for cached data魏曹先生
Change from ignoring "cached" directory and "members" file to ignoring "/cache/" directory and ".vault_modified" file
2025-11-24Migrate client configuration and cache files to TOML/YAML formats魏曹先生
2025-11-24Implement file synchronization in track file action魏曹先生
- Add sync task processing for both local and remote operations - Use temp files for secure download operations - Update file metadata after successful synchronization - Add proper error handling and cleanup for sync operations - Display sync progress with appropriate status symbols
2025-11-24Remove return value from `sign_vault_modified` function魏曹先生
2025-11-23Add vault modification tracking魏曹先生
- 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
2025-11-23Apply clippy suggestions魏曹先生
2025-11-22Strip workspace prefix from new paths in moved file detection魏曹先生
2025-11-22Add align module for sorting file analysis results魏曹先生
2025-11-22Update local workspace initialization files魏曹先生
- 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
2025-11-20fix: Update constants and path references魏曹先生
Rename CLIENT_FILE_MEMBER_HELD to CLIENT_FILE_LATEST_DATA, update all related path references and method names.
2025-11-20update: Improve file update task processing魏曹先生
Implement complete update task processing for both local and remote operations, add version validation and conflict detection.
2025-11-20feat: Enhance version tracking in LatestFileData魏曹先生
Extend LatestFileData to track file versions alongside holding status, update method signatures to include version information.
2025-11-20feat: Add file update verification system魏曹先生
Add comprehensive file update verification with detailed failure reasons including version mismatch, file not held, and missing descriptions.
2025-11-20Rename MemberHeld to LatestFileData and add version tracking魏曹先生
The struct now tracks both file holding status and latest file versions for permission validation and update checks.
2025-11-19Change function signatures to use references魏曹先生
2025-11-19Derive Clone for LocalConfig and fix mapping_mut signature魏曹先生
The mapping_mut method now returns a mutable reference to allow modifying the mapping HashMap directly.
2025-11-19Add mutable mapping accessor methods to Sheet and SheetData魏曹先生
2025-11-19Add setter methods for LocalMappingMetadata fields魏曹先生
2025-11-17Use std::path::PathBuf in latest_info module魏曹先生
2025-11-17Use config directory for jvcs data魏曹先生
The data directory is changed from the system's document directory to the local config directory, and the folder name is shortened from ".just_enough_vcs" to "jvcs".
2025-11-17Change sheet file format from JSON to TOML魏曹先生
Update file extension constants for local sheets, cached sheets, and member held files from .json to .toml. Also consolidate wrong file constants to use consistent .json extension.
2025-11-17Use member-specific paths for latest info files魏曹先生
2025-11-17feat: Add file status tracking and SHA1 hash system魏曹先生
- 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
2025-11-09fix: Windows support魏曹先生
2025-11-07Add path formatting utility and local sheet management魏曹先生
- 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
2025-11-07Add documentation for local cached data structures魏曹先生
2025-11-06feat: Add local data management modules (WIP)魏曹先生
- 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
2025-11-06feat: Refactor local workspace management魏曹先生
- Replace README with TODO list template - Add Windows-specific .jv directory hiding - Reorganize local workspace setup logic - Update imports for new local data modules
2025-11-06feat: Enhanced data structures and constants魏曹先生
- Add new constants for local workspace management - Extend SheetData with write_count functionality - Simplify vault data structures - Update sheet and virtual file data handling
2025-11-05Update draft folder structure to include account name魏曹先生
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.
2025-11-03feat: Add rollback support for file movement魏曹先生
- 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
2025-11-03update: Local actions and data structures魏曹先生
- Update local actions implementation - Improve latest info handling - Enhance vault sheets management
2025-11-03feat: Implement sheet usage management魏曹先生
- Add sheet_in_use field to LocalConfig - Implement use_sheet and exit_sheet methods - Add draft folder management for sheet switching
2025-11-03feat: Add sheet creation action魏曹先生
- Implement make_sheet_action for creating sheets - Add sheet-related constants - Update sheet data structures
2025-10-30Add LatestInfo struct for client data persistence魏曹先生
2025-10-30Change auth_member to return MemberId on success魏曹先生
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.
2025-10-29Improve vault lock error message and formatting魏曹先生
- Use clearer error message when vault is already locked - Fix code formatting for consistency - Remove unnecessary line breaks in error formatting