Skip to content

Commit a27790e

Browse files
committed
Merge pull request #3063 from topcoder-platform/qa-accessibility-fix-lint
Qa accessibility fix lint
1 parent e902ef6 commit a27790e

File tree

34 files changed

+1576
-790
lines changed

34 files changed

+1576
-790
lines changed

package-lock.json

+1,469-782
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/shared/components/Contentful/Accordion/Accordion/index.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Accordion.propTypes = {
102102
titleListItem: PT.string,
103103
titleListItemSelected: PT.string,
104104
content: PT.string,
105+
outerContainer: PT.any,
106+
description: PT.any,
105107
}),
106108
title: PT.string,
107109
description: PT.string,

src/shared/components/Contentful/Accordion/AccordionItem/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ AccordionItem.propTypes = {
7171
titleText: PT.string,
7272
titleArrow: PT.string,
7373
content: PT.string,
74+
title: PT.any,
7475
}),
7576
};
7677

src/shared/components/Contentful/Blog/Blog.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ Blog.propTypes = {
164164
pageCounter: PT.string.isRequired,
165165
pageNumber: PT.string.isRequired,
166166
button: PT.string.isRequired,
167+
paginationLinks: PT.any,
168+
disabledLink: PT.any,
167169
}).isRequired,
168170
pageNo: PT.number.isRequired,
169171
totalPage: PT.number.isRequired,

src/shared/components/Contentful/BlogPost/BlogPost.jsx

+8
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ BlogPost.propTypes = {
186186
contentByImage: PT.string,
187187
contentWrapperByImage: PT.string,
188188
image: PT.string,
189+
header: PT.any,
190+
leftArrow: PT.any,
191+
title: PT.any,
192+
postMeta: PT.any,
193+
postUpdatedAt: PT.any,
194+
postTags: PT.any,
195+
relatedPostsWrap: PT.any,
196+
relatedPosts: PT.any,
189197
}).isRequired,
190198
sys: PT.shape().isRequired,
191199
preview: PT.bool.isRequired,

src/shared/components/Contentful/ChallengesBlock/Card/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@ Card.propTypes = {
9797
registrationStartDate: PT.string.isRequired,
9898
submissionEndDate: PT.string.isRequired,
9999
track: PT.string.isRequired,
100+
subTrack: PT.string.isRequired,
100101
}).isRequired,
101102
};

src/shared/components/Contentful/ContentSlider/ContentSlider.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ ContentSlider.propTypes = {
110110
container: PT.string,
111111
content: PT.string,
112112
control: PT.string,
113+
multiContent: PT.any,
114+
singleContent: PT.any,
113115
}),
114116
containerStyle: PT.shape(),
115117
slidesToShow: PT.number,

src/shared/components/Contentful/MemberCard/MemberCard.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ MemberCardInner.propTypes = {
8484
handleWrapper: PT.string,
8585
handle: PT.string,
8686
flag: PT.string,
87+
memberName: PT.any,
88+
countryWrapper: PT.any,
89+
countryName: PT.any,
8790
}).isRequired,
8891
};
8992

src/shared/components/Contentful/Menu/Menu.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Menu.propTypes = {
7272
titleListItem: PT.string,
7373
titleListItemSelected: PT.string,
7474
content: PT.string,
75+
menuContainer: PT.any,
76+
menuSwitchContainer: PT.any,
7577
}),
7678
menuItems: PT.arrayOf(PT.shape()),
7779
baseUrl: PT.string.isRequired,

src/shared/components/Contentful/Modal/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ ContentfulModal.propTypes = {
155155
children: PT.node.isRequired,
156156
theme: PT.shape({
157157
modalTrigger: PT.string,
158+
dismissButton: PT.any,
158159
}),
159160
preview: PT.bool,
160161
spaceName: PT.string,

src/shared/components/Contentful/Quote/Quote.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Quote.propTypes = {
7575
authorName: PT.string.isRequired,
7676
authorAffiliation: PT.string.isRequired,
7777
avatarContainer: PT.string.isRequired,
78+
noImage: PT.any,
7879
}).isRequired,
7980
};
8081

src/shared/components/Dashboard/CurrentActivity/Challenges/ChallengeCard/index.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ ChallengeCard.propTypes = {
279279
id: PT.number.isRequired,
280280
name: PT.string.isRequired,
281281
track: PT.oneOf(['DATA_SCIENCE', 'DESIGN', 'DEVELOP']).isRequired,
282+
currentPhases: PT.any,
283+
registrationStartDate: PT.any,
284+
status: PT.any,
285+
userDetails: PT.any,
286+
events: PT.any,
287+
subTrack: PT.string.isRequired,
282288
}).isRequired,
283289
selectChallengeDetailsTab: PT.func.isRequired,
284290
setChallengeListingFilter: PT.func.isRequired,

