Skip to content

Commit f09c0a3

Browse files
committed
Merge branch 'develop-1.7'
2 parents dfac7d6 + 66e8032 commit f09c0a3

68 files changed

Lines changed: 14501 additions & 163 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Build
99
strategy:
1010
matrix:
11-
os: [ubuntu-18.04]
11+
os: [ubuntu-20.04]
1212
node-version: [14.x, 16.x]
1313
runs-on: ${{ matrix.os }}
1414
env:

docs/adding-new-world-checklist.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Checklist for adding a new world
2+
3+
- Export world backgrounds, thumbnails, and characters from Figma as SVGs;
4+
there should be 9 SVG files for each world, use the following naming
5+
convention:
6+
- `src/svg/<WorldName>.svg`
7+
- `src/svg/<WorldName>Gray.svg`
8+
- `src/svg/<WorldName>Contrast.svg`
9+
- `src/svg/<WorldName>Thumbnail.svg`
10+
- `src/svg/<WorldName>ThumbnailGray.svg`
11+
- `src/svg/<WorldName>ThumbnailContrast.svg`
12+
- `src/svg/<WorldName><CharacterName>.svg`
13+
- `src/svg/<WorldName><CharacterName>Gray.svg`
14+
- `src/svg/<WorldName><CharacterName>Contrast.svg`
15+
- Add an entry for the new world to `Worlds.js`
16+
- Each value in the `backgroundInfo` object is a key to look up in the
17+
`messages.json` file
18+
- Add an entry for the new world to the `availableWorldOptions` list property
19+
of `WorldSelector.js`
20+
- Worlds are ordered alphabetically, except for `Sketchpad` which is
21+
always first
22+
- Update the
23+
`'All worlds should be displayed as options and only one is checked'`
24+
test in `WorldSelector.test.js` for the new world
25+
- Add entries to `messages.json`
26+
- `<WorldName>.name`: the name of the world
27+
- `<WorldName>.character`: the name of the character
28+
- `<WorldName>.label`: the label used for the world in the
29+
Scene Background dialog
30+
- `<WorldName>.<CellInfo>`: add one entry for each type of
31+
cell in the world's `backgroundInfo`; these `messages.json` entries are
32+
used to localize the cell descriptions
33+
- To facilitate styling of the thumbnail when hovered in the Scene Background
34+
dialog, add a `className` attribute to those elements of the thumbnail
35+
SVGs that should be styled differently on hover
36+
- Add styles to `Worlds.scss`
37+
- Styles for Default, Grayscale, and High Contrast themes (at least,
38+
adding styles for any other themes as needed)
39+
- Character background in the Program Block Editor
40+
- Grid line colour
41+
- Drawing and character starting point colour
42+
- Thumbnail hover colours

