Skip to content

Commit 70f5aed

Browse files
committed
Merge branch 'staging' into upgrade-react-piece-by-piece
2 parents 8c2ac77 + 495a879 commit 70f5aed

File tree

82 files changed

+3526
-394
lines changed

Some content is hidden

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

82 files changed

+3526
-394
lines changed

.drone.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ steps:
3636

3737
- name: unit-tests
3838
image: wintercdo/code-dot-org:0.7
39+
pull: always
3940
volumes:
4041
- name: rbenv
41-
path: /home/circleci/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0
42-
- name: yarncache
43-
path: /home/circleci/.cache
42+
path: /home/circleci/.rbenv
4443
- name: mysql
4544
path: /var/lib/mysql
4645
environment:
@@ -52,17 +51,14 @@ steps:
5251
- pwd
5352
- sudo chown -R circleci:circleci .
5453
- # cache is restored to source directory, so we need to copy it into the right place
55-
- cp -rn "$(pwd)/home/circleci/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0" /home/circleci/.rbenv/versions/2.5.0/lib/ruby/gems || true
56-
- cp -rn "$(pwd)/home/circleci/.cache" /home/circleci || true
54+
- cp -rn "$(pwd)/home/circleci/.rbenv" /home/circleci || true
5755
- /entrypoint.sh docker/unit_tests.sh
5856

5957
- name: update-cache
6058
image: plugins/s3-cache
6159
volumes:
6260
- name: rbenv
63-
path: /home/circleci/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0
64-
- name: yarncache
65-
path: /home/circleci/.cache
61+
path: /home/circleci/.rbenv
6662
settings:
6763
pull: true
6864
rebuild: true
@@ -71,17 +67,13 @@ steps:
7167
secret_key:
7268
from_secret: S3_CACHE_SECRET_KEY
7369
mount:
74-
- /home/circleci/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0
75-
- apps/node_modules
76-
- /home/circleci/.cache
70+
- /home/circleci/.rbenv
7771

7872
volumes:
7973
- name: rbenv
8074
temp: {}
8175
- name: mysql
8276
temp: {}
83-
- name: yarncache
84-
temp: {}
8577

8678
trigger:
8779
event:
@@ -149,6 +141,6 @@ trigger:
149141
# - pull_request
150142
---
151143
kind: signature
152-
hmac: 41f0921ccaed873a43f2608c4cabddf3911828cfc8044955f4420bf9fbaa8b98
144+
hmac: a37b3ff8767d1c25c2bd719f6372de50b2bfdef6c26cfb06075b5fcc05785a64
153145

154146
...

apps/src/code-studio/header.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import $ from 'jquery';
44
import _ from 'lodash';
55
import progress from './progress';
6-
import Dialog from './LegacyDialog';
76
import { getStore } from '../redux';
87
import { shareProject } from './headerShare';
98
import { convertBlocksXml } from '../craft/code-connection/utils';
@@ -406,26 +405,6 @@ header.showProjectHeader = function () {
406405
e.stopPropagation(); // Clicks inside the popup shouldn't close it.
407406
});
408407

409-
$('.project_delete').click(function (e) {
410-
e.preventDefault(); // Don't change the hash.
411-
var dialog = new Dialog({body: '<img class="modal-image" src="' + appOptions.skin.staticAvatar + '">' +
412-
'<div id="confirm-delete" class="modal-content">' +
413-
'<p class="dialog-title">' + dashboard.i18n.t('project.delete_confirm_title') + '</p>' +
414-
'<p>' + dashboard.i18n.t('project.delete_confirm_text') + '</p>' +
415-
'<button id="again-button">' + dashboard.i18n.t('project.cancel') + '</button>' +
416-
'<button id="continue-button" style="float: right">' + dashboard.i18n.t('project.delete') + '</button></div>'
417-
});
418-
dialog.show();
419-
$('#confirm-delete #continue-button').click(function () {
420-
dashboard.project.delete(function () {
421-
location.href = dashboard.project.appToProjectUrl();
422-
});
423-
});
424-
$('#confirm-delete #again-button').click(function () {
425-
dialog.hide();
426-
});
427-
});
428-
429408
$('.project_new').click(dashboard.project.createNew);
430409

431410
$(document).on('click', '.project_list', function () {

apps/src/code-studio/pd/application/teacher1920/Section1AboutYou.jsx

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
Button
1717
} from 'react-bootstrap';
1818
import SchoolAutocompleteDropdown from '@cdo/apps/templates/SchoolAutocompleteDropdown';
19+
import queryString from 'query-string';
1920
import {styles} from "./TeacherApplicationConstants";
2021
import _ from 'lodash';
2122

@@ -76,13 +77,27 @@ export default class Section1AboutYou extends LabeledFormComponent {
7677
}
7778

7879
render() {
80+
const nominated = queryString.parse(window.location.search).nominated;
81+
7982
return (
8083
<FormGroup>
81-
<p>
82-
Thanks for your interest in the Code.org Professional Learning Program!
83-
This application should take 10 - 15 minutes to complete. Fields marked with a
84-
{' '}<span style={{color: "red"}}>*</span>{' '} are required.
85-
</p>
84+
85+
{!nominated && (
86+
<p>
87+
Thanks for your interest in the Code.org Professional Learning Program!
88+
This application should take 10 - 15 minutes to complete. Fields marked with a
89+
{' '}<span style={{color: "red"}}>*</span>{' '} are required.
90+
</p>
91+
)}
92+
{nominated && (
93+
<p>
94+
Congratulations on your nomination for a scholarship to the Code.org Professional
95+
Learning Program! This application should take 10 - 15 minutes to complete. Fields
96+
marked with a {' '}<span style={{color: "red"}}>*</span>{' '} are required. We will
97+
let your local partner know that you’ve been nominated as they consider your application
98+
for the regional scholarships or discounts they have available.
99+
</p>
100+
)}
86101
<p>
87102
If you need more information about the program before you apply,
88103
please visit
@@ -100,6 +115,20 @@ export default class Section1AboutYou extends LabeledFormComponent {
100115
</a>
101116
</p>
102117

118+
{nominated && (
119+
<div>
120+
<h4>When will I hear back about the scholarships and discounts?</h4>
121+
<p>
122+
In most regions, applications are accepted on a rolling basis. And in
123+
most cases, our local partner will get back to you within 2 weeks
124+
to let you know your application status. Even if you don’t get selected
125+
for the scholarship, you will still be able to attend if you are an
126+
eligible teacher and your school can pay a discounted price (thanks
127+
to our generous donors).
128+
</p>
129+
</div>
130+
)}
131+
103132
<h3>Section 1: {SectionHeaders.section1AboutYou}</h3>
104133

105134
{this.radioButtonsFor("country")}

0 commit comments

Comments
 (0)