From 9834142e9673019e8e3b0625b72a48a6201f3934 Mon Sep 17 00:00:00 2001 From: JTran-IDM Date: Wed, 13 Aug 2025 13:22:56 -0700 Subject: [PATCH 01/20] feat: shouldShowDocumentPanel --- .../container/mode/FocusAnnotation.vue | 10 +- .../mode/useDocumentViewModel.spec.js | 208 ++++++++++++++++++ .../container/mode/useDocumentViewModel.ts | 11 +- 3 files changed, 218 insertions(+), 11 deletions(-) create mode 100644 extralit-frontend/components/features/annotation/container/mode/useDocumentViewModel.spec.js diff --git a/extralit-frontend/components/features/annotation/container/mode/FocusAnnotation.vue b/extralit-frontend/components/features/annotation/container/mode/FocusAnnotation.vue index e6d52f96f..8af25fc84 100644 --- a/extralit-frontend/components/features/annotation/container/mode/FocusAnnotation.vue +++ b/extralit-frontend/components/features/annotation/container/mode/FocusAnnotation.vue @@ -1,7 +1,7 @@ - - - - diff --git a/extralit-frontend/translation/en.js b/extralit-frontend/translation/en.js index da4167871..26b125b2c 100644 --- a/extralit-frontend/translation/en.js +++ b/extralit-frontend/translation/en.js @@ -297,6 +297,9 @@ export default { datasets: "Datasets", documents: "Documents", }, + document: { + notFound: "Document not found", + }, import: { title: "Import Documents to {workspaceName} Workspace", historyTitle: "Import History", diff --git a/extralit/src/extralit/settings/_resource.py b/extralit/src/extralit/settings/_resource.py index ce2d24d67..ea3f8b659 100644 --- a/extralit/src/extralit/settings/_resource.py +++ b/extralit/src/extralit/settings/_resource.py @@ -251,8 +251,7 @@ def to_json(self, path: Union[Path, str]) -> None: """ if not isinstance(path, Path): path = Path(path) - if path.exists(): - raise FileExistsError(f"File {path} already exists") + path.parent.mkdir(parents=True, exist_ok=True) with open(path, "w") as file: json.dump(self.serialize(), file) From 3ab6b4c2d21f826ec0c4dc2634eaa2de14bdd45d Mon Sep 17 00:00:00 2001 From: JonnyTran Date: Wed, 13 Aug 2025 17:52:55 -0700 Subject: [PATCH 10/20] fix --- .../features/import/analysis/ImportAnalysisTable.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extralit-frontend/components/features/import/analysis/ImportAnalysisTable.vue b/extralit-frontend/components/features/import/analysis/ImportAnalysisTable.vue index bc8610cd2..cf23c7264 100644 --- a/extralit-frontend/components/features/import/analysis/ImportAnalysisTable.vue +++ b/extralit-frontend/components/features/import/analysis/ImportAnalysisTable.vue @@ -613,8 +613,11 @@ export default { }, setup(props) { - return useImportAnalysisTableViewModel(props); - }, + const viewModel = useImportAnalysisTableViewModel(props); + return { + ...viewModel, + }; + } }; From bd4d1647dda7a79b8b3493085d6e04edf0405101 Mon Sep 17 00:00:00 2001 From: JonnyTran Date: Wed, 13 Aug 2025 17:58:06 -0700 Subject: [PATCH 11/20] latest --- .../features/import/history/ImportHistoryList.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/extralit-frontend/components/features/import/history/ImportHistoryList.vue b/extralit-frontend/components/features/import/history/ImportHistoryList.vue index 09765c098..04c2be05f 100644 --- a/extralit-frontend/components/features/import/history/ImportHistoryList.vue +++ b/extralit-frontend/components/features/import/history/ImportHistoryList.vue @@ -1,12 +1,5 @@