Skip to content

Gui kit components #4925

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 45 commits into from
Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
774f8c7
Update FilterPanel.jsx
rashmi73 Sep 9, 2020
8227ebd
Update ChallengeFilters.jsx
rashmi73 Sep 10, 2020
fe9e708
Update index.jsx
rashmi73 Sep 10, 2020
01405d9
Update FilterPanel.jsx
rashmi73 Sep 10, 2020
1310b69
Update ChallengeFilters.jsx
rashmi73 Sep 10, 2020
ed9025e
Update ChallengeFilters.jsx
rashmi73 Sep 10, 2020
f22bd8b
fix: for issue #2069
narekcat Sep 10, 2020
b46b000
Fix for #4347 - Open blog page in new, separate tab
gets0ul Sep 11, 2020
4be833a
Update index.jsx
rashmi73 Sep 11, 2020
a6a68d6
Update index.jsx
rashmi73 Sep 11, 2020
ea282e2
Update index.jsx.snap
rashmi73 Sep 11, 2020
7b542d6
Update index.jsx
Gauravseta Sep 12, 2020
1c91948
fix: for issue #2069
luizrrodrigues Sep 13, 2020
f0af65d
Merge pull request #4893 from narekcat/issue-2069
luizrrodrigues Sep 13, 2020
09f4c8b
Hide RSS feature from front-end
luizrrodrigues Sep 13, 2020
e1822d4
Merge pull request #4904 from topcoder-platform/issue-4898
luizrrodrigues Sep 13, 2020
1371d6d
Merge branch 'milestone-20200917' into milestone-20200910
luizrrodrigues Sep 13, 2020
55f67d1
Merge pull request #4905 from topcoder-platform/milestone-20200910
luizrrodrigues Sep 13, 2020
5b5bb81
Deploy milestone-20200917 to Dev and Stag
luizrrodrigues Sep 13, 2020
2d6649a
Merge pull request #4882 from rashmi73/issue_4874
luizrrodrigues Sep 13, 2020
48d1bf5
Merge pull request #4900 from gets0ul/issue-4347
luizrrodrigues Sep 13, 2020
77ea494
fix: for issue #2069
luizrrodrigues Sep 14, 2020
ff38813
fix: for #4745
luizrrodrigues Sep 14, 2020
1f09579
Merge pull request #4901 from Gauravseta/issue_4895
luizrrodrigues Sep 14, 2020
bdf5163
Merge pull request #4899 from rashmi73/issue_4687
luizrrodrigues Sep 14, 2020
3fba920
ChallengeTile: Fix MM link to Challenge details page
luizrrodrigues Sep 14, 2020
8ac5916
Merge pull request #4907 from topcoder-platform/issue-2069
luizrrodrigues Sep 14, 2020
8a80704
Profile Stats Challenges : Fix loading icon
luizrrodrigues Sep 14, 2020
beaf57a
Merge pull request #4908 from topcoder-platform/issue-2069
luizrrodrigues Sep 14, 2020
22a2677
Deploy milestone-20200924 to Dev and Stag
luizrrodrigues Sep 14, 2020
08fb3c3
Added validation before call phaseEndDate and phaseStartDate
luizrrodrigues Sep 14, 2020
ed0044a
Implements #4912
kkartunov Sep 14, 2020
8e8d071
Added !isEmpty check before call phaseStartDate and phaseEndDate
luizrrodrigues Sep 14, 2020
418fa85
Merge pull request #4915 from topcoder-platform/issue-4910
luizrrodrigues Sep 14, 2020
43786c4
ci: Deploy hot-fix-ad-code to Test env
luizrrodrigues Sep 15, 2020
52dd617
Merge pull request #4886 from topcoder-platform/feature-contentful
luizrrodrigues Sep 15, 2020
0f91bf0
Merge branch 'develop' into milestone-20200917
luizrrodrigues Sep 15, 2020
4d453d8
Merge pull request #4918 from topcoder-platform/milestone-20200917
luizrrodrigues Sep 15, 2020
f3e8601
fix: smoke release
luizrrodrigues Sep 15, 2020
c7e17cf
Merge branch 'develop' into milestone-20200924
luizrrodrigues Sep 15, 2020
fc42d37
Merge pull request #4919 from topcoder-platform/milestone-20200924
luizrrodrigues Sep 15, 2020
c6fed95
fix: smoke release
luizrrodrigues Sep 15, 2020
20c22d4
Merge pull request #4914 from topcoder-platform/hot-fix-ad-code
luizrrodrigues Sep 15, 2020
27118ee
release: v1.2.1
sushilshinde Sep 15, 2020
a7a0567
Merge branch 'develop' into gui-kit-components
kkartunov Sep 15, 2020
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
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,15 @@ workflows:
filters:
branches:
only:
- milestone-20200917
- milestone-20200924
- develop
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
filters:
branches:
only:
- hot-fix-ad-code
- feature-contentful
# This is alternate dev env for parallel testing
- "build-qa":
Expand All @@ -260,7 +261,7 @@ workflows:
filters:
branches:
only:
- feature-contentful
- develop
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
8 changes: 8 additions & 0 deletions __tests__/shared/__snapshots__/index.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ exports[`Snapshot match 1`] = `
href="/challenges/manifest.json"
rel="manifest"
/>
<script
async={true}
src="https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com"
/>
</HelmetWrapper>
<withRouter(Connect(Routes)) />
<Connect(ErrorMessageContainer) />
Expand Down Expand Up @@ -53,6 +57,10 @@ exports[`Snapshot match 2`] = `
href="/challenges/manifest.json"
rel="manifest"
/>
<script
async={true}
src="https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com"
/>
</HelmetWrapper>
<withRouter(Connect(Routes)) />
<Connect(ErrorMessageContainer) />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,15 @@ exports[`renders marathon 1`] = `
className="src-shared-components-ChallengeTile-___style__completed-challenge___3w5tT"
>
<header>
<a
<Link
className="src-shared-components-ChallengeTile-___style__name___1jF7j"
href="https://community.topcoder.com/longcontest/stats/?module=ViewOverview&rd=17153"
replace={false}
to="/challenges/15404"
>
2018 TCO Marathon
</a>
<span>
2018 TCO Marathon
</span>
</Link>
<p
className="src-shared-components-ChallengeTile-___style__subtrack-color___2AJaw"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Default render 1`] = `
<label
className="src-shared-components-GUIKit-Checkbox-___style__container___2a1GZ src-shared-components-GUIKit-Checkbox-___style__smSize___3aux-"
>
<input
checked={false}
onChange={[Function]}
type="checkbox"
/>
<div
className="src-shared-components-GUIKit-Checkbox-___style__checkmark___1xdsj"
>
<IconCheckSolid
className="src-shared-components-GUIKit-Checkbox-___style__after___2rEBg"
height={13}
viewBox="0 0 15 13"
width={13}
xmlns="http://www.w3.org/2000/svg"
/>
</div>
</label>
`;
12 changes: 12 additions & 0 deletions __tests__/shared/components/GUIKit/Checkbox/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import Renderer from 'react-test-renderer/shallow';

