@datalabz_/dashboard-kit 6.0.6 → 6.0.7

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.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/v4.js +1 -1
  3. package/v5.js +1 -1
  4. package/v6.js +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalabz_/dashboard-kit",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "description": "DashboardKit runtime + styles, served from jsDelivr",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/v4.js CHANGED
@@ -20,7 +20,7 @@
20
20
  let _activeTabId = '';
21
21
  let _sections = []; // { id, label, load, loaded, errors }
22
22
  let _title = '';
23
- let _gitVer = 'cc1be64'; // replaced at deploy: sed -i "s/cc1be64/$(git rev-parse --short HEAD)/g" v4.js
23
+ let _gitVer = '35ea6ab'; // replaced at deploy: sed -i "s/35ea6ab/$(git rev-parse --short HEAD)/g" v4.js
24
24
  let _calls = []; // System Info call log
25
25
  let _sectionErrors = {}; // sectionId → error count
26
26
  let _generation = 0;
package/v5.js CHANGED
@@ -20,7 +20,7 @@
20
20
  let _activeTabId = '';
21
21
  let _sections = []; // { id, label, load, loaded, errors }
22
22
  let _title = '';
23
- let _gitVer = 'cc1be64'; // replaced at deploy: sed -i "s/cc1be64/$(git rev-parse --short HEAD)/g" v4.js
23
+ let _gitVer = '35ea6ab'; // replaced at deploy: sed -i "s/35ea6ab/$(git rev-parse --short HEAD)/g" v4.js
24
24
  let _calls = []; // System Info call log
25
25
  let _sectionErrors = {}; // sectionId → error count
26
26
  let _generation = 0;
package/v6.js CHANGED
@@ -20,7 +20,7 @@
20
20
  let _activeTabId = '';
21
21
  let _sections = []; // { id, label, load, loaded, errors }
22
22
  let _title = '';
23
- let _gitVer = 'cc1be64'; // replaced at deploy: sed -i "s/cc1be64/$(git rev-parse --short HEAD)/g" v6.js
23
+ let _gitVer = '35ea6ab'; // replaced at deploy: sed -i "s/35ea6ab/$(git rev-parse --short HEAD)/g" v6.js
24
24
  let _calls = []; // System Info call log
25
25
  let _sectionErrors = {}; // sectionId → error count
26
26
  let _generation = 0;
@@ -1795,10 +1795,14 @@ html[data-dk-setup="true"] .dk-resp-toggle {
1795
1795
  const sec = _sections.find(function (s) { return s.id === sectionId; });
1796
1796
  // failedCall is err.dkCall from runQuery; without one the rejection didn't
1797
1797
  // come from a gateway call at all — that's kind 'script'. The operator gets
1798
- // a fixed phrase; the raw text goes to the parent via "Ask AI to fix" and to
1799
- // System Info. No panel Retry: the header's Refresh covers it.
1798
+ // a fixed phrase, with the wait when no response arrived; the raw text goes to
1799
+ // the parent via "Ask AI to fix" and to System Info. No panel Retry: the
1800
+ // header's Refresh covers it.
1801
+ const cause = failedCall && failedCall.kind === 'transport'
1802
+ ? ': Network error after ' + (failedCall.clientMs / 1000).toFixed(2) + 's.'
1803
+ : '';
1800
1804
  container.innerHTML =
1801
- '<div class="dk-error"><span>This view couldn\'t load</span>' +
1805
+ '<div class="dk-error"><span>This view couldn\'t load' + cause + '</span>' +
1802
1806
  '<button class="dk-error-report-btn" type="button">Ask AI to fix</button></div>';
1803
1807
 
1804
1808
  const reportBtn = container.querySelector('.dk-error-report-btn');