@stack-spot/portal-components 2.24.2 → 2.24.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.24.3](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.24.2...portal-components@v2.24.3) (2025-07-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * adjusts error messages in Ai ([#1274](https://github.com/stack-spot/portal-commons/issues/1274)) ([09aad8b](https://github.com/stack-spot/portal-commons/commit/09aad8b3cf8538d14455203be201beec03716d51))
9
+
3
10
  ## [2.24.2](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.24.1...portal-components@v2.24.2) (2025-07-22)
4
11
 
5
12
 
@@ -67,7 +67,7 @@ export const ErrorFeedback = ({ code = 0, message, debug, title, body, image, ac
67
67
  function renderBody() {
68
68
  return typeof body === 'string' ? _jsx(Text, { appearance: "body1", colorScheme: "inverse", className: "description", children: body }) : body;
69
69
  }
70
- return (_jsx(FeedbackBox, { style: style, className: className, children: _jsxs("div", { className: listToClass(['content', direction]), children: [_jsx("div", { className: "image", children: image ?? imageMap[code] ?? _jsx(ServerError, { style: imageStyle }) }), _jsxs("div", { className: "text-content", children: [_jsx(LinkBox, { href: "/", className: "logo", children: _jsx(Logo, { style: { width: '130px', height: '30px' } }) }), _jsxs(Text, { appearance: "h4", mt: 5, colorScheme: "inverse", className: "title", children: [(code && !title) ? `${code}. ` : '', _jsx(Text, { appearance: "h4", as: "span", colorScheme: "light.700", children: title ?? t[`${code}.title`] })] }), body ? renderBody() : (_jsxs(_Fragment, { children: [_jsx(Text, { appearance: "body1", mt: 5, colorScheme: "inverse", className: "description", children: description ?? t[`${code}.description`] }), _jsx(Text, { appearance: "body1", colorScheme: "light.700", className: "help", children: help ?? t[`${code}.help`] })] })), shouldShowButtons && (_jsxs("div", { className: "buttons", children: [action && (_jsx(Button, { colorScheme: "inverse", onClick: action.onClick, children: action.label })), debug && message && (_jsx(Button, { appearance: "outlined", colorScheme: "inverse", onClick: () => setShowDetails(v => !v), children: showDetails ? t.hideDetails : t.showDetails }))] })), showDetails && (_jsx("div", { className: "details", children: _jsx(Text, { appearance: "microtext1", children: message }) }))] })] }) }));
70
+ return (_jsx(FeedbackBox, { style: style, className: className, children: _jsxs("div", { className: listToClass(['content', direction]), children: [_jsx("div", { className: "image", children: image ?? imageMap[code] ?? _jsx(ServerError, { style: imageStyle }) }), _jsxs("div", { className: "text-content", children: [_jsx(LinkBox, { href: "/", className: "logo", children: _jsx(Logo, { style: { width: '130px', height: '30px' } }) }), _jsxs(Text, { appearance: "h4", mt: 5, colorScheme: "inverse", className: "title", children: [(code && !title) ? `${t.errorLabel} ${code}. ` : '', _jsx(Text, { appearance: "h4", as: "span", colorScheme: "light.700", children: title ?? t[`${code}.title`] })] }), body ? renderBody() : (_jsxs(_Fragment, { children: [_jsx(Text, { appearance: "body1", mt: 5, colorScheme: "inverse", className: "description", children: description ?? t[`${code}.description`] }), _jsx(Text, { appearance: "body1", colorScheme: "light.700", className: "help", children: help ?? t[`${code}.help`] })] })), shouldShowButtons && (_jsxs("div", { className: "buttons", children: [action && (_jsx(Button, { colorScheme: "inverse", onClick: action.onClick, children: action.label })), debug && message && (_jsx(Button, { appearance: "outlined", colorScheme: "inverse", onClick: () => setShowDetails(v => !v), children: showDetails ? t.hideDetails : t.showDetails }))] })), showDetails && (_jsx("div", { className: "details", children: _jsx(Text, { appearance: "microtext1", children: message }) }))] })] }) }));
71
71
  };
72
72
  const dictionary = {
73
73
  en: {
@@ -75,38 +75,40 @@ const dictionary = {
75
75
  '0.title': 'Something didn’t go as expected',
76
76
  '0.description': 'This can happen from time to time.',
77
77
  '0.help': 'Try refreshing the page. If it still doesn’t work, reach out. We’re here to help.',
78
- '401.title': 'Erro 401. You need a valid credential',
78
+ '401.title': 'You need a valid credential',
79
79
  '401.description': 'We couldn’t verify your credentials.',
80
80
  '401.help': 'Check the link or log in with a different account to continue.',
81
- '403.title': '403. Access restricted to your organization',
81
+ '403.title': 'Access restricted to your organization',
82
82
  '403.help': 'Log in with an account from your organization or request access from your Account Holder.',
83
- '404.title': 'Error 404. This resource is no longer available',
83
+ '404.title': 'This resource is no longer available',
84
84
  '404.description': 'It may have been moved or removed.',
85
85
  '404.help': 'You can try again or ask your organization’s Account Holder for a new link.',
86
- '500.title': 'Error 500. We\'re making some adjustments',
86
+ '500.title': 'We\'re making some adjustments',
87
87
  '500.description': 'Something unexpected happened on our side. It might just be a momentary glitch.',
88
88
  '500.help': 'Try refreshing later to pick up where you left off.',
89
89
  showDetails: 'Show Details',
90
90
  hideDetails: 'Hide Details',
91
+ errorLabel: 'Error',
91
92
  },
92
93
  pt: {
93
94
  altLogo: 'Logo Stackspot',
94
95
  '0.title': 'Algo saiu diferente do esperado',
95
96
  '0.description': 'Isso pode acontecer de vez em quando.',
96
97
  '0.help': 'Tente recarregar a página. Se ainda não funcionar, chama a gente. Estamos por aqui para ajudar.',
97
- '401.title': 'Erro 401. Você precisa de uma credencial válida',
98
+ '401.title': 'Você precisa de uma credencial válida',
98
99
  '401.description': 'Não conseguimos confirmar suas credenciais.',
99
100
  '401.help': 'Verifique o link ou faça login com outra conta para continuar.',
100
- '403.title': 'Erro 403. Acesso exclusivo da sua organização',
101
+ '403.title': 'Acesso exclusivo da sua organização',
101
102
  '403.help': 'Faça login com uma conta da sua organização ou peça acesso ao Account Holder.',
102
- '404.title': 'Erro 404. Este recurso não está mais disponível',
103
+ '404.title': 'Este recurso não está mais disponível',
103
104
  '404.description': 'Ele pode ter sido movido ou removido.',
104
105
  '404.help': 'Você pode tentar de novo ou pedir um novo link ao Account Holder da sua organização.',
105
- '500.title': 'Erro 500. Estamos ajustando o sistema',
106
+ '500.title': 'Estamos ajustando o sistema',
106
107
  '500.description': 'Algo inesperado aconteceu do nosso lado. Pode ser só por alguns instantes.',
107
108
  '500.help': 'Tente recarregar mais tarde para continuar de onde parou.',
108
109
  showDetails: 'Ver Detalhes',
109
110
  hideDetails: 'Esconder Detalhes',
111
+ errorLabel: 'Erro',
110
112
  },
111
113
  };
112
114
  //# sourceMappingURL=ErrorFeedback.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorFeedback.js","sourceRoot":"","sources":["../../../src/components/error/ErrorFeedback.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,UAAU,GAAwB;IACtC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;CAChB,CAAA;AAED,MAAM,QAAQ,GAAuC;IACnD,GAAG,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,UAAU,GAAI;IAC3C,GAAG,EAAE,KAAC,SAAS,IAAC,KAAK,EAAE,UAAU,GAAI;IACrC,GAAG,EAAE,KAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,GAAI;CACrC,CAAA;AAiDD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;sBACR,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA2BlB,KAAK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portal-components",
3
- "version": "2.24.2",
3
+ "version": "2.24.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -130,7 +130,7 @@ export const ErrorFeedback = (
130
130
  <Logo style={{ width: '130px', height: '30px' }} />
131
131
  </LinkBox>
132
132
  <Text appearance="h4" mt={5} colorScheme="inverse" className="title">
133
- {(code && !title) ? `${code}. ` : ''}
133
+ {(code && !title) ? `${t.errorLabel} ${code}. ` : ''}
134
134
  <Text appearance="h4" as="span" colorScheme="light.700">
135
135
  {title ?? t[`${code}.title`]}
136
136
  </Text>
@@ -177,38 +177,40 @@ const dictionary = {
177
177
  '0.title': 'Something didn’t go as expected',
178
178
  '0.description': 'This can happen from time to time.',
179
179
  '0.help': 'Try refreshing the page. If it still doesn’t work, reach out. We’re here to help.',
180
- '401.title': 'Erro 401. You need a valid credential',
180
+ '401.title': 'You need a valid credential',
181
181
  '401.description': 'We couldn’t verify your credentials.',
182
182
  '401.help': 'Check the link or log in with a different account to continue.',
183
- '403.title': '403. Access restricted to your organization',
183
+ '403.title': 'Access restricted to your organization',
184
184
  '403.help': 'Log in with an account from your organization or request access from your Account Holder.',
185
- '404.title': 'Error 404. This resource is no longer available',
185
+ '404.title': 'This resource is no longer available',
186
186
  '404.description': 'It may have been moved or removed.',
187
187
  '404.help': 'You can try again or ask your organization’s Account Holder for a new link.',
188
- '500.title': 'Error 500. We\'re making some adjustments',
188
+ '500.title': 'We\'re making some adjustments',
189
189
  '500.description':
190
190
  'Something unexpected happened on our side. It might just be a momentary glitch.',
191
191
  '500.help': 'Try refreshing later to pick up where you left off.',
192
192
  showDetails: 'Show Details',
193
193
  hideDetails: 'Hide Details',
194
+ errorLabel: 'Error',
194
195
  },
195
196
  pt: {
196
197
  altLogo: 'Logo Stackspot',
197
198
  '0.title': 'Algo saiu diferente do esperado',
198
199
  '0.description': 'Isso pode acontecer de vez em quando.',
199
200
  '0.help': 'Tente recarregar a página. Se ainda não funcionar, chama a gente. Estamos por aqui para ajudar.',
200
- '401.title': 'Erro 401. Você precisa de uma credencial válida',
201
+ '401.title': 'Você precisa de uma credencial válida',
201
202
  '401.description': 'Não conseguimos confirmar suas credenciais.',
202
203
  '401.help': 'Verifique o link ou faça login com outra conta para continuar.',
203
- '403.title': 'Erro 403. Acesso exclusivo da sua organização',
204
+ '403.title': 'Acesso exclusivo da sua organização',
204
205
  '403.help': 'Faça login com uma conta da sua organização ou peça acesso ao Account Holder.',
205
- '404.title': 'Erro 404. Este recurso não está mais disponível',
206
+ '404.title': 'Este recurso não está mais disponível',
206
207
  '404.description': 'Ele pode ter sido movido ou removido.',
207
208
  '404.help': 'Você pode tentar de novo ou pedir um novo link ao Account Holder da sua organização.',
208
- '500.title': 'Erro 500. Estamos ajustando o sistema',
209
+ '500.title': 'Estamos ajustando o sistema',
209
210
  '500.description': 'Algo inesperado aconteceu do nosso lado. Pode ser só por alguns instantes.',
210
211
  '500.help': 'Tente recarregar mais tarde para continuar de onde parou.',
211
212
  showDetails: 'Ver Detalhes',
212
213
  hideDetails: 'Esconder Detalhes',
214
+ errorLabel: 'Erro',
213
215
  },
214
216
  } satisfies Dictionary