@scalio-cloud/ui 0.49.0 → 0.49.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalio-cloud/ui",
3
- "version": "0.49.0",
3
+ "version": "0.49.1",
4
4
  "description": "Scalio Control Room design tokens, Tailwind preset, self-hosted fonts, the shared app header, sign-in layout, sidebar and page blocks",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "private": false,
@@ -62,6 +62,7 @@ const LABELS = {
62
62
  lastDone: "{version} installiert am {at}",
63
63
  lastError: "{version} fehlgeschlagen am {at}, zurück auf der alten Version",
64
64
  unreachable: "Compass ist gerade nicht erreichbar. Updates laufen trotzdem wie geplant.",
65
+ notConnected: "Die Verbindung dieser Instanz zu Scalio wird gerade eingerichtet. Danach sehen Sie hier die Updates. Bleibt diese Meldung länger als eine Stunde, melden Sie sich bitte beim Support.",
65
66
  saved: "Gespeichert.",
66
67
  weekdays: ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
67
68
  },
@@ -115,6 +116,7 @@ const LABELS = {
115
116
  lastDone: "{version} installed on {at}",
116
117
  lastError: "{version} failed on {at}, back on the old version",
117
118
  unreachable: "Compass cannot be reached right now. Updates still run as planned.",
119
+ notConnected: "Scalio is still setting up the connection of this instance. The updates show here once it is ready. If this message stays for more than an hour, please contact support.",
118
120
  saved: "Saved.",
119
121
  weekdays: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
120
122
  },
@@ -306,6 +308,13 @@ function SaasUpdatesPanel(props) {
306
308
  error ? h("div", { className: "scalio-notice is-error", role: "alert" }, error) : null);
307
309
  if (st.saas === false) return null;
308
310
 
311
+ // No active support connection: nothing to show or change until Compass has paired the instance (in SaaS
312
+ // Compass pairs it, never the customer). Older scalio-connect only sends the error text.
313
+ if (st.connected === false || (st.connected === undefined && st.error === "Keine Verbindung zu Compass")) {
314
+ return h(SettingsSection, { id: "updates", title: L.title, description: L.hint, testId: "saas-updates" },
315
+ h("div", { className: "scalio-notice is-warn", "data-testid": "saas-updates-not-connected" }, L.notConnected));
316
+ }
317
+
309
318
  const offer = st.offer;
310
319
  const rows = [];
311
320
  if (st.reachable === false) rows.push(h("div", { key: "u", className: "scalio-notice is-warn", "data-testid": "saas-updates-unreachable" }, L.unreachable));