@trops/dash-core 0.1.291 → 0.1.293

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.
@@ -70947,6 +70947,9 @@ async function handleCreateDashboard$1({ name, layout }) {
70947
70947
  };
70948
70948
  }
70949
70949
 
70950
+ // Notify renderer so UI refreshes
70951
+ win.webContents.send("workspace:saved");
70952
+
70950
70953
  const response = { id: String(newWorkspace.id), name: newWorkspace.name };
70951
70954
  if (layout && layout.rows && layout.cols) {
70952
70955
  response.layout = { rows: layout.rows, cols: layout.cols };
@@ -71039,6 +71042,9 @@ async function handleDeleteDashboard$1({ dashboardId }) {
71039
71042
  };
71040
71043
  }
71041
71044
 
71045
+ // Notify renderer so UI refreshes
71046
+ win.webContents.send("workspace:saved");
71047
+
71042
71048
  return {
71043
71049
  content: [
71044
71050
  {
@@ -71389,6 +71395,9 @@ async function handleAddWidget$1({ dashboardId, widgetName, row, col }) {
71389
71395
  };
71390
71396
  }
71391
71397
 
71398
+ // Notify renderer so UI refreshes
71399
+ win.webContents.send("workspace:saved");
71400
+
71392
71401
  const response = {
71393
71402
  widgetId: String(newId),
71394
71403
  name: widgetName.trim(),
@@ -71490,6 +71499,9 @@ async function handleRemoveWidget$1({ dashboardId, widgetId }) {
71490
71499
  };
71491
71500
  }
71492
71501
 
71502
+ // Notify renderer so UI refreshes
71503
+ win.webContents.send("workspace:saved");
71504
+
71493
71505
  return {
71494
71506
  content: [
71495
71507
  {
@@ -71586,6 +71598,9 @@ async function handleConfigureWidget$1({ dashboardId, widgetId, config }) {
71586
71598
  };
71587
71599
  }
71588
71600
 
71601
+ // Notify renderer so UI refreshes
71602
+ win.webContents.send("workspace:saved");
71603
+
71589
71604
  return {
71590
71605
  content: [
71591
71606
  {
@@ -71618,12 +71633,18 @@ async function handleListWidgets$1() {
71618
71633
  if (pkg.type && pkg.type !== "widget") continue;
71619
71634
 
71620
71635
  for (const w of pkg.widgets || []) {
71636
+ const shortName = w.name || pkg.name;
71637
+ const scopedName =
71638
+ pkg.scope && pkg.name && w.name
71639
+ ? `${pkg.scope}.${pkg.name}.${w.name}`
71640
+ : shortName;
71621
71641
  widgets.push({
71622
- name: w.name || pkg.name,
71642
+ name: scopedName,
71623
71643
  displayName: w.displayName || w.name || pkg.displayName || pkg.name,
71624
71644
  description: w.description || pkg.description || "",
71625
71645
  icon: w.icon || pkg.icon || null,
71626
71646
  package: pkg.name,
71647
+ scope: pkg.scope || null,
71627
71648
  providers: (w.providers || pkg.providers || []).map((p) => ({
71628
71649
  type: p.type,
71629
71650
  providerClass: p.providerClass || "api",
@@ -71634,12 +71655,17 @@ async function handleListWidgets$1() {
71634
71655
 
71635
71656
  // If a package has no widgets array, treat the package itself as a widget
71636
71657
  if (!pkg.widgets || pkg.widgets.length === 0) {
71658
+ const scopedName =
71659
+ pkg.scope && pkg.name
71660
+ ? `${pkg.scope}.${pkg.name}.${pkg.name}`
71661
+ : pkg.name;
71637
71662
  widgets.push({
71638
- name: pkg.name,
71663
+ name: scopedName,
71639
71664
  displayName: pkg.displayName || pkg.name,
71640
71665
  description: pkg.description || "",
71641
71666
  icon: pkg.icon || null,
71642
71667
  package: pkg.name,
71668
+ scope: pkg.scope || null,
71643
71669
  providers: (pkg.providers || []).map((p) => ({
71644
71670
  type: p.type,
71645
71671
  providerClass: p.providerClass || "api",
@@ -71699,12 +71725,18 @@ async function handleSearchWidgets$1({ query }) {
71699
71725
  if (pkg.type && pkg.type !== "widget") continue;
71700
71726
 
71701
71727
  for (const w of pkg.widgets || []) {
71728
+ const shortName = w.name || pkg.name;
71729
+ const scopedName =
71730
+ pkg.scope && pkg.name && w.name
71731
+ ? `${pkg.scope}.${pkg.name}.${w.name}`
71732
+ : shortName;
71702
71733
  widgets.push({
71703
- name: w.name || pkg.name,
71734
+ name: scopedName,
71704
71735
  displayName: w.displayName || w.name || pkg.displayName || pkg.name,
71705
71736
  description: w.description || pkg.description || "",
71706
71737
  icon: w.icon || pkg.icon || null,
71707
71738
  package: pkg.name,
71739
+ scope: pkg.scope || null,
71708
71740
  providers: (w.providers || pkg.providers || []).map((p) => ({
71709
71741
  type: p.type,
71710
71742
  providerClass: p.providerClass || "api",
@@ -71714,12 +71746,17 @@ async function handleSearchWidgets$1({ query }) {
71714
71746
  }
71715
71747
 
71716
71748
  if (!pkg.widgets || pkg.widgets.length === 0) {
71749
+ const scopedName =
71750
+ pkg.scope && pkg.name
71751
+ ? `${pkg.scope}.${pkg.name}.${pkg.name}`
71752
+ : pkg.name;
71717
71753
  widgets.push({
71718
- name: pkg.name,
71754
+ name: scopedName,
71719
71755
  displayName: pkg.displayName || pkg.name,
71720
71756
  description: pkg.description || "",
71721
71757
  icon: pkg.icon || null,
71722
71758
  package: pkg.name,
71759
+ scope: pkg.scope || null,
71723
71760
  providers: (pkg.providers || []).map((p) => ({
71724
71761
  type: p.type,
71725
71762
  providerClass: p.providerClass || "api",
@@ -72764,6 +72801,9 @@ async function handleSetLayout$1({ dashboardId, rows, cols, gap, colModes }) {
72764
72801
  };
72765
72802
  }
72766
72803
 
72804
+ // Notify renderer so UI refreshes
72805
+ win.webContents.send("workspace:saved");
72806
+
72767
72807
  return {
72768
72808
  content: [
72769
72809
  {
@@ -72921,6 +72961,9 @@ async function handleUpdateLayout$1({ dashboardId, rows, cols, gap, colModes })
72921
72961
  };
72922
72962
  }
72923
72963
 
72964
+ // Notify renderer so UI refreshes
72965
+ win.webContents.send("workspace:saved");
72966
+
72924
72967
  return {
72925
72968
  content: [
72926
72969
  {
@@ -73101,6 +73144,9 @@ async function handleMoveWidget$1({ dashboardId, widgetId, row, col }) {
73101
73144
  };
73102
73145
  }
73103
73146
 
73147
+ // Notify renderer so UI refreshes
73148
+ win.webContents.send("workspace:saved");
73149
+
73104
73150
  const response = {
73105
73151
  widgetId,
73106
73152
  cell: { row: r, col: c },