@cat-factory/app 0.100.2 → 0.101.0

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.
@@ -137,6 +137,28 @@ async function testSavedKube() {
137
137
  }
138
138
  }
139
139
 
140
+ // Auto-probe a SAVED kube connection as soon as the window shows one, so the operator sees a
141
+ // LIVE verdict instead of a bare "connection established" card that only means a config is
142
+ // stored — the token can have silently expired (a `kubectl create token` token is short-lived)
143
+ // or the cluster been recreated, which the static card would misleadingly present as healthy.
144
+ // Keyed on the stored config so it re-probes after an edit, and resets when disconnected so a
145
+ // reconnect re-probes; the probe reuses the server-side saved token (empty secrets).
146
+ const autoTestedKubeKey = ref<string | null>(null)
147
+ watch(
148
+ kubeHandler,
149
+ (h) => {
150
+ if (!h) {
151
+ autoTestedKubeKey.value = null
152
+ return
153
+ }
154
+ const key = JSON.stringify(h.config)
155
+ if (autoTestedKubeKey.value === key) return
156
+ autoTestedKubeKey.value = key
157
+ void testSavedKube()
158
+ },
159
+ { immediate: true },
160
+ )
161
+
140
162
  async function testKubeOverride(payload: {
141
163
  config: KubeHandlerConfig
142
164
  secrets: Record<string, string>
@@ -61,6 +61,16 @@ export default defineI18nConfig(() => ({
61
61
  currency: { style: 'currency', currency: 'USD', currencyDisplay: 'narrowSymbol' },
62
62
  percent: { style: 'percent', maximumFractionDigits: 1 },
63
63
  },
64
+ de: {
65
+ decimal: { style: 'decimal' },
66
+ currency: { style: 'currency', currency: 'USD', currencyDisplay: 'narrowSymbol' },
67
+ percent: { style: 'percent', maximumFractionDigits: 1 },
68
+ },
69
+ it: {
70
+ decimal: { style: 'decimal' },
71
+ currency: { style: 'currency', currency: 'USD', currencyDisplay: 'narrowSymbol' },
72
+ percent: { style: 'percent', maximumFractionDigits: 1 },
73
+ },
64
74
  he: {
65
75
  decimal: { style: 'decimal' },
66
76
  currency: { style: 'currency', currency: 'USD', currencyDisplay: 'narrowSymbol' },
@@ -98,6 +108,14 @@ export default defineI18nConfig(() => ({
98
108
  short: { dateStyle: 'medium' },
99
109
  long: { dateStyle: 'long', timeStyle: 'short' },
100
110
  },
111
+ de: {
112
+ short: { dateStyle: 'medium' },
113
+ long: { dateStyle: 'long', timeStyle: 'short' },
114
+ },
115
+ it: {
116
+ short: { dateStyle: 'medium' },
117
+ long: { dateStyle: 'long', timeStyle: 'short' },
118
+ },
101
119
  he: {
102
120
  short: { dateStyle: 'medium' },
103
121
  long: { dateStyle: 'long', timeStyle: 'short' },