summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/sheet.rs
AgeCommit message (Collapse)Author
2026-01-02Rename vault admin to host and add serde renames魏曹先生
- 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
2025-12-25Add sheet sharing functionality魏曹先生
- Add `rand` dependency for generating share IDs - Update share path to include sheet name subdirectory - Add mutable accessor for sheet ID mapping - Add sheet_share module to vault data structures
2025-12-24Remove legacy import/export mechanism魏曹先生
- Delete InputPackage struct and related types - Remove inputs field from SheetData - Remove input management methods (add_input, deny_input, accept_import) - Remove export functionality (output_mappings, find_longest_common_prefix) - Update tests to remove input-related assertions - Clean up unused imports and dependencies
2025-12-15Remove unnecessary edit rights check in sheet mapping魏曹先生
The permission check for virtual file edit rights when adding a sheet mapping was meaningless since the mapping operation doesn't actually modify the virtual file content. The mapping can now be added regardless of the member's edit rights to the virtual file.
2025-12-15Add edit mapping action for sheet operations魏曹先生
2025-11-23Apply clippy suggestions魏曹先生
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-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-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 sheet creation action魏曹先生
- Implement make_sheet_action for creating sheets - Add sheet-related constants - Update sheet data structures
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-13Fix Clippy warnings and optimize code魏曹先生
- 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
2025-10-06Move vcs crate to vcs_data for better separation of concerns魏曹先生
- 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