Skip to content

Commit 11b1a92

Browse files
committed
fix: update based on PR feedback
1 parent ead12c8 commit 11b1a92

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/ActionPanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class ActionPanel extends React.Component<ActionPanelProps, {}> {
110110
}
111111
// When previous step is wrapped in a loop, aria-label communicates position within a loop
112112
} else if (cachedPreviousStepLoopData != null) {
113-
return this.props.intl.formatMessage({id: 'ActionPanel.action.moveToPreviousStep.withInLoop'},
113+
return this.props.intl.formatMessage({id: 'ActionPanel.action.moveToPreviousStep.withinLoop'},
114114
{
115115
stepNumber,
116116
stepActionName,
@@ -181,7 +181,7 @@ class ActionPanel extends React.Component<ActionPanelProps, {}> {
181181
}
182182
// When next step is wrapped in a loop, aria-label communicates position within a loop
183183
} else if (cachedNextStepLoopData != null) {
184-
return this.props.intl.formatMessage({id: 'ActionPanel.action.moveToNextStep.withInLoop'},
184+
return this.props.intl.formatMessage({id: 'ActionPanel.action.moveToNextStep.withinLoop'},
185185
{
186186
stepNumber,
187187
stepActionName,

src/ProgramChangeController.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ type DeleteStepTestCase = {
196196
deleteStepIndex: number,
197197
deleteStepName: string,
198198
expectedAnnouncementActionType: string,
199-
expectedAnnouncementAction: string
199+
expectedAnnouncementActionName: string
200200
};
201201

202202
describe('Test deleteProgramStep()', () => {
@@ -209,7 +209,7 @@ describe('Test deleteProgramStep()', () => {
209209
deleteStepIndex: 0,
210210
deleteStepName: 'forward1',
211211
expectedAnnouncementActionType: 'movement',
212-
expectedAnnouncementAction: 'forward 1 square'
212+
expectedAnnouncementActionName: 'forward 1 square'
213213
},
214214
{
215215
program: [
@@ -220,7 +220,7 @@ describe('Test deleteProgramStep()', () => {
220220
deleteStepIndex: 0,
221221
deleteStepName: 'startLoop',
222222
expectedAnnouncementActionType: 'control',
223-
expectedAnnouncementAction: 'loop A'
223+
expectedAnnouncementActionName: 'loop A'
224224
},
225225
{
226226
program: [
@@ -231,7 +231,7 @@ describe('Test deleteProgramStep()', () => {
231231
deleteStepIndex: 1,
232232
deleteStepName: 'endLoop',
233233
expectedAnnouncementActionType: 'control',
234-
expectedAnnouncementAction: 'loop A'
234+
expectedAnnouncementActionName: 'loop A'
235235
}
236236
]: Array<DeleteStepTestCase>))('When deleting a step not at the end, then focus is set to the step now at the deleted index',
237237
(testData: DeleteStepTestCase, done) => {
@@ -253,7 +253,7 @@ describe('Test deleteProgramStep()', () => {
253253
expect(audioManagerMock.playAnnouncement.mock.calls[0][0]).toBe('delete');
254254
expect(audioManagerMock.playAnnouncement.mock.calls[0][2]).toStrictEqual({
255255
actionType: testData.expectedAnnouncementActionType,
256-
actionName: testData.expectedAnnouncementAction
256+
actionName: testData.expectedAnnouncementActionName
257257
});
258258

259259
// The add-node after the program should be focused
@@ -281,7 +281,7 @@ describe('Test deleteProgramStep()', () => {
281281
deleteStepIndex: 1,
282282
deleteStepName: 'forward2',
283283
expectedAnnouncementActionType: 'movement',
284-
expectedAnnouncementAction: 'forward 2 squares'
284+
expectedAnnouncementActionName: 'forward 2 squares'
285285
},
286286
{
287287
program: [
@@ -292,7 +292,7 @@ describe('Test deleteProgramStep()', () => {
292292
deleteStepIndex: 1,
293293
deleteStepName: 'startLoop',
294294
expectedAnnouncementActionType: 'control',
295-
expectedAnnouncementAction: 'loop A'
295+
expectedAnnouncementActionName: 'loop A'
296296
},
297297
{
298298
program: [
@@ -303,7 +303,7 @@ describe('Test deleteProgramStep()', () => {
303303
deleteStepIndex: 2,
304304
deleteStepName: 'endLoop',
305305
expectedAnnouncementActionType: 'control',
306-
expectedAnnouncementAction: 'loop A'
306+
expectedAnnouncementActionName: 'loop A'
307307
}
308308
]: Array<DeleteStepTestCase>))('When deleting the step at the end, then focus is set to the add-node after the program',
309309
(testData: DeleteStepTestCase, done) => {
@@ -325,7 +325,7 @@ describe('Test deleteProgramStep()', () => {
325325
expect(audioManagerMock.playAnnouncement.mock.calls[0][0]).toBe('delete');
326326
expect(audioManagerMock.playAnnouncement.mock.calls[0][2]).toStrictEqual({
327327
actionType: testData.expectedAnnouncementActionType,
328-
actionName: testData.expectedAnnouncementAction
328+
actionName: testData.expectedAnnouncementActionName
329329
});
330330

331331
// The add-node after the program should be focused

src/messages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"ActionPanel.action.moveToNextStep": "Move Step {stepNumber} {stepActionName} after step {nextStepNumber} {nextStepActionName}",
55
"ActionPanel.action.moveToNextStep.disabled": "Move Step {stepNumber} {stepActionName}",
66
"ActionPanel.action.moveToNextStep.outOfLoop": "Move Step {stepNumber} {stepActionName} out of loop {loopLabel}",
7-
"ActionPanel.action.moveToNextStep.withInLoop": "Move Step {stepNumber} {stepActionName} after step {nextStepNumber} {nextStepActionName} of loop {loopLabel}",
7+
"ActionPanel.action.moveToNextStep.withinLoop": "Move Step {stepNumber} {stepActionName} after step {nextStepNumber} {nextStepActionName} of loop {loopLabel}",
88
"ActionPanel.action.moveToNextStep.intoLoop": "Move Step {stepNumber} {stepActionName} into loop {loopLabel}",
99
"ActionPanel.action.moveToPreviousStep": "Move Step {stepNumber} {stepActionName} before step {previousStepNumber} {previousStepActionName}",
1010
"ActionPanel.action.moveToPreviousStep.disabled": "Move Step {stepNumber} {stepActionName}",
1111
"ActionPanel.action.moveToPreviousStep.intoLoop": "Move Step {stepNumber} {stepActionName} into loop {loopLabel}",
12-
"ActionPanel.action.moveToPreviousStep.withInLoop": "Move Step {stepNumber} {stepActionName} before step {previousStepNumber} {previousStepActionName} of loop {loopLabel}",
12+
"ActionPanel.action.moveToPreviousStep.withinLoop": "Move Step {stepNumber} {stepActionName} before step {previousStepNumber} {previousStepActionName} of loop {loopLabel}",
1313
"ActionPanel.action.moveToPreviousStep.outOfLoop": "Move Step {stepNumber} {stepActionName} out of loop {loopLabel}",
1414
"ActionPanel.action.replace.noSelectedAction": "Replace Step {stepNumber} {stepActionName}",
1515
"ActionPanel.action.replace.withSelectedAction": "Replace Step {stepNumber} {stepActionName} with selected action {selectedActionName}",
@@ -952,7 +952,7 @@
952952
"Savannah.pond": "l'étang",
953953
"Savannah.tree": "l'arbre",
954954
"Save": "Sauvegarder",
955-
"Scene.description": "Scène, dans {world}, grille {numColumns} par {numRows}. {characterDescription}",
955+
"Scene.description": "Scène, dans {backgroundName}, grille {numColumns} par {numRows}. {characterDescription}",
956956
"Scene.heading": "scène",
957957
"SceneMessage.close": "fermée le message",
958958
"ShareButton": "partager",

0 commit comments

Comments
 (0)