src/shared/components/SubmissionManagement/Submission/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ Submission.propTypes = {
123123
}),
124124
submitted: PT.string,
125125
type: PT.string,
126+
submissionType: PT.any,
127+
submissionDate: PT.any,
128+
download: PT.any,
126129
}),
127130
showScreeningDetails: PT.bool,
128131
type: PT.string.isRequired,

src/shared/components/TopcoderHeader/mobile/Header/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Header.propTypes = {
6262
mainMenu: PT.arrayOf(SUB_MENU_SHAPE).isRequired,
6363
open: PT.func.isRequired,
6464
opened: PT.bool,
65-
profile: PT.shape({}),
65+
profile: PT.shape({
66+
photoURL: PT.any,
67+
}),
6668
userMenu: SUB_MENU_SHAPE,
6769
};

src/shared/components/TopcoderHeader/mobile/UserMenu/index.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ UserMenu.defaultProps = {
3434

3535
UserMenu.propTypes = {
3636
menu: SUB_MENU_SHAPE,
37-
profile: PT.shape({}),
37+
profile: PT.shape({
38+
handle: PT.string,
39+
photoURL: PT.string,
40+
}),
3841
};

src/shared/components/challenge-detail/Header/index.jsx

+20
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,26 @@ ChallengeHeader.propTypes = {
427427
checkpoints: PT.shape(),
428428
challenge: PT.shape({
429429
id: PT.number.isRequired,
430+
drPoints: PT.any,
431+
name: PT.any,
432+
subTrack: PT.any,
433+
pointPrizes: PT.any,
434+
events: PT.any,
435+
technologies: PT.any,
436+
platforms: PT.any,
437+
prizes: PT.any,
438+
numberOfCheckpointsPrizes: PT.any,
439+
topCheckPointPrize: PT.any,
440+
reliabilityBonus: PT.any,
441+
userDetails: PT.any,
442+
currentPhases: PT.any,
443+
numRegistrants: PT.any,
444+
numSubmissions: PT.any,
445+
status: PT.any,
446+
appealsEndDate: PT.any,
447+
allPhases: PT.any,
448+
track: PT.any,
449+
roundId: PT.any,
430450
}).isRequired,
431451
challengesUrl: PT.string.isRequired,
432452
hasRegistered: PT.bool.isRequired,

src/shared/components/challenge-detail/Specification/SideBar/EligibleEvents/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ EligibleEvents.propTypes = {
4141
eventDetails: PT.shape({
4242
eventName: PT.string.isRequired,
4343
eventDetails: PT.string.isRequired,
44+
description: PT.string.isRequired,
4445
}),
4546
};

src/shared/components/challenge-detail/Specification/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ ChallengeDetailsView.propTypes = {
564564
hasRegistered: PT.bool.isRequired,
565565
challenge: PT.shape({
566566
introduction: PT.string,
567+
documents: PT.any,
568+
id: PT.any,
569+
subTrack: PT.any,
567570
detailedRequirements: PT.string,
568571
track: PT.string.isRequired,
569572
groups: PT.shape().isRequired,

src/shared/components/challenge-detail/Submissions/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ SubmissionsComponent.propTypes = {
295295
submissions: PT.arrayOf(PT.object),
296296
submissionViewable: PT.string,
297297
track: PT.string.isRequired,
298+
registrants: PT.any,
299+
allPhases: PT.any,
300+
subTrack: PT.any,
298301
}).isRequired,
299302
toggleSubmissionHistory: PT.func.isRequired,
300303
submissionHistoryOpen: PT.shape({}).isRequired,

src/shared/components/challenge-detail/Winners/Winner/index.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,7 @@ Winner.propTypes = {
139139
winner: PT.shape({
140140
handle: PT.string.isRequired,
141141
placement: PT.number.isRequired,
142+
photoURL: PT.any,
143+
submissionDownloadLink: PT.any,
142144
}).isRequired,
143145
};

src/shared/components/challenge-listing/Sidebar/BucketSelector/Bucket/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Bucket.propTypes = {
9494
hideCount: PT.bool,
9595
name: PT.string.isRequired,
9696
error: PT.string,
97+
filter: PT.any,
9798
}).isRequired,
9899
challenges: PT.arrayOf(PT.shape).isRequired,
99100
disabled: PT.bool,

src/shared/components/examples/Themr/ThemableComponent/index.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ function ThemableComponent({ theme }) {
2121
export default themr('ThemableComponent', style)(ThemableComponent);
2222

2323
ThemableComponent.propTypes = {
24-
theme: PT.shape({}).isRequired,
24+
theme: PT.shape({
25+
box: PT.any,
26+
text: PT.any,
27+
}).isRequired,
2528
};

src/shared/components/sandbox/cms/dashboard/Announcements/Item/index.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Item.propTypes = {
4949
endDate: PT.string.isRequired,
5050
startDate: PT.string.isRequired,
5151
title: PT.string.isRequired,
52+
fields: PT.any,
53+
sys: PT.any,
5254
}).isRequired,
5355
level: PT.number.isRequired,
5456
top: PT.number.isRequired,

src/shared/components/tc-communities/Accordion/AccordionItem/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ AccordionItem.propTypes = {
7777
titleText: PT.string,
7878
titleArrow: PT.string,
7979
content: PT.string,
80+
title: PT.string,
8081
}),
8182
};
8283

src/shared/components/tc-communities/ChallengesBlock/Card/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Card.propTypes = {
9999
registrationStartDate: PT.string.isRequired,
100100
submissionEndDate: PT.string.isRequired,
101101
track: PT.string.isRequired,
102+
subTrack: PT.string.isRequired,
102103
}).isRequired,
103104
setChallengeListingFilter: PT.func.isRequired,
104105
};

