@overmap-ai/core 1.0.53-add-agent-conversations.11 → 1.0.53-add-agent-conversations.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6634,12 +6634,12 @@ var __publicField = (obj, key, value) => {
|
|
|
6634
6634
|
// TODO:
|
|
6635
6635
|
// Don't accept updateStore in ComponentService.list. Just return the offline objects and promise. Here, if
|
|
6636
6636
|
// overwrite, use setComponents. Otherwise, use bulkAddComponents.
|
|
6637
|
-
// TODO: This needs major cleanup
|
|
6637
|
+
// TODO: This needs major cleanup. Send less in the initial data: Only the basic project info and anything needed
|
|
6638
|
+
// literally immediately.
|
|
6638
6639
|
async _processInitialData(data, overwrite) {
|
|
6639
6640
|
var _a2, _b, _c;
|
|
6640
6641
|
const workspaces = {};
|
|
6641
6642
|
const projects = [];
|
|
6642
|
-
const categories = [];
|
|
6643
6643
|
const projectsData = data.projects;
|
|
6644
6644
|
const { store } = this.client;
|
|
6645
6645
|
const oldProjectId = (_a2 = projectsData.find(
|
|
@@ -6663,18 +6663,12 @@ var __publicField = (obj, key, value) => {
|
|
|
6663
6663
|
isProjectIdValid = true;
|
|
6664
6664
|
for (const workspaceData of projectData.workspaces) {
|
|
6665
6665
|
const workspace = { ...workspaceData, project: projectData.id };
|
|
6666
|
-
if (workspace.categories) {
|
|
6667
|
-
for (const category of workspace.categories) {
|
|
6668
|
-
categories.push(category);
|
|
6669
|
-
}
|
|
6670
|
-
}
|
|
6671
6666
|
delete workspace.categories;
|
|
6672
6667
|
workspaces[workspace.offline_id] = workspace;
|
|
6673
6668
|
}
|
|
6674
6669
|
}
|
|
6675
6670
|
}
|
|
6676
6671
|
store.dispatch(setCurrentUser(data.user));
|
|
6677
|
-
store.dispatch(addUsers(data.project_owners));
|
|
6678
6672
|
store.dispatch(setLicenses(data.licenses));
|
|
6679
6673
|
const organizationsData = data.organizations;
|
|
6680
6674
|
store.dispatch(setOrganizations(organizationsData));
|
|
@@ -6709,12 +6703,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6709
6703
|
if (projectData) {
|
|
6710
6704
|
for (const workspaceData of projectData.workspaces) {
|
|
6711
6705
|
const workspace = { ...workspaceData, project: projectData.id };
|
|
6712
|
-
if (workspace.categories) {
|
|
6713
|
-
for (const category of workspace.categories) {
|
|
6714
|
-
categories.push(category);
|
|
6715
|
-
}
|
|
6716
|
-
}
|
|
6717
|
-
delete workspace.categories;
|
|
6718
6706
|
workspaces[workspace.offline_id] = workspace;
|
|
6719
6707
|
}
|
|
6720
6708
|
}
|
|
@@ -6773,13 +6761,11 @@ var __publicField = (obj, key, value) => {
|
|
|
6773
6761
|
console.log("Overwriting data");
|
|
6774
6762
|
store.dispatch(setProjects(projects));
|
|
6775
6763
|
store.dispatch(setWorkspaces(workspaces));
|
|
6776
|
-
store.dispatch(setCategories(categories));
|
|
6777
6764
|
store.dispatch(resetRecentIssues());
|
|
6778
6765
|
} else {
|
|
6779
6766
|
console.log("Updating data (collisions will be replaced)");
|
|
6780
6767
|
store.dispatch(addOrReplaceProjects(projects));
|
|
6781
6768
|
store.dispatch(addOrReplaceWorkspaces(workspaces));
|
|
6782
|
-
store.dispatch(addOrReplaceCategories(categories));
|
|
6783
6769
|
}
|
|
6784
6770
|
}
|
|
6785
6771
|
}
|