aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/local/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename vault admin to host and add serde renames魏曹先生2026-01-021-0/+5
| | | | | | | | - 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 host mode and update sheet visibility model魏曹先生2026-01-021-1/+16
| | | | | | | | | - 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`
* Apply clippy suggestions魏曹先生2025-11-231-16/+12
|
* 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.
* Use member-specific paths for latest info files魏曹先生2025-11-171-1/+6
|
* 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
* 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: 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