@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.
@@ -6644,12 +6644,12 @@ class MainService extends BaseApiService {
6644
6644
  // TODO:
6645
6645
  // Don't accept updateStore in ComponentService.list. Just return the offline objects and promise. Here, if
6646
6646
  // overwrite, use setComponents. Otherwise, use bulkAddComponents.
6647
- // TODO: This needs major cleanup
6647
+ // TODO: This needs major cleanup. Send less in the initial data: Only the basic project info and anything needed
6648
+ // literally immediately.
6648
6649
  async _processInitialData(data, overwrite) {
6649
6650
  var _a2, _b, _c;
6650
6651
  const workspaces = {};
6651
6652
  const projects = [];
6652
- const categories = [];
6653
6653
  const projectsData = data.projects;
6654
6654
  const { store } = this.client;
6655
6655
  const oldProjectId = (_a2 = projectsData.find(
@@ -6673,18 +6673,12 @@ class MainService extends BaseApiService {
6673
6673
  isProjectIdValid = true;
6674
6674
  for (const workspaceData of projectData.workspaces) {
6675
6675
  const workspace = { ...workspaceData, project: projectData.id };
6676
- if (workspace.categories) {
6677
- for (const category of workspace.categories) {
6678
- categories.push(category);
6679
- }
6680
- }
6681
6676
  delete workspace.categories;
6682
6677
  workspaces[workspace.offline_id] = workspace;
6683
6678
  }
6684
6679
  }
6685
6680
  }
6686
6681
  store.dispatch(setCurrentUser(data.user));
6687
- store.dispatch(addUsers(data.project_owners));
6688
6682
  store.dispatch(setLicenses(data.licenses));
6689
6683
  const organizationsData = data.organizations;
6690
6684
  store.dispatch(setOrganizations(organizationsData));
@@ -6719,12 +6713,6 @@ class MainService extends BaseApiService {
6719
6713
  if (projectData) {
6720
6714
  for (const workspaceData of projectData.workspaces) {
6721
6715
  const workspace = { ...workspaceData, project: projectData.id };
6722
- if (workspace.categories) {
6723
- for (const category of workspace.categories) {
6724
- categories.push(category);
6725
- }
6726
- }
6727
- delete workspace.categories;
6728
6716
  workspaces[workspace.offline_id] = workspace;
6729
6717
  }
6730
6718
  }
@@ -6783,13 +6771,11 @@ class MainService extends BaseApiService {
6783
6771
  console.log("Overwriting data");
6784
6772
  store.dispatch(setProjects(projects));
6785
6773
  store.dispatch(setWorkspaces(workspaces));
6786
- store.dispatch(setCategories(categories));
6787
6774
  store.dispatch(resetRecentIssues());
6788
6775
  } else {
6789
6776
  console.log("Updating data (collisions will be replaced)");
6790
6777
  store.dispatch(addOrReplaceProjects(projects));
6791
6778
  store.dispatch(addOrReplaceWorkspaces(workspaces));
6792
- store.dispatch(addOrReplaceCategories(categories));
6793
6779
  }
6794
6780
  }
6795
6781
  }