Skip to content

latest code #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Jun 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dba4d70
Update user.js
rashmi73 Mar 30, 2019
97ece93
Merge pull request #53 from rashmi73/issue_2276
ThomasKranitsas Mar 30, 2019
f20fe12
show error message when user email is used
applehit16 Apr 18, 2019
8f8101c
Merge pull request #55 from applehit16/email-conflict
sushilshinde Apr 18, 2019
7108325
npm version upgrade
sushilshinde Apr 18, 2019
de547d8
Fix tests
ThomasKranitsas Apr 18, 2019
9b3da5d
Remove V2 API from Dashboard and Profile Page
Apr 24, 2019
b93239d
Update docs of Remove v2 API
Apr 24, 2019
99d378b
Remove V2 API from Dashboard and Profile Page
Apr 24, 2019
e1c8d7a
Update testing
Apr 24, 2019
06aaf15
udpate email part 2
applehit16 Apr 21, 2019
4ac878f
Merge pull request #59 from applehit16/update-email-2
ThomasKranitsas Apr 24, 2019
64c84b2
Merge pull request #58 from nauhil/develop
ThomasKranitsas Apr 24, 2019
b273a19
Fix tests
ThomasKranitsas Apr 24, 2019
187ff2c
Bump npm version
ThomasKranitsas Apr 24, 2019
77a7fc7
Fix Server-side filtering on challenge listings
Apr 27, 2019
c76aaa1
Update _tests_/_snapshots_
Apr 27, 2019
fc0f961
Update _tests_/_snapshots
Apr 28, 2019
e7fb5ea
Merge pull request #61 from nauhil/develop
sushilshinde Apr 29, 2019
af685a2
upgrading topcoder-react-lib version
sushilshinde Apr 29, 2019
e91a940
Update filter object when fetch challenges.
Apr 30, 2019
c6a1e34
Merge pull request #63 from nauhil/develop
sushilshinde Apr 30, 2019
f8f8bd8
Bump npm version
ThomasKranitsas Apr 30, 2019
8978058
code 30090056
suppermancool May 3, 2019
e95c91b
update nap shot
suppermancool May 3, 2019
c5828cc
code 30090056
suppermancool May 4, 2019
b382b4a
update email preferences to use v5 api
vignesh-at-alation May 8, 2019
408ebc9
Merge pull request #65 from suppermancool/code-30090056
sushilshinde May 10, 2019
a78ae4d
Fix tests
ThomasKranitsas May 10, 2019
7f20b1b
Merge pull request #66 from vigneshTheDev/develop
sushilshinde May 10, 2019
dbabfda
bump npm version
sushilshinde May 10, 2019
ea9c3e3
Fixed issues of server-side filtering on challenge listings
May 24, 2019
0416c75
Merge pull request #68 from nauhil/develop
sushilshinde May 27, 2019
3a520ff
Updating NPM version for prod release to 0.7.15
sushilshinde May 27, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
228 changes: 228 additions & 0 deletions __tests__/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,31 @@ Object {
"updateChallengeDone": [Function],
"updateChallengeInit": [Function],
},
"challengeListing": Object {
"dropChallenges": [Function],
"expandTag": [Function],
"getActiveChallengesDone": [Function],
"getActiveChallengesInit": [Function],
"getAllActiveChallengesDone": [Function],
"getAllActiveChallengesInit": [Function],
"getChallengeSubtracksDone": [Function],
"getChallengeSubtracksInit": [Function],
"getChallengeTagsDone": [Function],
"getChallengeTagsInit": [Function],
"getMoreChallenges": [Function],
"getPastChallengesDone": [Function],
"getPastChallengesInit": [Function],
"getRestActiveChallengesDone": [Function],
"getRestActiveChallengesInit": [Function],
"getReviewOpportunitiesDone": [Function],
"getReviewOpportunitiesInit": [Function],
"getSrmsDone": [Function],
"getSrmsInit": [Function],
"selectCommunity": [Function],
"setDatepickerStatus": [Function],
"setFilter": [Function],
"setSort": [Function],
},
"direct": Object {
"dropAll": [Function],
"getProjectDetailsDone": [Function],
Expand Down Expand Up @@ -69,6 +94,7 @@ Object {
"dropAll": [Function],
"getAchievementsDone": [Function],
"getAchievementsInit": [Function],
"getAchievementsV3Done": [Function],
"getActiveChallengesDone": [Function],
"getActiveChallengesInit": [Function],
"getFinancesDone": [Function],
Expand Down Expand Up @@ -98,6 +124,7 @@ Object {
"deleteWebLinkInit": [Function],
"getAchievementsDone": [Function],
"getAchievementsInit": [Function],
"getAchievementsV3Done": [Function],
"getCredentialDone": [Function],
"getCredentialInit": [Function],
"getEmailPreferencesDone": [Function],
Expand All @@ -123,6 +150,7 @@ Object {
"saveEmailPreferencesInit": [Function],
"unlinkExternalAccountDone": [Function],
"unlinkExternalAccountInit": [Function],
"updateEmailConflict": [Function],
"updatePasswordDone": [Function],
"updatePasswordInit": [Function],
"updateProfileDone": [Function],
Expand Down Expand Up @@ -170,13 +198,145 @@ Object {
},
},
"challenge": Object {
"buckets": Object {
"BUCKETS": Object {
"ALL": "all",
"MY": "my",
"ONGOING": "ongoing",
"OPEN_FOR_REGISTRATION": "openForRegistration",
"PAST": "past",
"REVIEW_OPPORTUNITIES": "reviewOpportunities",
"SAVED_FILTER": "saved-filter",
"SAVED_REVIEW_OPPORTUNITIES_FILTER": "savedReviewOpportunitiesFilter",
"UPCOMING": "upcoming",
},
"BUCKET_DATA": Object {
"all": Object {
"filter": Object {
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "All Challenges",
"sorts": Array [],
},
"my": Object {
"filter": Object {
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "My Challenges",
"sorts": Array [
"most-recent",
"time-to-submit",
"num-registrants",
"num-submissions",
"prize-high-to-low",
"title-a-to-z",
],
},
"ongoing": Object {
"filter": Object {
"registrationOpen": false,
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "Ongoing challenges",
"sorts": Array [
"most-recent",
"current-phase",
"title-a-to-z",
"prize-high-to-low",
],
},
"openForRegistration": Object {
"filter": Object {
"registrationOpen": true,
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "Open for registration",
"sorts": Array [
"most-recent",
"time-to-register",
"time-to-submit",
"num-registrants",
"num-submissions",
"prize-high-to-low",
"title-a-to-z",
],
},
"past": Object {
"filter": Object {
"status": Array [
"COMPLETED",
"PAST",
],
},
"hideCount": true,
"name": "Past challenges",
"sorts": Array [
"most-recent",
"prize-high-to-low",
"title-a-to-z",
],
},
"reviewOpportunities": Object {
"filter": Object {},
"hideCount": true,
"name": "Open for review",
"sorts": Array [
"review-opportunities-start-date",
"review-opportunities-payment",
"review-opportunities-title-a-to-z",
],
},
"savedReviewOpportunitiesFilter": Object {
"filter": Object {},
"sorts": Array [
"review-opportunities-start-date",
"review-opportunities-payment",
"review-opportunities-title-a-to-z",
],
},
"upcoming": Object {
"filter": Object {
"upcoming": true,
},
"hideCount": true,
"name": "Upcoming challenges",
"sorts": Array [
"most-recent",
"prize-high-to-low",
"title-a-to-z",
],
},
},
"default": undefined,
"getBuckets": [Function],
"isReviewOpportunitiesBucket": [Function],
"registerBucket": [Function],
},
"filter": Object {
"addTrack": [Function],
"combine": [Function],
"default": undefined,
"filterByDate": [Function],
"getFilterFunction": [Function],
"getReviewOpportunitiesFilterFunction": [Function],
"mapToBackend": [Function],
"newMeta": [Function],
"removeTrack": [Function],
"setEndDate": [Function],
"setReviewOpportunityType": [Function],
Expand All @@ -185,6 +345,67 @@ Object {
"setTags": [Function],
"setText": [Function],
},
"sort": Object {
"SORTS": Object {
"CURRENT_PHASE": "current-phase",
"MOST_RECENT": "most-recent",
"NUM_REGISTRANTS": "num-registrants",
"NUM_SUBMISSIONS": "num-submissions",
"PRIZE_HIGH_TO_LOW": "prize-high-to-low",
"REVIEW_OPPORTUNITIES_PAYMENT": "review-opportunities-payment",
"REVIEW_OPPORTUNITIES_START_DATE": "review-opportunities-start-date",
"REVIEW_OPPORTUNITIES_TITLE_A_TO_Z": "review-opportunities-title-a-to-z",
"TIME_TO_REGISTER": "time-to-register",
"TIME_TO_SUBMIT": "time-to-submit",
"TITLE_A_TO_Z": "title-a-to-z",
},
"SORTS_DATA": Object {
"current-phase": Object {
"func": [Function],
"name": "Current phase",
},
"most-recent": Object {
"func": [Function],
"name": "Most recent",
},
"num-registrants": Object {
"func": [Function],
"name": "# of registrants",
},
"num-submissions": Object {
"func": [Function],
"name": "# of submissions",
},
"prize-high-to-low": Object {
"func": [Function],
"name": "Prize high to low",
},
"review-opportunities-payment": Object {
"func": [Function],
"name": "Payment",
},
"review-opportunities-start-date": Object {
"func": [Function],
"name": "Review start date",
},
"review-opportunities-title-a-to-z": Object {
"func": [Function],
"name": "Title A-Z",
},
"time-to-register": Object {
"func": [Function],
"name": "Time to register",
},
"time-to-submit": Object {
"func": [Function],
"name": "Time to submit",
},
"title-a-to-z": Object {
"func": [Function],
"name": "Title A-Z",
},
},
},
},
"errors": Object {
"ERROR_ICON_TYPES": Object {
Expand Down Expand Up @@ -224,6 +445,7 @@ Object {
"reducers": Object {
"auth": [Function],
"challenge": [Function],
"challengeListing": [Function],
"direct": [Function],
"errors": [Function],
"groups": [Function],
Expand Down Expand Up @@ -318,11 +540,17 @@ Object {
},
"getApiResponsePayload": [Function],
"getLookerApiResponsePayload": [Function],
"processSRM": [Function],
},
"time": Object {
"default": undefined,
"delay": [Function],
"formatDuration": [Function],
},
"url": Object {
"default": undefined,
"removeTrailingSlash": [Function],
"updateQuery": [Function],
},
}
`;
3 changes: 3 additions & 0 deletions __tests__/actions/__snapshots__/profile.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Object {
"deleteWebLinkInit": [Function],
"getAchievementsDone": [Function],
"getAchievementsInit": [Function],
"getAchievementsV3Done": [Function],
"getCredentialDone": [Function],
"getCredentialInit": [Function],
"getEmailPreferencesDone": [Function],
Expand All @@ -39,6 +40,7 @@ Object {
"saveEmailPreferencesInit": [Function],
"unlinkExternalAccountDone": [Function],
"unlinkExternalAccountInit": [Function],
"updateEmailConflict": [Function],
"updatePasswordDone": [Function],
"updatePasswordInit": [Function],
"updateProfileDone": [Function],
Expand Down Expand Up @@ -164,6 +166,7 @@ Object {
},
},
"handle": "tcscoder",
"preferences": Object {},
},
"type": "PROFILE/SAVE_EMAIL_PREFERENCES_DONE",
}
Expand Down
12 changes: 6 additions & 6 deletions __tests__/reducers/__snapshots__/profile.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -939,7 +939,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -989,7 +989,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -1926,7 +1926,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -2125,7 +2125,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -2175,7 +2175,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/reducers/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const mockActions = {
deleteWebLinkInit: mockAction('DELETE_WEB_LINK_INIT'),
deleteWebLinkDone: mockAction('DELETE_WEB_LINK_DONE', { handle, data: webLink }),
saveEmailPreferencesInit: mockAction('SAVE_EMAIL_PREFERENCES_INIT'),
saveEmailPreferencesDone: mockAction('SAVE_EMAIL_PREFERENCES_DONE', { handle, data: { subscriptions: { TOPCODER_NL_DATA: true } } }),
saveEmailPreferencesDone: mockAction('SAVE_EMAIL_PREFERENCES_DONE', { handle, preferences: { 'Dev Newsletter': true } }),
linkExternalAccountInit: mockAction('LINK_EXTERNAL_ACCOUNT_INIT'),
linkExternalAccountDone: mockAction('LINK_EXTERNAL_ACCOUNT_DONE', { handle, data: linkedAccount2 }),
unlinkExternalAccountInit: mockAction('UNLINK_EXTERNAL_ACCOUNT_INIT'),
Expand Down
1 change: 1 addition & 0 deletions config/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
API: {
V2: 'https://api.topcoder-dev.com/v2',
V3: 'https://api.topcoder-dev.com/v3',
V5: 'https://api.topcoder-dev.com/v5',
},
dummyConfigKey: 'Dummy config value',
};
Loading