Skip to content

Commit 928fae7

Browse files
authored
Merge pull request #458 from topcoder-platform/tony-faq-updates
tweaked join content and updated tests
2 parents a861093 + d9bed19 commit 928fae7

File tree

12 files changed

+31
-74
lines changed

12 files changed

+31
-74
lines changed

__tests__/shared/components/Dashboard/MyChallenges/__snapshots__/ChallengeLinks.jsx.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ exports[`Matches shallow shapshot 2`] = `
4747
<div
4848
className="src-shared-components-Dashboard-MyChallenges-ChallengeLinks-___style__icon___3IZGz src-shared-components-Dashboard-MyChallenges-ChallengeLinks-___style__registrants-icon___tm0l6"
4949
/>
50-
<p>
51-
0
52-
</p>
50+
<p />
5351
</a>
5452
<a
5553
className="src-shared-components-Dashboard-MyChallenges-ChallengeLinks-___style__submissions___3TDly"

__tests__/shared/components/Dashboard/MyChallenges/__snapshots__/ChallengeTile.jsx.snap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,7 @@ exports[`Matches shallow shapshot 7`] = `
633633
<span>
634634
Role:
635635
</span>
636-
<span>
637-
638-
</span>
636+
<span />
639637
</p>
640638
</div>
641639
</div>
@@ -671,9 +669,7 @@ exports[`Matches shallow shapshot 8`] = `
671669
<span>
672670
Role:
673671
</span>
674-
<span>
675-
676-
</span>
672+
<span />
677673
</p>
678674
</header>
679675
<div

__tests__/shared/components/Dashboard/Program/__snapshots__/IosCard.jsx.snap

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ exports[`Matches shallow shapshot 1`] = `
1919
</a>
2020
<p
2121
className="src-shared-components-Dashboard-Program-___IosCard__subtrack-color___2axPS"
22-
>
23-
24-
</p>
22+
/>
2523
</div>
2624
<div
2725
className="src-shared-components-Dashboard-Program-___IosCard__challenge-links___2nxNN"
@@ -103,9 +101,7 @@ exports[`Matches shallow shapshot 2`] = `
103101
</a>
104102
<p
105103
className="src-shared-components-Dashboard-Program-___IosCard__subtrack-color___2axPS"
106-
>
107-
108-
</p>
104+
/>
109105
</div>
110106
<div
111107
className="src-shared-components-Dashboard-Program-___IosCard__challenge-links___2nxNN"
@@ -199,9 +195,7 @@ exports[`Matches shallow shapshot 3`] = `
199195
</a>
200196
<p
201197
className="src-shared-components-Dashboard-Program-___IosCard__subtrack-color___2axPS"
202-
>
203-
204-
</p>
198+
/>
205199
</div>
206200
<div
207201
className="src-shared-components-Dashboard-Program-___IosCard__challenge-links___2nxNN"

__tests__/shared/components/Dashboard/SRM/__snapshots__/SRMTile.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports[`Matches shallow shapshot 1`] = `
2222
Starts in
2323
<span>
2424
1d
25-
1d
25+
1d
2626
</span>
2727
</p>
2828
<div
@@ -85,7 +85,7 @@ exports[`Matches shallow shapshot 2`] = `
8585
Starts in
8686
<span>
8787
1d
88-
1d
88+
1d
8989
</span>
9090
</p>
9191
<div

