summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/constants.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-05 16:45:13 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-05 16:46:22 +0800
commitf34fd7e803f0e52f526b7a56c09fdb262ed9b8aa (patch)
tree5e6df4b73fc2721a9b23e43a94d5051e4f4f535d /crates/vcs_data/src/constants.rs
parent8b3b92b405ebc96416ec300ad3f6260bd8354864 (diff)
Update 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.
Diffstat (limited to 'crates/vcs_data/src/constants.rs')
-rw-r--r--crates/vcs_data/src/constants.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/vcs_data/src/constants.rs b/crates/vcs_data/src/constants.rs
index 1d17927..55662e7 100644
--- a/crates/vcs_data/src/constants.rs
+++ b/crates/vcs_data/src/constants.rs
@@ -54,7 +54,7 @@ pub const CLIENT_FILE_LATEST_INFO: &str = "./.jv/latest.json";
pub const CLIENT_FILE_SHEET_COPY: &str = "./.jv/sheets/{sheet_name}.copy.json";
// Client - Local Draft
-pub const CLIENT_PATH_LOCAL_DRAFT: &str = "./.jv/drafts/{sheet_name}/";
+pub const CLIENT_PATH_LOCAL_DRAFT: &str = "./.jv/drafts/{account}_{sheet_name}/";
// Client - Other
pub const CLIENT_FILE_IGNOREFILES: &str = "IGNORE_RULES.toml";