Skip to content

Commit 8e5fc1d

Browse files
authored
Merge branch 'develop' into feat/openapi-webdav
2 parents 1195ebc + f65f5ab commit 8e5fc1d

File tree

5 files changed

+39
-23
lines changed

5 files changed

+39
-23
lines changed

.changeset/big-bees-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': minor
3+
---
4+
5+
Adds theme palette to Application error page

apps/meteor/client/views/root/AppErrorPage.tsx

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Box, States, StatesAction, StatesActions, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
1+
import { Box, PaletteStyleTag, States, StatesAction, StatesActions, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
2+
import { useThemeMode } from '@rocket.chat/ui-theming';
23
import type { ErrorInfo, ReactElement } from 'react';
34

45
type AppErrorPageProps = {
@@ -8,30 +9,35 @@ type AppErrorPageProps = {
89
};
910

1011
const AppErrorPage = (_props: AppErrorPageProps): ReactElement => {
12+
const [, , theme] = useThemeMode();
13+
1114
return (
12-
<Box display='flex' justifyContent='center' height='full' backgroundColor='surface'>
13-
<States>
14-
<StatesIcon name='error-circle' />
15-
<StatesTitle>Application Error</StatesTitle>
16-
<StatesSubtitle>The application GUI just crashed.</StatesSubtitle>
15+
<>
16+
<PaletteStyleTag theme={theme} tagId='app-error-palette' />
17+
<Box display='flex' justifyContent='center' height='full' backgroundColor='surface'>
18+
<States>
19+
<StatesIcon name='error-circle' />
20+
<StatesTitle>Application Error</StatesTitle>
21+
<StatesSubtitle>The application GUI just crashed.</StatesSubtitle>
1722

18-
<StatesActions>
19-
<StatesAction
20-
onClick={() => {
21-
const result = indexedDB.deleteDatabase('MeteorDynamicImportCache');
22-
result.onsuccess = () => {
23-
window.location.reload();
24-
};
25-
result.onerror = () => {
26-
window.location.reload();
27-
};
28-
}}
29-
>
30-
Reload Application
31-
</StatesAction>
32-
</StatesActions>
33-
</States>
34-
</Box>
23+
<StatesActions>
24+
<StatesAction
25+
onClick={() => {
26+
const result = indexedDB.deleteDatabase('MeteorDynamicImportCache');
27+
result.onsuccess = () => {
28+
window.location.reload();
29+
};
30+
result.onerror = () => {
31+
window.location.reload();
32+
};
33+
}}
34+
>
35+
Reload Application
36+
</StatesAction>
37+
</StatesActions>
38+
</States>
39+
</Box>
40+
</>
3541
);
3642
};
3743

ee/apps/queue-worker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ COPY ./packages/tsconfig packages/tsconfig
7171
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
7272
COPY ./packages/ui-kit/dist packages/ui-kit/dist
7373

74+
COPY ./packages/i18n/package.json packages/i18n/package.json
75+
COPY ./packages/i18n/dist packages/i18n/dist
76+
7477
COPY ./ee/apps/${SERVICE}/dist .
7578

7679
COPY ./package.json .

ee/packages/omnichannel-services/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@rocket.chat/core-services": "workspace:^",
1616
"@rocket.chat/core-typings": "workspace:^",
1717
"@rocket.chat/emitter": "~0.31.25",
18+
"@rocket.chat/i18n": "workspace:^",
1819
"@rocket.chat/logger": "workspace:^",
1920
"@rocket.chat/model-typings": "workspace:^",
2021
"@rocket.chat/models": "workspace:^",

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8322,6 +8322,7 @@ __metadata:
83228322
"@rocket.chat/core-typings": "workspace:^"
83238323
"@rocket.chat/emitter": "npm:~0.31.25"
83248324
"@rocket.chat/eslint-config": "workspace:^"
8325+
"@rocket.chat/i18n": "workspace:^"
83258326
"@rocket.chat/jest-presets": "workspace:~"
83268327
"@rocket.chat/logger": "workspace:^"
83278328
"@rocket.chat/model-typings": "workspace:^"

0 commit comments

Comments
 (0)