aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/sheet.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename vault admin to host and add serde renames魏曹先生2026-01-021-0/+6
| | | | | | | | - 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 sheet sharing functionality魏曹先生2025-12-251-0/+5
| | | | | | | - 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
* Remove legacy import/export mechanism魏曹先生2025-12-241-196/+0
| | | | | | | | | | - 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
* Remove unnecessary edit rights check in sheet mapping魏曹先生2025-12-151-35/+11
| | | | | | | 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.
* Add edit mapping action for sheet operations魏曹先生2025-12-151-0/+3
|
* Apply clippy suggestions魏曹先生2025-11-231-5/+3
|
* Derive Clone for LocalConfig and fix mapping_mut signature魏曹先生2025-11-191-2/+2
| | | | | 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
|
* feat: Add file status tracking and SHA1 hash system魏曹先生2025-11-171-18/+91
| | | | | | | - 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
* feat: Enhanced data structures and constants魏曹先生2025-11-061-1/+20
| | | | | | | - 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-051-0/+10
| | | | | | | | | 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 sheet creation action魏曹先生2025-11-031-12/+27
| | | | | | - Implement make_sheet_action for creating sheets - Add sheet-related constants - Update sheet data structures
* Change auth_member to return MemberId on success魏曹先生2025-10-301-2/+16
| | | | | | 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.
* 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
* Move vcs crate to vcs_data for better separation of concerns魏曹先生2025-10-061-0/+347
- 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