docs/keyboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Those key bindings are as follows.
5858
| Move focus to the pen toggle | Ctrl + Alt + x, f, s | ![Focus pen toggle icon](board-imgs/FocusPenToggle.png) |
5959
| Move focus to the play button | Ctrl + Alt + x, f, p | ![Focus play button icon](board-imgs/FocusPlay.png) |
6060
| Move focus to the previous program block | Ctrl + Alt + x, f, [ | Not available |
61-
| Move focus to the world selector | Ctrl + Alt + x, f, w | ![Focus world selector icon](board-imgs/FocusWorldSelector.png) |
61+
| Move focus to the scene background selector | Ctrl + Alt + x, f, w | ![Focus scene background selector icon](board-imgs/FocusWorldSelector.png) |
6262
| Move the character down | Ctrl + Alt + x, p, m, d | ![Move character down icon](board-imgs/MoveCharacterDown.png) |
6363
| Move the character left | Ctrl + Alt + x, p, m, l | ![Move character left icon](board-imgs/MoveCharacterLeft.png) |
6464
| Move the character right | Ctrl + Alt + x, p, m, r | ![Move character right icon](board-imgs/MoveCharacterRight.png) |
@@ -115,7 +115,7 @@ Those key bindings are as follows:
115115
| Move focus to the pen toggle | Alt + x, f, s | ![Focus pen toggle icon](board-imgs/FocusPenToggle.png) |
116116
| Move focus to the play button | Alt + x, f, p | ![Focus play button icon](board-imgs/FocusPlay.png) |
117117
| Move focus to the previous program block | Alt + x, f, [ | Not available |
118-
| Move focus to the world selector | Alt + x, f, w | ![Focus world selector icon](board-imgs/FocusWorldSelector.png) |
118+
| Move focus to the scene background selector | Alt + x, f, w | ![Focus scene background selector icon](board-imgs/FocusWorldSelector.png) |
119119
| Move the character down | Alt + x, p, m, d | ![Move character down icon](board-imgs/MoveCharacterDown.png) |
120120
| Move the character left | Alt + x, p, m, l | ![Move character left icon](board-imgs/MoveCharacterLeft.png) |
121121
| Move the character right | Alt + x, p, m, r | ![Move character right icon](board-imgs/MoveCharacterRight.png) |

package-lock.json

Lines changed: 20 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "c2lc-coding-environment",
3-
"version": "1.6.2",
3+
"version": "1.7.0",
44
"private": true,
55
"dependencies": {
66
"bootstrap": "4.6.1",

src/ActionsMenuItem.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@import 'variables';
22

33
.ActionsMenuItem {
4-
padding: 0.5rem 0.5rem;
5-
border-radius: 0.2rem;
4+
position: relative;
5+
padding: 0.75rem 0.5rem;
66
display: grid;
77
grid-template-columns: min-content 1fr min-content;
88
column-gap: 0.5rem;
@@ -12,6 +12,7 @@
1212
&:focus {
1313
box-shadow: 0 0 0 $c2lc-focus-indicator-width black;
1414
outline: none;
15+
z-index: 1;
1516
}
1617

1718
&:hover {
@@ -76,4 +77,4 @@
7677

7778
.ActionsMenuItem__icon--right45, .ActionsMenuItem__icon--right90, .ActionsMenuItem__icon--right180 {
7879
background-color: $c2lc-right-command-color;
79-
}
80+
}

src/ActionsSimplificationModal.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.ActionsSimplificationModal__menu {
22
display: flex;
33
flex-direction: column;
4-
row-gap: 0.5rem;
4+
position: relative;
5+
z-index: 0;
56
padding: 1rem 2rem;
67
border-bottom: 1px solid #F1F2F4;
78
}

src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class App extends React.Component<AppProps, AppState> {
149149
constructor(props: any) {
150150
super(props);
151151

152-
this.version = '1.6.2';
152+
this.version = '1.7';
153153

154154
this.appContext = {
155155
bluetoothApiIsAvailable: FeatureDetection.bluetoothApiIsAvailable()
@@ -1488,12 +1488,12 @@ export class App extends React.Component<AppProps, AppState> {
14881488
</div>
14891489
<div className="App__world-container">
14901490
<h2 className='sr-only' >
1491-
<FormattedMessage id='WorldSelector.heading' />
1491+
<FormattedMessage id='WorldSelectorButton.heading' />
14921492
</h2>
14931493
<div className="App__world-selector">
14941494
<IconButton
14951495
className='keyboard-shortcut-focus__world-selector'
1496-
ariaLabel={this.props.intl.formatMessage({ id: 'WorldSelector' })}
1496+
ariaLabel={this.props.intl.formatMessage({ id: 'WorldSelectorButton.label' })}
14971497
onClick={this.handleClickWorldIcon}
14981498
>
14991499
<WorldIcon className='App__world-selector-icon'/>

src/KeyboardInputSchemes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ const ExtendedKeyboardSequences: KeyboardInputScheme = {
189189
worldSelector: {
190190
keyDef: { code: "KeyW", key: "w" },
191191
actionName: "focusWorldSelector",
192-
description: "Move focus to the world selector",
192+
description: "Move focus to the scene background selector",
193193
icon: "FocusWorldSelector.png",
194-
altText: "Focus world selector icon"
194+
altText: "Focus scene background selector icon"
195195
}
196196
},
197197

src/ModalBody.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
max-width: 90vw;
33
max-height: calc(100vh - 15rem);
44
overflow-y: auto;
5-
}
5+
}
6+
7+
.ModalBody.ModalBody--alwaysShowVerticalScrollbar {
8+
overflow-y: scroll;
9+
}

0 commit comments

Comments
 (0)