diff --git a/.circleci/config.yml b/.circleci/config.yml index a5a599916a..810c4633bd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -231,6 +231,7 @@ workflows: branches: only: - hot-fix + - integration-v5-develop # This is alternate dev env for parallel testing - "build-test": context : org-global @@ -252,6 +253,7 @@ workflows: branches: only: - hot-fix + - integration-v5-develop # This is stage env for production QA releases - "build-prod-staging": context : org-global diff --git a/.eslintrc b/.eslintrc index ddc5f09737..0636c3dfd6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,7 +2,8 @@ "extends": "./node_modules/topcoder-react-utils/config/eslint/default.json", "rules": { "jsx-a11y/anchor-is-valid": false, - "import/no-cycle": [2, { "maxDepth": 1 }] + "import/no-cycle": [2, { "maxDepth": 1 }], + "react/forbid-prop-types": false }, "env": { "browser": true diff --git a/__tests__/shared/components/ChallengeTile/__mocks__/design.json b/__tests__/shared/components/ChallengeTile/__mocks__/design.json index 9bf42f544c..eece77716d 100644 --- a/__tests__/shared/components/ChallengeTile/__mocks__/design.json +++ b/__tests__/shared/components/ChallengeTile/__mocks__/design.json @@ -15,10 +15,11 @@ "technologies": "", "status": "COMPLETED", "legacy": { - "track": "DESIGN", "forumId": 599349 }, - "subTrack": "LOGO_DESIGN", + "track": "Design", + "type": "Challenge", + "tags": "Logo Design", "name": "Sunshot - MapMySolar - SunGiver - Brand Concept Logo Design Challenge", "reviewType": "INTERNAL", "id": 30051608, @@ -320,10 +321,11 @@ "technologies": "", "status": "COMPLETED", "legacy": { - "track": "DESIGN", "forumId": 598066 }, - "subTrack": "LOGO_DESIGN", + "track": "Design", + "type": "Challenge", + "tags": ["Logo Design"], "name": "2016 Topcoder Open Logo Design Challenge", "reviewType": "INTERNAL", "id": 30051059, @@ -532,10 +534,11 @@ "technologies": "", "status": "COMPLETED", "legacy": { - "track": "DESIGN", "forumId": 596557 }, - "subTrack": "LOGO_DESIGN", + "track": "Design", + "type": "Challenge", + "tags": "Logo Design", "name": "ACME Logos Design Challenge", "reviewType": "INTERNAL", "id": 30050375, diff --git a/__tests__/shared/components/ChallengeTile/__mocks__/develop.json b/__tests__/shared/components/ChallengeTile/__mocks__/develop.json index ec6b731307..9a48f9f5fb 100644 --- a/__tests__/shared/components/ChallengeTile/__mocks__/develop.json +++ b/__tests__/shared/components/ChallengeTile/__mocks__/develop.json @@ -22,10 +22,10 @@ "technologies": "CSS, HTML, JavaScript", "status": "COMPLETED", "legacy": { - "track": "DEVELOP", "forumId": 39153 }, - "subTrack": "FIRST_2_FINISH", + "track": "Development", + "type": "First2Finish", "name": "$100 Eaton PX 2.0 Petting Zoo - MDC Web Enhancement F2F Challenge", "reviewType": "INTERNAL", "id": 30060905, @@ -165,10 +165,10 @@ "technologies": "ReactJS", "status": "COMPLETED", "legacy": { - "track": "DEVELOP", "forumId": 39151 }, - "subTrack": "FIRST_2_FINISH", + "track": "Development", + "type": "First2Finish", "name": "$100 Eaton PX 2.0 Petting Zoo - ReactJS Enhancement F2F Challenge", "reviewType": "INTERNAL", "id": 30060903, @@ -323,10 +323,10 @@ "technologies": "Angular 2+, Express, JSON, Node.js", "status": "COMPLETED", "legacy": { - "track": "DEVELOP", "forumId": 38951 }, - "subTrack": "FIRST_2_FINISH", + "track": "Development", + "type": "First2Finish", "name": "$500 BG800 Online Course Mock Rest API F2F Challenge", "reviewType": "INTERNAL", "id": 30060687, @@ -630,11 +630,11 @@ "updatedBy": "22841596", "technologies": "JavaScript, ReactJS", "status": "COMPLETED", - "legacy": { - "track": "DEVELOP", + "legacy": { "forumId": 38702 }, - "subTrack": "FIRST_2_FINISH", + "track": "Development", + "type": "First2Finish", "name": "John Hancock - Giving Tuesday - General image handling", "reviewType": "INTERNAL", "id": 30060425, diff --git a/__tests__/shared/components/ChallengeTile/__mocks__/marathon.json b/__tests__/shared/components/ChallengeTile/__mocks__/marathon.json index a6d183de7c..2bc7157730 100644 --- a/__tests__/shared/components/ChallengeTile/__mocks__/marathon.json +++ b/__tests__/shared/components/ChallengeTile/__mocks__/marathon.json @@ -1,14 +1,12 @@ [{ "id": 15404, "name": "2018 TCO Marathon", - "type": "mmatches", "status": "PAST", "startDate": "2018-05-02T23:58:00.000Z", "endDate": "2018-05-02T23:58:00.000Z", - "legacy": { - "track": "DATA_SCIENCE" - }, - "subTrack": "MARATHON_MATCH", + "track": "Data Science", + "type": "Challenge", + "tags": ["Marathon Match"], "numOfRegistrants": null, "userIds": [141650, 158782, 276230, 282718, 283329, 7213681, 7359397, 7394165, 7442498, 7461533, 7465964, 7502813, 8366961, 8436045, 10233638, 10233638, 10467320, 10544397, 10597114, 10600282, 11854576, 13274356, 13298470, 14773682, 14883513, 14927744, 14991227, 15050434, 15118607, 16017427, 19740398, 20283608, 20315020, 20539063, 20783604, 20994662, 21114351, 21159810, 21179827, 21239511, 21688563, 21918101, 22020968, 22263204, 22389733, 22401534, 22627322, 22628625, 22629065, 22630490, 22638533, 22651906, 22653042, 22653720, 22653739, 22654575, 22656451, 22657201, 22657314, 22658052, 22661247, 22663117, 22663117, 22663924, 22671296, 22671296, 22671337, 22672408, 22674904, 22678508, 22680214, 22682274, 22682865, 22686512, 22688672, 22689976, 22692969, 22694931, 22697551, 22697669, 22704094, 22707222, 22718833, 22718910, 22721705, 22724258, 22727735, 22729239, 22734926, 22739971, 22741614, 22743661, 22744169, 22744421, 22747080, 22748044, 22753197, 22754284, 22756524, 22763515, 22768223, 22769598, 22769901, 22774534, 22774825, 22776482, 22779022, 22781646, 22781940, 22786326, 22794555, 22821941, 22825384, 22825875, 22826091, 22826139, 22826853, 22827765, 22828541, 22828546, 22829913, 22833363, 22843425, 22846688, 22850782, 22856251, 22858981, 22860336, 22860886, 22864722, 22868771, 22871352, 22873934, 22876363, 22881459, 22881735, 22897216, 22898655, 22906337, 22906557, 22906664, 22907549, 22909326, 22912209, 22912366, 22914184, 22919719, 22921277, 22923054, 22923054, 22924522, 22926652, 22929867, 22931891, 22932516, 23007886, 23008568, 23009812, 23015069, 23016887, 23018971, 23022695, 23026506, 23027339, 23040369, 23042482, 23042826, 23043484, 23044638, 23057573, 23057753, 23057905, 23069397, 23069974, 23070173, 23073768, 23073805, 23078492, 23080863, 23088109, 23088634, 23091447, 23092404, 23098513, 23100980, 23104345, 23104569, 23104569, 23115876, 23122212, 23127980, 23128010, 23128049, 23128490, 23128776, 23134176, 23141252, 23145211, 23145682, 23147616, 23149662, 23158804, 23161183, 23169412, 23170396, 23171633, 23177471, 23193535, 23264897, 23264897, 23285007, 23285054, 23285989, 23286857, 23289980, 23289980, 23292260, 23305127, 23308488, 23309818, 23309825, 23310707, 23323058, 23332062, 40005002, 40007407, 40007407, 40007844, 40014801, 40020552, 40022736, 40022736, 40027160, 40036552, 40038456, 40040728, 40050596, 40066523, 40082862, 40086753, 40094143, 40099108, 40106381, 40114709, 40116774, 40120624, 40130436, 40133770, 40133915, 40136338, 40140108, 40185279, 40188699, 40191001, 40196465, 40197594, 40215674, 40220230, 40236037, 40246974, 40247232, 40257176, 40259383, 40260799, 40266935, 40270737, 40270737, 40274368, 40293157, 40303624, 40309917, 40315743, 40319654, 40333188, 40336669, 40339779, 40347577, 40348876, 40350250, 40358649, 40361537, 40372812, 40392652, 40393775, 40396340, 40401694, 40402465, 40412809, 40433686, 40435654, 40443608, 40444244, 40446059, 40468706, 40480823, 40490675, 40496834, 40496834, 40502666, 40503423, 40505498, 40511723, 40513494, 40521665, 40523623, 40533186, 40543286, 40551842, 40554284, 40558626, 40560077, 40560115, 40562017, 40564389, 40572694, 40576855, 40576855, 40584681, 40586177, 40589817, 40589976, 40590641, 40594497, 40596982, 40596988, 40599327, 40600453, 40600514, 40618250, 40620991, 40621505, 40622191, 40624308, 40624612, 40630337, 40634796, 40638118, 40640695, 40640709, 40645709, 40646798, 40648689, 40649399, 40650540, 40651481, 40651481, 40652591, 40653455, 40655289, 40661549, 40667067, 40668009, 40675162, 40677436, 40678596, 40683329, 40684088, 40685467, 40686365, 40687942, 40690174, 40694576, 40705298, 40708164, 40708275, 40712448, 40714074, 40714397, 40715005, 40716035, 40716035, 40721133, 40723831, 40725891, 40726067, 40727059, 40734958, 40734958, 40738694, 40741634, 40742742, 40743704, 40744195, 40744262, 40745265, 40746165, 40746480, 40747463, 40749658, 40749849, 40750013, 40750028, 40750524, 40750715, 40751274, 40751284, 40751286, 40751290, 40752373, 40752902, 40752954, 40753004, 40753014, 40753051, 40753238, 40753292, 40753317, 40753398, 40753443, 40753452, 40753455, 40753666, 40753750, 40753792, 40753803, 40753978, 40754052, 40754086, 40754732, 40754772, 40754801, 40754967], "handles": null, @@ -41,14 +39,12 @@ }, { "id": 15207, "name": "2017 TCO Marathon", - "type": "mmatches", "status": "PAST", "startDate": "2017-04-12T16:36:00.000Z", "endDate": "2017-04-12T16:36:00.000Z", - "legacy": { - "track": "DATA_SCIENCE" - }, - "subTrack": "MARATHON_MATCH", + "track": "Data Science", + "type": "Challenge", + "tags": ["Marathon Match"], "numOfRegistrants": null, "userIds": [141650, 158782, 262598, 276230, 278425, 279876, 282718, 282718, 288302, 301395, 7213681, 7359397, 7390467, 7394165, 7442498, 7461533, 7465964, 7527926, 8366961, 8369898, 8400878, 8400878, 8436045, 8527113, 10278300, 10544397, 10597114, 10600282, 11789293, 13274356, 13274356, 13298470, 13365783, 14821847, 14881583, 14883513, 14927744, 14991227, 15580072, 15635590, 15781032, 15896190, 16017427, 19740398, 20315020, 20539063, 20799813, 20994662, 21114351, 21159810, 21162075, 21323186, 21500759, 21595895, 21688563, 21756423, 21990198, 22000198, 22020968, 22096856, 22255814, 22263204, 22628625, 22628772, 22629065, 22629850, 22644845, 22650894, 22651620, 22651906, 22652963, 22653042, 22653720, 22653739, 22654615, 22655052, 22657314, 22659807, 22661247, 22663924, 22671337, 22671446, 22672082, 22673613, 22674904, 22674904, 22675075, 22675075, 22680214, 22680376, 22682274, 22686050, 22686590, 22688641, 22688672, 22688964, 22689976, 22692760, 22692969, 22695559, 22696883, 22697551, 22697599, 22697669, 22697669, 22704094, 22705227, 22707497, 22708888, 22714779, 22718833, 22718910, 22718910, 22719721, 22727735, 22729239, 22730083, 22734926, 22736823, 22736823, 22738588, 22740367, 22740882, 22740882, 22741553, 22741614, 22743010, 22743661, 22744169, 22744390, 22744421, 22745629, 22745629, 22745897, 22748044, 22750409, 22751549, 22753458, 22758275, 22768223, 22768760, 22768760, 22774059, 22774534, 22776202, 22779022, 22780674, 22781250, 22781646, 22825496, 22826277, 22826721, 22827765, 22827765, 22827955, 22832123, 22832491, 22836242, 22836556, 22838816, 22846688, 22848598, 22850782, 22852089, 22852762, 22858920, 22859100, 22860336, 22861807, 22863733, 22864251, 22868476, 22868771, 22868771, 22871352, 22873934, 22875240, 22880808, 22881961, 22886772, 22888586, 22895368, 22897296, 22898655, 22901426, 22904503, 22905515, 22906337, 22906557, 22906664, 22910325, 22912209, 22912366, 22912545, 22914235, 22921568, 22923054, 22923054, 22923055, 22924522, 22926186, 22926652, 22929407, 22931372, 22931612, 22931891, 22933869, 23002583, 23004373, 23005191, 23012810, 23014542, 23016887, 23018456, 23019224, 23026219, 23026506, 23027186, 23029708, 23029708, 23037508, 23043110, 23044100, 23048122, 23051360, 23052698, 23056947, 23057753, 23059200, 23061160, 23062527, 23064972, 23065598, 23065598, 23069974, 23071944, 23074035, 23076476, 23077893, 23078492, 23078492, 23082644, 23087578, 23088109, 23088634, 23092404, 23095311, 23100980, 23102821, 23105624, 23108220, 23116990, 23117897, 23118372, 23120489, 23121131, 23122212, 23128049, 23128490, 23128776, 23129662, 23133942, 23142537, 23145682, 23148258, 23148258, 23149077, 23157421, 23157421, 23169412, 23170396, 23186180, 23187136, 23190917, 23264360, 23264360, 23279396, 23284922, 23285054, 23285191, 23285989, 23285989, 23286857, 23286857, 23287092, 23290002, 23290206, 23291387, 23301156, 23301803, 23303941, 23308488, 23308968, 23309238, 23309653, 23309737, 23310707, 23310707, 23311183, 23332062, 40004273, 40005002, 40005002, 40005810, 40005857, 40007407, 40007407, 40008578, 40014801, 40016240, 40020552, 40022736, 40030204, 40031019, 40039273, 40039273, 40040728, 40044069, 40048706, 40066523, 40074888, 40080274, 40082363, 40087353, 40088364, 40088512, 40090400, 40093243, 40096329, 40097147, 40099108, 40099108, 40100022, 40103831, 40104094, 40106381, 40108151, 40113338, 40114559, 40130436, 40136338, 40137723, 40140100, 40144256, 40144256, 40147753, 40171544, 40172243, 40173852, 40185846, 40188699, 40189205, 40191782, 40192433, 40192452, 40199959, 40201213, 40204737, 40214610, 40215672, 40217380, 40220230, 40231315, 40231776, 40239799, 40241602, 40243986, 40245042, 40246974, 40252925, 40254405, 40255803, 40257178, 40259147, 40259435, 40261585, 40264508, 40266935, 40270926, 40272078, 40275439, 40293157, 40293183, 40296160, 40303778, 40309917, 40316849, 40320986, 40331065, 40333188, 40339779, 40342537, 40345973, 40350250, 40351072, 40354938, 40361124, 40362732, 40366883, 40366883, 40373877, 40382136, 40382260, 40392599, 40392652, 40393970, 40394909, 40402465, 40404360, 40405082, 40405082, 40406885, 40406885, 40409422, 40414442, 40418294, 40418613, 40432427, 40437737, 40443608, 40443888, 40444105, 40446644, 40448699, 40450595, 40450871, 40452970, 40452970, 40455442, 40467832, 40473881, 40479115, 40479452, 40479596, 40480823, 40480823, 40487265, 40488102, 40488725, 40490272, 40493059, 40493088, 40496479, 40497851, 40501311, 40503324, 40506011, 40507460, 40511723, 40513494, 40513494, 40520883, 40525739, 40527738, 40530677, 40530816, 40531757, 40536959, 40536959, 40537603, 40537831, 40540709, 40544403, 40544737, 40547989, 40549529, 40550524, 40553143, 40557369, 40557524, 40558626, 40559053, 40561659, 40562821, 40563504, 40564382, 40564389, 40564512, 40564828, 40564849, 40564905, 40565143, 40565174, 40565291, 40565509, 40565520, 40565563, 40565772, 40566354, 40566596, 40566811, 40567495, 40567516, 40567778, 40567844, 40568010, 40568105, 40568543, 40569200, 40569232, 40569539, 40569914, 40570266, 40570276, 40570566, 40570878, 40570901, 40571240, 40571475, 40571488, 40572427, 40572538, 40572611, 40572694, 40572836, 40574472, 40576855, 40577502, 40577561, 40578508, 40578650, 40579199, 40579911, 40580124, 40580290, 40581210, 40581210, 40581302, 40581354, 40581423, 40581692, 40581807, 40582191, 40582397, 40586052, 40587327, 40587592, 40588362, 40589053, 40594541, 40594664, 40595586, 40598283, 40598746, 40598891, 40598926, 40599327, 40600255, 40600514, 40600610, 40604152, 40604326, 40605359, 40621653, 40624432, 40626413, 40626880, 40626970, 40627492], "handles": null, @@ -81,14 +77,12 @@ }, { "id": 15101, "name": "Time Series Learning", - "type": "mmatches", "status": "PAST", "startDate": "2016-07-01T19:36:00.000Z", "endDate": "2016-07-01T19:36:00.000Z", - "legacy": { - "track": "DATA_SCIENCE" - }, - "subTrack": "MARATHON_MATCH", + "track": "Data Science", + "type": "Challenge", + "tags": ["Marathon Match"], "numOfRegistrants": null, "userIds": [154140, 269874, 272273, 278182, 278995, 288224, 295533, 299658, 346860, 7213681, 7218883, 7442498, 7454975, 7456002, 7486189, 7524742, 8351376, 8368688, 8378182, 8447720, 8534923, 10223128, 10389461, 10407399, 10410959, 10597114, 10622349, 10622813, 10651584, 10697386, 11789293, 11943911, 11960667, 13298470, 13365783, 13386938, 14850928, 14883513, 15217330, 15580072, 15620282, 15700523, 15759076, 21050876, 21074047, 21245720, 21260340, 21348747, 21841130, 22653678, 22654637, 22657324, 22667224, 22668509, 22672939, 22673010, 22676578, 22678451, 22681556, 22685471, 22686050, 22686885, 22687885, 22691367, 22691875, 22704193, 22704223, 22709036, 22709401, 22710961, 22712353, 22714511, 22720311, 22724786, 22724890, 22729347, 22735770, 22740598, 22741497, 22741638, 22744390, 22746169, 22747887, 22748602, 22748809, 22753197, 22763515, 22771322, 22772927, 22773629, 22774059, 22774534, 22774543, 22774735, 22774947, 22776986, 22826877, 22827765, 22830782, 22830911, 22832535, 22835245, 22837526, 22845571, 22849993, 22851426, 22851534, 22851695, 22854301, 22856136, 22856405, 22857667, 22860727, 22866234, 22866292, 22875797, 22881290, 22885065, 22886024, 22887668, 22889926, 22891205, 22892489, 22893041, 22895494, 22902778, 22902990, 22903221, 22904497, 22904503, 22906600, 22908168, 22910325, 22912943, 22913151, 22914111, 22914334, 22919728, 22923197, 22924440, 22925924, 22927475, 22930463, 22936420, 22938207, 23002104, 23004444, 23005048, 23006918, 23007392, 23014542, 23017446, 23018445, 23019419, 23022099, 23022695, 23029708, 23032149, 23037218, 23038038, 23038899, 23039183, 23043893, 23046001, 23047213, 23048327, 23049553, 23060302, 23060949, 23061767, 23061953, 23070173, 23070641, 23070657, 23070734, 23072035, 23073943, 23075604, 23077395, 23079943, 23080596, 23083557, 23084510, 23087191, 23090167, 23093966, 23095394, 23097902, 23100339, 23100953, 23100980, 23101059, 23101081, 23101315, 23102361, 23102940, 23104345, 23105719, 23107697, 23108023, 23108439, 23108623, 23112493, 23116063, 23116075, 23117698, 23119181, 23119757, 23124403, 23125504, 23127980, 23128049, 23128986, 23132066, 23133685, 23134944, 23135019, 23135687, 23135828, 23138103, 23139753, 23140177, 23145576, 23148540, 23149729, 23151567, 23155371, 23155492, 23156903, 23156915, 23157098, 23160221, 23160794, 23184582, 23184834, 23195087, 23200855, 23202082, 23202937, 23274070, 23292810, 23293318, 23302899, 23307371, 23309814, 23309825, 23332647, 40001257, 40004159, 40005002, 40005810, 40007407, 40021371, 40033982, 40047615, 40048545, 40056331, 40057691, 40061486, 40062829, 40063560, 40064456, 40066329, 40067461, 40068262, 40068271, 40074153, 40074818, 40078304, 40078665, 40082879, 40087294, 40088364, 40088512, 40090400, 40090611, 40091871, 40094376, 40096710, 40098002, 40100067, 40100985, 40113361, 40114315, 40143464, 40144256, 40169606, 40171293, 40178963, 40179229, 40181241, 40181568, 40183109, 40188938, 40192587, 40192860, 40194929, 40199959, 40200221, 40202985, 40204368, 40205303, 40206067, 40207670, 40210548, 40210613, 40210665, 40213206, 40214489, 40215779, 40217185, 40219699, 40220714, 40220917, 40224034, 40224563, 40227481, 40233048, 40234303, 40234331, 40236485, 40237717, 40242737, 40243674, 40243869, 40244398, 40246318, 40247029, 40250420, 40250885, 40253929, 40254603, 40255353, 40256114, 40259287, 40259717, 40260287, 40263733, 40265124, 40267774, 40267805, 40272727, 40272788, 40275927, 40278661, 40278748, 40282544, 40283914, 40284020, 40285475, 40289457, 40295694, 40296802, 40305675, 40309798, 40312517, 40313123, 40314028, 40319457, 40321860, 40324216, 40325141, 40326063, 40327774, 40331705, 40332631, 40337197, 40338897, 40339564, 40341972, 40342537, 40342983, 40347683, 40351145, 40351980, 40352132, 40352345, 40352844, 40355569, 40356777, 40358242, 40358649, 40358790, 40361537, 40362263, 40362879, 40363213, 40363533, 40364699, 40369248, 40369400, 40369686, 40375460, 40377128, 40378058, 40380344, 40380865, 40380879, 40381328, 40381516, 40382590, 40386073, 40389458, 40390334, 40391430, 40391788, 40393144, 40394268, 40394701, 40395226, 40396292, 40396939, 40397138, 40419332, 40431793, 40445620, 40446698, 40448856, 40450235, 40453619, 40453872, 40454407, 40454568, 40456037, 40456117, 40456616, 40457254, 40457312, 40457501, 40457659, 40458164, 40458449, 40458819, 40459217, 40459388, 40459442, 40460262, 40460306, 40460587, 40461042, 40462020, 40462061, 40462750, 40464922, 40465528], "handles": null, @@ -121,14 +115,12 @@ }, { "id": 15082, "name": "Fishing for Fishermen", - "type": "mmatches", "status": "PAST", "startDate": "2016-05-06T13:11:00.000Z", "endDate": "2016-05-06T13:11:00.000Z", - "legacy": { - "track": "DATA_SCIENCE" - }, - "subTrack": "MARATHON_MATCH", + "track": "Data Science", + "type": "Challenge", + "tags": ["Marathon Match"], "numOfRegistrants": null, "userIds": [142908, 151743, 151743, 279175, 293608, 295809, 296689, 299068, 7213681, 7442498, 7481999, 7486189, 7488783, 8351376, 8415179, 8445979, 9916266, 10597114, 10664765, 11789293, 11793516, 11928645, 13274356, 13281173, 13365783, 14867032, 14883513, 15151937, 15180452, 15391415, 15580072, 15599488, 15722497, 15781032, 16017427, 16286638, 19938079, 20680885, 20765681, 21407357, 21411972, 21866691, 22412992, 22627064, 22627112, 22630158, 22630232, 22630497, 22635191, 22637267, 22640357, 22651906, 22652845, 22655287, 22658052, 22663924, 22667224, 22668870, 22671291, 22671608, 22680214, 22686050, 22686590, 22686885, 22688672, 22690116, 22690327, 22691355, 22698098, 22698830, 22700085, 22700843, 22704303, 22704672, 22704801, 22708072, 22711181, 22718910, 22723258, 22723321, 22735770, 22736823, 22739669, 22742639, 22745596, 22746398, 22746456, 22749362, 22750962, 22752626, 22753197, 22754202, 22759498, 22768416, 22769001, 22769513, 22772511, 22773629, 22774059, 22774534, 22775072, 22775328, 22776011, 22778882, 22779022, 22779022, 22788800, 22789553, 22792908, 22793803, 22794225, 22820771, 22821001, 22825438, 22827337, 22827765, 22828541, 22830782, 22831125, 22837733, 22839528, 22840269, 22842716, 22843062, 22845163, 22849993, 22850373, 22851067, 22854046, 22854046, 22854212, 22857866, 22862481, 22863278, 22869667, 22874592, 22875790, 22875864, 22880063, 22880988, 22881559, 22883575, 22885145, 22885430, 22886024, 22886772, 22886819, 22887668, 22887777, 22895494, 22897296, 22900997, 22902778, 22903595, 22908058, 22908168, 22908168, 22908615, 22910325, 22917960, 22918510, 22921130, 22921568, 22923054, 22923352, 22924902, 22927726, 22929867, 22934252, 22938617, 23007222, 23007392, 23014314, 23016457, 23017314, 23022695, 23023538, 23026150, 23028047, 23032874, 23036027, 23041060, 23044638, 23044783, 23046001, 23047804, 23052854, 23065483, 23065609, 23070656, 23072396, 23072596, 23073157, 23074259, 23076137, 23076347, 23077395, 23079284, 23080306, 23082619, 23086074, 23086763, 23092404, 23094828, 23098184, 23100414, 23100954, 23100980, 23101046, 23101424, 23102281, 23102542, 23102940, 23105260, 23106761, 23106916, 23108754, 23112987, 23114169, 23118563, 23120215, 23122214, 23122959, 23123632, 23123669, 23124115, 23125273, 23125504, 23126283, 23127404, 23127692, 23127980, 23127980, 23128049, 23128776, 23128883, 23129652, 23130114, 23132066, 23132066, 23133000, 23134944, 23139211, 23139220, 23140177, 23147327, 23150794, 23151567, 23152336, 23155371, 23159762, 23160532, 23162763, 23168056, 23176484, 23179943, 23184924, 23188776, 23192532, 23197396, 23198223, 23198757, 23202924, 23234803, 23278975, 23279396, 23283610, 23283906, 23288665, 23290206, 23297195, 23300447, 23300521, 23301671, 23304700, 23305574, 23306597, 23307774, 23309496, 23309546, 23320928, 23323428, 23330618, 40001257, 40005002, 40005810, 40007407, 40007407, 40009115, 40010714, 40020024, 40026260, 40029145, 40032295, 40032589, 40034358, 40037314, 40039485, 40040405, 40044770, 40056188, 40059065, 40061863, 40062829, 40063127, 40064981, 40065599, 40066065, 40066242, 40066625, 40067461, 40067461, 40069457, 40070692, 40072908, 40072930, 40073742, 40075054, 40075561, 40075671, 40080692, 40081537, 40081669, 40082394, 40084125, 40085239, 40086566, 40088180, 40088364, 40088512, 40088701, 40090611, 40091871, 40093687, 40096911, 40100111, 40102877, 40103984, 40107604, 40113361, 40124023, 40140100, 40141423, 40144256, 40144969, 40147646, 40149844, 40153583, 40167235, 40167842, 40183109, 40183109, 40186683, 40191031, 40191492, 40191778, 40191782, 40192860, 40193540, 40194435, 40194933, 40195993, 40196390, 40200221, 40202018, 40204737, 40207513, 40207670, 40212329, 40213206, 40214489, 40214903, 40218877, 40219415, 40220361, 40221271, 40222205, 40224106, 40224472, 40229150, 40231315, 40233706, 40234126, 40234399, 40234861, 40235957, 40237646, 40241602, 40244221, 40245250, 40246611, 40246639, 40247073, 40251078, 40254405, 40257255, 40258456, 40258608, 40259383, 40259530, 40259691, 40261342, 40262800, 40262973, 40263629, 40265406, 40265492, 40265905, 40267134, 40269829, 40274368, 40280039, 40282512, 40283567, 40285217, 40288654, 40292200, 40292943, 40293431, 40293928, 40296279, 40303778, 40303991, 40304139, 40304510, 40305468, 40306100, 40310003, 40313244, 40313677, 40314769, 40316574, 40316924, 40318475, 40320986, 40324321, 40324495, 40324629, 40325667, 40326039, 40326874, 40329558, 40329971, 40330223, 40331322, 40332666, 40334304, 40334968, 40338325, 40339970, 40340301, 40340435, 40340469, 40342754, 40347683, 40347857, 40352345, 40353605, 40355723, 40355761, 40356777, 40357095, 40357972, 40358124, 40359327, 40361361, 40361537, 40362767, 40363459, 40364310, 40364585, 40366499, 40367795, 40369248, 40369400, 40370272, 40372057, 40372223, 40372380, 40373244, 40373700, 40375460, 40378989, 40380802, 40380879, 40381462, 40382590, 40384005, 40384505, 40384803, 40385125, 40385394, 40385403, 40386451, 40387078, 40387351, 40388271, 40388603, 40390870, 40391430, 40391939, 40394555, 40396739, 40397420, 40397575, 40397639, 40397997, 40403127, 40414455, 40423451, 40426689, 40427723, 40431286, 40433248, 40436953, 40438898, 40441921, 40444049, 40444320, 40450235, 40450314, 40450918, 40452934, 40455903, 40457312, 40457633, 40460918, 40464919, 40469765, 40470531, 40473175, 40474803, 40476142, 40476158, 40476834, 40477287, 40477855, 40478009, 40478522, 40478650, 40478901, 40478913, 40479144, 40479330, 40479909, 40480417, 40480837, 40480933, 40481451, 40481769, 40482187, 40482585, 40482994, 40483072, 40483713, 40483756, 40483895, 40483949, 40484117, 40493705, 40504027, 40508627, 40513900, 40546706, 40572860, 40578481, 40582837, 40598280, 40599650, 40602371, 40606816, 40608419, 40618557, 40620604, 40623546, 40623721, 40623736, 40623755, 40623780, 40623843, 40623863, 40623880, 40624049, 40624183, 40624262, 40624322, 40624431, 40624470, 40625076, 40625201, 40625266, 40625395, 40625427, 40625451, 40625622, 40625810, 40626032, 40626643, 40627777, 40628756, 40630725], "handles": null, diff --git a/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap b/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap index 801651ee39..26ba777088 100644 --- a/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap @@ -12,7 +12,7 @@ exports[`renders design 1`] = ` } >
- {underscoreReplace(challenge.subTrack)} + {underscoreReplace(type)}
{formatDate(challenge.submissionEndDate)} @@ -124,8 +129,8 @@ class ChallengeTile extends React.Component { }
@@ -136,7 +141,7 @@ class ChallengeTile extends React.Component {
- { track !== 'DATA_SCIENCE'
+ { track !== COMPETITION_TRACKS.DATA_SCIENCE
&& (
diff --git a/src/shared/components/ChallengeTile/style.scss b/src/shared/components/ChallengeTile/style.scss
index 3af069c42c..db72e7a56e 100644
--- a/src/shared/components/ChallengeTile/style.scss
+++ b/src/shared/components/ChallengeTile/style.scss
@@ -77,7 +77,7 @@
}
// Dynamic colors based on track
-.DESIGN {
+.design {
&.tile-view {
header {
border-left: 3px solid #21b2f1;
@@ -94,7 +94,7 @@
}
}
-.DEVELOP {
+.development {
&.tile-view {
header {
border-left: 3px solid #05c14f;
@@ -111,7 +111,7 @@
}
}
-.DATA_SCIENCE {
+.data-science {
&.tile-view {
header {
border-left: 3px solid #fc9a00;
diff --git a/src/shared/components/Contentful/Article/Article.jsx b/src/shared/components/Contentful/Article/Article.jsx
index 809f7c909c..150d213290 100644
--- a/src/shared/components/Contentful/Article/Article.jsx
+++ b/src/shared/components/Contentful/Article/Article.jsx
@@ -15,13 +15,14 @@ import LoadingIndicator from 'components/LoadingIndicator';
import YouTubeVideo from 'components/YouTubeVideo';
import moment from 'moment';
import localStorage from 'localStorage';
-import { config } from 'topcoder-react-utils';
-import ShareSocial from 'components/challenge-detail/Specification/SideBar/ShareSocial';
+import { config, Link, isomorphy } from 'topcoder-react-utils';
+import qs from 'qs';
// SVGs and assets
import GestureIcon from 'assets/images/icon-gesture.svg';
-import UserDefault from 'assets/images/ico-user-default.svg';
import ReadMoreArrow from 'assets/images/read-more-arrow.svg';
-import qs from 'qs';
+import IconFacebook from 'assets/images/icon-facebook.svg';
+import IconTwitter from 'assets/images/icon-twitter.svg';
+import IconLinkedIn from 'assets/images/icon-linkedIn.svg';
const htmlToText = require('html-to-text');
@@ -105,20 +106,31 @@ export default class Article extends React.Component {
spaceName, environment, preview,
};
const { upvotes, downvotes } = this.state || {};
+ let shareUrl;
+ if (isomorphy.isClientSide()) {
+ shareUrl = encodeURIComponent(window.location.href);
+ }
return (
{article.readTime}share
-
{content}
@@ -226,14 +226,14 @@ class ArticleCard extends React.Component {