import Checkbox from 'components/GUIKit/Checkbox';


const rnd = new Renderer();

it('Default render', () => {
rnd.render((<Checkbox />));
expect(rnd.getRenderOutput()).toMatchSnapshot();
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Default render 1`] = `
<div
className="datepickerContainer src-shared-components-GUIKit-Datepicker-___style__container___Sl58X"
>
<withStyles(SingleDatePicker)
anchorDirection="left"
appendToBody={false}
block={false}
calendarInfoPosition="bottom"
customCloseIcon={null}
customInputIcon={
<IconCalendar
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
}
date={null}
daySize={53}
disableScroll={false}
disabled={false}
displayFormat="MMM DD, YYYY"
enableOutsideDays={true}
firstDayOfWeek={1}
focused={false}
hideKeyboardShortcutsPanel={true}
horizontalMargin={0}
horizontalMonthPadding={13}
id="null----false"
initialVisibleMonth={null}
inputIconPosition="after"
isDayBlocked={[Function]}
isDayHighlighted={[Function]}
isOutsideRange={[Function]}
isRTL={false}
keepFocusOnInput={false}
keepOpenOnDateSelect={false}
monthFormat="MMMM YYYY"
navNext={
<IconNext
height="16"
viewBox="0 0 10 16"
width="10"
xmlns="http://www.w3.org/2000/svg"
/>
}
navPrev={
<IconPrev
height="16"
viewBox="0 0 10 16"
width="10"
xmlns="http://www.w3.org/2000/svg"
/>
}
noBorder={false}
numberOfMonths={1}
onClose={[Function]}
onDateChange={[Function]}
onFocusChange={[Function]}
onNextMonthClick={[Function]}
onPrevMonthClick={[Function]}
openDirection="down"
orientation="horizontal"
phrases={
Object {
"calendarLabel": "Calendar",
"chooseAvailableDate": [Function],
"clearDate": "Clear Date",
"closeDatePicker": "Close",
"dateIsSelected": [Function],
"dateIsUnavailable": [Function],
"enterKey": "Enter key",
"escape": "Escape key",
"hideKeyboardShortcutsPanel": "Close the shortcuts panel.",
"homeEnd": "Home and end keys",
"jumpToNextMonth": "Move forward to switch to the next month.",
"jumpToPrevMonth": "Move backward to switch to the previous month.",
"keyboardNavigationInstructions": "Press the down arrow key to interact with the calendar and
select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",
"keyboardShortcuts": "Keyboard Shortcuts",
"leftArrowRightArrow": "Right and left arrow keys",
"moveFocusByOneDay": "Move backward (left) and forward (right) by one day.",
"moveFocusByOneMonth": "Switch months.",
"moveFocusByOneWeek": "Move backward (up) and forward (down) by one week.",
"moveFocustoStartAndEndOfWeek": "Go to the first or last day of a week.",
"openThisPanel": "Open this panel.",
"pageUpPageDown": "page up and page down keys",
"questionMark": "Question mark",
"returnFocusToInput": "Return to the date input field.",
"selectFocusedDate": "Select the date in focus.",
"showKeyboardShortcutsPanel": "Open the keyboard shortcuts panel.",
"upArrowDownArrow": "up and down arrow keys",
}
}
placeholder=""
readOnly={false}
regular={false}
renderCalendarInfo={null}
renderDayContents={[Function]}
renderMonthElement={null}
renderMonthText={null}
reopenPickerOnClearDate={false}
required={false}
screenReaderInputMessage=""
showClearDate={false}
showDefaultInputIcon={false}
small={false}
verticalHeight={null}
verticalSpacing={22}
weekDayFormat="ddd"
withFullScreenPortal={false}
withPortal={false}
/>
</div>
`;
12 changes: 12 additions & 0 deletions __tests__/shared/components/GUIKit/Datepicker/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import Renderer from 'react-test-renderer/shallow';

import Datepicker from 'components/GUIKit/Datepicker';


const rnd = new Renderer();

it('Default render', () => {
rnd.render((<Datepicker />));
expect(rnd.getRenderOutput()).toMatchSnapshot();
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Default render 1`] = `
<div
className="dropdownContainer src-shared-components-GUIKit-Dropdown-___style__container___1qhm8 src-shared-components-GUIKit-Dropdown-___style__lgSize___1fYu0 src-shared-components-GUIKit-Dropdown-___style__haveValue___1b1qb"
onBlurCapture={[Function]}
onFocusCapture={[Function]}
>
<div
className="src-shared-components-GUIKit-Dropdown-___style__relative___1Yq0F"
>
<Select
arrowRenderer={[Function]}
autoBlur={true}
autosize={false}
backspaceRemoves={true}
backspaceToRemoveMessage="Press backspace to remove {label}"
clearAllText="Clear all"
clearRenderer={[Function]}
clearValueText="Clear value"
clearable={false}
closeOnSelect={true}
deleteRemoves={true}
delimiter=","
disabled={false}
escapeClearsValue={true}
filterOptions={[Function]}
ignoreAccents={true}
ignoreCase={true}
inputProps={Object {}}
isLoading={false}
joinValues={false}
labelKey="label"
matchPos="any"
matchProp="any"
menuBuffer={0}
menuRenderer={[Function]}
multi={false}
noResultsText="No results found"
onBlurResetsInput={true}
onChange={[Function]}
onCloseResetsInput={true}
onSelectResetsInput={true}
openOnClick={true}
optionComponent={[Function]}
options={
Array [
Object {
"label": "dropdownLable",
"value": "dropdownLable",
},
]
}
pageSize={5}
placeholder=""
removeSelected={true}
required={false}
rtl={false}
scrollMenuIntoView={true}
searchable={true}
simpleValue={false}
tabSelectsValue={true}
trimFilter={true}
value="dropdownLable"
valueComponent={[Function]}
valueKey="value"
/>
<img
alt="dropdown-arraow-icon"
className="src-shared-components-GUIKit-Dropdown-___style__iconDropdown___2bPox"
height="9"
src="/community-app-assets/images/e740c51bb099110dff2900fa4fc94d72.png"
width="15"
/>
</div>
</div>
`;
12 changes: 12 additions & 0 deletions __tests__/shared/components/GUIKit/Dropdown/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import Renderer from 'react-test-renderer/shallow';

import Dropdown from 'components/GUIKit/Dropdown';


const rnd = new Renderer();

it('Default render', () => {
rnd.render((<Dropdown options={[{ label: 'dropdownLable', selected: true }]} />));
expect(rnd.getRenderOutput()).toMatchSnapshot();
});
Loading