aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/local
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in field names from "modifiy" to "modify"魏曹先生2026-01-102-21/+21
|
* Fix typo in module name from "dada_sort" to "data_sort"魏曹先生2026-01-081-1/+1
| | | | | | The module was accidentally named "dada_sort" instead of "data_sort". :)
* Add file_histories method to LatestFileData魏曹先生2026-01-041-0/+8
|
* Include file histories in latest info updates魏曹先生2026-01-031-4/+16
|
* Rename vault admin to host and add serde renames魏曹先生2026-01-024-4/+27
| | | | | | | | - Rename `vault_admin_list` to `vault_host_list` in config and actions - Add `#[serde(rename)]` attributes to all data structures for shorter JSON keys - Update field renames in LocalConfig, LatestFileData, LatestInfo, LocalSheetData, Member, SheetData, Share, and VirtualFileMeta
* Add ref sheet VFS mapping to LatestInfo魏曹先生2026-01-021-2/+8
| | | | | | This adds a reverse mapping from virtual file IDs to their actual paths in reference sheets, which is needed for proper file resolution during operations that reference files by ID.
* Add host mode and update sheet visibility model魏曹先生2026-01-022-5/+34
| | | | | | | | | - Add `using_host_mode` field to LocalConfig with getter/setter - Replace `my_sheets`/`other_sheets` with `visible_sheets`/`invisible_sheets` - Add `reference_sheets` set for host-owned sheets - Add `shares_in_my_sheets` map to track external merge requests - Update `use_sheet` to check `visible_sheets` instead of `my_sheets`
* Replace tokio::Instant with std::time::SystemTime for update timestampsWeicao-CatilGrass2025-12-161-44/+3
|
* Add getter and setter for last_modifiy_check_hash and remove_mapping魏曹先生2025-12-151-0/+25
| | | | method
* Rename AlignTasksName type to AlignTaskName魏曹先生2025-12-151-5/+5
|
* Prevent lost file classification for erased directories魏曹先生2025-12-151-12/+13
| | | | | The lost files calculation now filters out paths that are already marked as erased, avoiding duplicate classification.
* Rename `file_status` to `workspace_analyzer`魏曹先生2025-12-152-1/+1
|
* Add edit mapping action for sheet operations魏曹先生2025-12-152-0/+25
|
* Match moved files using latest hash instead of initial hash魏曹先生2025-12-112-9/+31
|
* Change add_mapping to accept path by reference魏曹先生2025-12-041-1/+1
|
* Remove return value from `sign_vault_modified` function魏曹先生2025-11-241-6/+3
|
* Add vault modification tracking魏曹先生2025-11-231-0/+33
| | | | | | | - 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-236-63/+40
|
* 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-221-0/+107
|
* 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-201-6/+15
| | | | Extend LatestFileData to track file versions alongside holding status, update method signatures to include version information.
* 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-191-1/+1
| | | | | The mapping_mut method now returns a mutable reference to allow modifying the mapping HashMap directly.
* 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-176-51/+763
| | | | | | | - 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
* Add path formatting utility and local sheet management魏曹先生2025-11-073-12/+99
| | | | | | | - 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
* Update draft folder structure to include account name魏曹先生2025-11-051-5/+18
| | | | | | | | | 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-031-2/+8
| | | | | | - 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
* Add LatestInfo struct for client data persistence魏曹先生2025-10-301-0/+28
|
* feat: Update data configuration structures魏曹先生2025-10-121-0/+25
| | | | | - 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-061-0/+53
- 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