src/shared/components/tc-communities/Footer/index.jsx

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ Footer.propTypes = {
9696
authorize: PT.string,
9797
btnRegister: PT.string,
9898
btnLogin: PT.string,
99+
link: PT.any,
100+
item: PT.any,
101+
itemLogo: PT.any,
102+
logo: PT.any,
99103
}),
100104
};
101105

src/shared/components/tc-communities/Header/index.jsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ Header.defaultProps = {
335335
};
336336

337337
Header.propTypes = {
338-
activeTrigger: PT.shape({}),
338+
activeTrigger: PT.shape({
339+
bottom: PT.string,
340+
}),
339341
baseUrl: PT.string,
340342
closeMenu: PT.func.isRequired,
341343
communityId: PT.string.isRequired,
@@ -347,6 +349,8 @@ Header.propTypes = {
347349
title: PT.string,
348350
url: PT.string,
349351
navigationMenu: PT.string,
352+
spaceName: PT.string,
353+
environment: PT.string,
350354
})),
351355
logos: PT.arrayOf(PT.oneOfType([
352356
PT.string,
@@ -363,7 +367,11 @@ Header.propTypes = {
363367
openMenu: PT.func.isRequired,
364368
pageId: PT.string.isRequired,
365369
onMobileToggleClick: PT.func.isRequired,
366-
profile: PT.shape({}),
370+
profile: PT.shape({
371+
photoURL: PT.string,
372+
groups: PT.any,
373+
handle: PT.string,
374+
}),
367375
theme: PT.shape().isRequired,
368376
logoutRedirect: PT.string,
369377
meta: PT.shape().isRequired,

src/shared/components/tco/scoreboard/ScoreboardTable/index.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,7 @@ Handle
9696
ScoreboardTable.propTypes = {
9797
challenge: PT.shape({
9898
id: PT.number,
99+
type: PT.any,
100+
submissions: PT.any,
99101
}).isRequired,
100102
};

src/shared/containers/tc-communities/Loader.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ Loader.propTypes = {
146146
meta: PT.shape({
147147
authorizedGroupIds: PT.arrayOf(PT.string),
148148
communityId: PT.string.isRequired,
149+
terms: PT.any,
150+
groupIds: PT.any,
151+
accessDeniedPage: PT.any,
149152
}),
150153
tokenV3: PT.string,
151154
visitorGroups: PT.arrayOf(PT.shape({ id: PT.string.isRequired })),

src/shared/containers/tc-communities/cognitive/home.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ HomeContainer.propTypes = {
8686
communitiesList: PT.shape({
8787
data: PT.arrayOf(PT.object).isRequired,
8888
timestamp: PT.number.isRequired,
89+
loadingUuid: PT.any,
8990
}).isRequired,
9091
getAllActiveChallenges: PT.func.isRequired,
9192
getCommunitiesList: PT.func.isRequired,

src/shared/containers/tco/scoreboard/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ ScoreboardPageContainer.defaultProps = {
6666

6767
ScoreboardPageContainer.propTypes = {
6868
challengeId: PT.number,
69-
scoreboard: PT.shape({}),
69+
scoreboard: PT.shape({
70+
details: PT.any,
71+
}),
7072
loading: PT.bool,
7173
loadScoreboard: PT.func,
7274
};

src/shared/containers/terms-detail/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ TermsDetailPageContainer.propTypes = {
194194
'terms-detail-container': PT.string.isRequired,
195195
'terms-acceptance-handler': PT.string.isRequired,
196196
'terms-title': PT.string.isRequired,
197+
modalMsg: PT.any,
197198
}).isRequired,
198199
};
199200

src/shared/routes/Communities/Mobile/Routes.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,7 @@ Mobile.defaultProps = {
109109

110110
Mobile.propTypes = {
111111
base: PT.string,
112-
meta: PT.shape({}),
112+
meta: PT.shape({
113+
communityId: PT.any,
114+
}),
113115
};

src/shared/routes/Communities/iot/Routes.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,7 @@ IoT.defaultProps = {
150150

151151
IoT.propTypes = {
152152
base: PT.string,
153-
meta: PT.shape({}),
153+
meta: PT.shape({
154+
communityId: PT.any,
155+
}),
154156
};

0 commit comments

Comments
 (0)