__tests__/shared/components/Dashboard/__snapshots__/SubtrackStats.jsx.snap

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ exports[`Matches shallow shapshot 1`] = `
2323
<p
2424
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
2525
title=""
26-
>
27-
28-
</p>
26+
/>
2927
<p
3028
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
3129
style={
@@ -56,9 +54,7 @@ exports[`Matches shallow shapshot 1`] = `
5654
<p
5755
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
5856
title=""
59-
>
60-
61-
</p>
57+
/>
6258
<p
6359
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
6460
style={
@@ -101,9 +97,7 @@ exports[`Matches shallow shapshot 1`] = `
10197
<p
10298
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
10399
title=""
104-
>
105-
106-
</p>
100+
/>
107101
<p
108102
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
109103
style={
@@ -134,9 +128,7 @@ exports[`Matches shallow shapshot 1`] = `
134128
<p
135129
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
136130
title=""
137-
>
138-
139-
</p>
131+
/>
140132
<p
141133
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
142134
style={

__tests__/shared/components/Leaderboard/__snapshots__/LeaderboardTable.jsx.snap

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,10 @@ exports[`Matches shallow shapshot 1`] = `
8080
</td>
8181
<td
8282
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
83-
>
84-
0
85-
</td>
83+
/>
8684
<td
8785
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
88-
>
89-
0
90-
</td>
86+
/>
9187
</tr>
9288
<tr>
9389
<td
@@ -137,14 +133,10 @@ exports[`Matches shallow shapshot 1`] = `
137133
</td>
138134
<td
139135
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
140-
>
141-
0
142-
</td>
136+
/>
143137
<td
144138
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
145-
>
146-
0
147-
</td>
139+
/>
148140
</tr>
149141
<tr>
150142
<td
@@ -194,14 +186,10 @@ exports[`Matches shallow shapshot 1`] = `
194186
</td>
195187
<td
196188
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
197-
>
198-
0
199-
</td>
189+
/>
200190
<td
201191
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
202-
>
203-
0
204-
</td>
192+
/>
205193
</tr>
206194
<tr>
207195
<td
@@ -251,14 +239,10 @@ exports[`Matches shallow shapshot 1`] = `
251239
</td>
252240
<td
253241
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
254-
>
255-
0
256-
</td>
242+
/>
257243
<td
258244
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
259-
>
260-
0
261-
</td>
245+
/>
262246
</tr>
263247
</tbody>
264248
</table>

__tests__/shared/components/SubmissionManagement/__snapshots__/ScreeningDetails.jsx.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ exports[`Snapshot match 1`] = `
99
>
1010
<p
1111
className="src-shared-components-SubmissionManagement-ScreeningDetails-___styles__status-title___3HTbG"
12-
>
13-
14-
</p>
12+
/>
1513
</div>
1614
<p>
1715
Your submission has been received, and will be evaluated during Review phase.

__tests__/shared/components/SubmissionManagement/__snapshots__/ScreeningStatus.jsx.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ exports[`Snapshot match 6`] = `
105105
>
106106
<span
107107
className="src-shared-components-SubmissionManagement-ScreeningStatus-___styles__status___1CCjJ"
108-
>
109-
110-
</span>
108+
/>
111109
<span
112110
className="src-shared-components-SubmissionManagement-ScreeningStatus-___styles__warning___6tSHD"
113111
>

__tests__/shared/components/__snapshots__/Select.jsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ exports[`Matches shallow shapshot 1`] = `
3232
noResultsText="No results found"
3333
onBlurResetsInput={true}
3434
onCloseResetsInput={true}
35-
openAfterFocus={false}
3635
optionComponent={[Function]}
3736
pageSize={5}
3837
placeholder="Select..."

__tests__/shared/components/challenge-listing/Filters/__snapshots__/DateRangePicker.jsx.snap

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ exports[`Matches shallow shapshot 1`] = `
1818
hideKeyboardShortcutsPanel={false}
1919
horizontalMargin={0}
2020
initialVisibleMonth={null}
21-
inputIconPosition="before"
2221
isDayBlocked={[Function]}
2322
isDayHighlighted={[Function]}
2423
isOutsideRange={[Function]}
@@ -34,7 +33,6 @@ exports[`Matches shallow shapshot 1`] = `
3433
onFocusChange={[Function]}
3534
onNextMonthClick={[Function]}
3635
onPrevMonthClick={[Function]}
37-
openDirection="down"
3836
orientation="horizontal"
3937
phrases={
4038
Object {
@@ -51,7 +49,7 @@ exports[`Matches shallow shapshot 1`] = `
5149
"jumpToNextMonth": "Move forward to switch to the next month",
5250
"jumpToPrevMonth": "Move backward to switch to the previous month",
5351
"keyboardNavigationInstructions": "Press the down arrow key to interact with the calendar and
54-
select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",
52+
select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",
5553
"keyboardShortcuts": "Keyboard Shortcuts",
5654
"leftArrowRightArrow": "Right and left arrow keys",
5755
"moveFocusByOneDay": "Move backward (left) and forward (right) by one day",
@@ -79,7 +77,6 @@ exports[`Matches shallow shapshot 1`] = `
7977
startDate={null}
8078
startDateId="startDate"
8179
startDatePlaceholderText="Start Date"
82-
weekDayFormat="dd"
8380
withFullScreenPortal={false}
8481
withPortal={false}
8582
/>

src/shared/components/tc-communities/JoinCommunity/ConfirmModal/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export default function ConfirmModal({
2727
<Modal onCancel={resetJoinButton}>
2828
<div styleName="confirmMsg">
2929
{ userId ? null : (
30-
<p>To join you must login / register into Topcoder platform!</p>
30+
<p>You must be a Topcoder member before you can join the {communityName} community.</p>
3131
)}
32-
Are you sure you want to join {communityName}?
32+
To join, login if you are already a member. If not, register first to join the {communityName} community.
3333
</div>
3434
<div styleName="buttons">
3535
{ userId ? (
@@ -53,7 +53,7 @@ export default function ConfirmModal({
5353
window.location = `${config.URL.AUTH}/member?retUrl=${url}`;
5454
}}
5555
styleName="btnConfirmLong"
56-
>Log In & Join</button>
56+
>Login</button>
5757
<button
5858
onClick={() => {
5959
const url = `${
@@ -62,7 +62,7 @@ export default function ConfirmModal({
6262
window.location = `${config.URL.AUTH}/member/registration?retUrl=${url}`;
6363
}}
6464
styleName="btnConfirmLong"
65-
>Register & Join</button>
65+
>Register</button>
6666
<button
6767
onClick={resetJoinButton}
6868
styleName="btnCancelLong"

src/shared/components/tc-communities/communities/blockchain/Home/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export default function Home(props) {
3737
imageSrc="/themes/blockchain/community-hero.jpg"
3838
/>
3939

40-
<CommunityStats />
41-
4240
<JoinCommunity />
4341

42+
<CommunityStats />
43+
4444
<Section
4545
theme={{
4646
container: style.linksContainer,
@@ -104,12 +104,13 @@ export default function Home(props) {
104104

105105
<NewsSection news={props.news} />
106106

107+
/**
107108
<NewsletterSignup
108109
title="Sign up for Topcoder Product Development Updates"
109110
text="Don’t miss out opportunities to work on the Topcoder Platform!"
110111
imageSrc="/themes/wipro/subscribe-bg.jpg"
111112
/>
112-
113+
*/
113114
</main>
114115
);
115116
}

0 commit comments

Comments
 (0)