Skip to content

Commit f7f48f5

Browse files
thedanhellerrenanvalentin
authored andcommitted
[DDW-854] Init
1 parent 516f47b commit f7f48f5

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

source/renderer/app/components/loading/syncing-connecting/SyncingConnectingStatus.js

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,23 @@ const messages = defineMessages({
1212
defaultMessage: '!!!Starting Cardano node',
1313
description: 'Message "Starting Cardano node" on the loading screen.',
1414
},
15+
startingDescription: {
16+
id: 'loading.screen.startingCardanoDescription',
17+
defaultMessage:
18+
'!!!This process validates the integrity of local blockchain data and could take several minutes.',
19+
description: 'Message "Starting Cardano node" on the loading screen.',
20+
},
1521
stopping: {
1622
id: 'loading.screen.stoppingCardanoMessage',
1723
defaultMessage: '!!!Stopping Cardano node',
1824
description: 'Message "Stopping Cardano node" on the loading screen.',
1925
},
26+
stoppingDescription: {
27+
id: 'loading.screen.stoppingCardanoDescription',
28+
defaultMessage:
29+
'!!!This process closes the databases and could take several minutes. To preserve data integrity, please allow it to complete.',
30+
description: 'Message "Stopping Cardano node" on the loading screen.',
31+
},
2032
stopped: {
2133
id: 'loading.screen.stoppedCardanoMessage',
2234
defaultMessage: '!!!Cardano node stopped',
@@ -101,14 +113,17 @@ export default class SyncingConnectingStatus extends Component<Props> {
101113
} = this.props;
102114
if (isConnected) return messages.loadingWalletData;
103115
let connectingMessage;
116+
let connectingDescription;
104117
switch (cardanoNodeState) {
105118
case null:
106119
case CardanoNodeStates.STARTING:
107120
connectingMessage = messages.starting;
121+
connectingDescription = messages.startingDescription;
108122
break;
109123
case CardanoNodeStates.STOPPING:
110124
case CardanoNodeStates.EXITING:
111125
connectingMessage = messages.stopping;
126+
connectingDescription = messages.stoppingDescription;
112127
break;
113128
case CardanoNodeStates.STOPPED:
114129
connectingMessage = messages.stopped;
@@ -141,7 +156,7 @@ export default class SyncingConnectingStatus extends Component<Props> {
141156
if (isVerifyingBlockchain && isConnectingMessage) {
142157
return messages.verifyingBlockchain;
143158
}
144-
return connectingMessage;
159+
return { connectingMessage, connectingDescription };
145160
};
146161

147162
render() {
@@ -170,13 +185,21 @@ export default class SyncingConnectingStatus extends Component<Props> {
170185
showEllipsis ? styles.withoutAnimation : null,
171186
]);
172187

188+
const {
189+
connectingMessage,
190+
connectingDescription,
191+
} = this._getConnectingMessage();
192+
173193
return (
174194
<div className={componentStyles}>
175195
<h1 className={headlineStyles}>
176-
{intl.formatMessage(this._getConnectingMessage(), {
196+
{intl.formatMessage(connectingMessage, {
177197
verificationProgress,
178198
})}
179199
</h1>
200+
<div className={styles.description}>
201+
{connectingDescription && intl.formatMessage(connectingDescription)}
202+
</div>
180203
</div>
181204
);
182205
}

source/renderer/app/components/loading/syncing-connecting/SyncingConnectingStatus.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
.headline {
1616
font-family: var(--font-regular);
1717
font-size: 18px;
18+
margin-bottom: 20px;
19+
}
20+
21+
.description {
22+
font-family: var(--font-regular);
23+
font-size: 16px;
24+
line-height: 1.38;
1825
}
1926

2027
.connecting {

source/renderer/app/i18n/locales/en-US.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@
215215
"loading.screen.reportIssue.downloadLogsLinkLabel": "Download logs",
216216
"loading.screen.reportIssue.reportIssueButtonUrl": "https://iohk.zendesk.com/hc/en-us/requests/new/",
217217
"loading.screen.startingCardanoMessage": "Starting Cardano node",
218+
"loading.screen.startingCardanoDescription": "This process validates the integrity of local blockchain data and could take several minutes.",
218219
"loading.screen.stoppedCardanoMessage": "Cardano node stopped",
219220
"loading.screen.stoppingCardanoMessage": "Stopping Cardano node",
221+
"loading.screen.stoppingCardanoDescription": "This process closes the databases and could take several minutes. To preserve data integrity, please allow it to complete.",
220222
"loading.screen.unrecoverableCardanoMessage": "Unable to start Cardano node. Please submit a support request.",
221223
"loading.screen.updatedCardanoMessage": "Cardano node updated",
222224
"loading.screen.updatingCardanoMessage": "Updating Cardano node",
@@ -1248,4 +1250,4 @@
12481250
"wallet.transferFunds.dialog2.total.label": "Total",
12491251
"widgets.itemsDropdown.syncingLabel": "Syncing",
12501252
"widgets.itemsDropdown.syncingLabelProgress": "Syncing {syncingProgress}%"
1251-
}
1253+
}

0 commit comments

Comments
 (0)