Skip to content

Commit cddee71

Browse files
Merge pull request #5532 from topcoder-platform/thrive-authors-update
Thrive authors update
2 parents fa8c07b + 6141b3d commit cddee71

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ workflows:
296296
filters:
297297
branches:
298298
only:
299-
- free
299+
- thrive-authors-update
300300
# This is stage env for production QA releases
301301
- "build-prod-staging":
302302
context : org-global

src/shared/components/Contentful/TracksFilter/TracksFilter.jsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,16 @@ export class TracksFilterInner extends Component {
5050
const { authorList } = this.state;
5151
this.setState({
5252
authorList: _.concat(authorList, _.map(
53-
_.sortBy(results.items, i => i.fields.name.toLowerCase()),
54-
item => ({ label: item.fields.name, selected: false }),
53+
_.sortBy(
54+
results.items,
55+
i => (i.fields.tcHandle
56+
? i.fields.tcHandle.toLowerCase() : i.fields.name.toLowerCase()),
57+
),
58+
item => ({
59+
label: item.fields.tcHandle
60+
? item.fields.tcHandle : item.fields.name,
61+
selected: false,
62+
}),
5563
)),
5664
});
5765
}
@@ -149,6 +157,7 @@ export class TracksFilterInner extends Component {
149157
{mediaMatches => (
150158
<Dropdown
151159
label="Authors"
160+
placeholder="Type author name or handle"
152161
options={updatedAuthorList}
153162
size="xs"
154163
onChange={(authors) => {
@@ -231,8 +240,8 @@ export class TracksFilterInner extends Component {
231240
TracksFilterInner.defaultProps = {
232241
onClose: () => {},
233242
onApply: () => {},
234-
selectedAuthor: DEF_SELECTED_AUTHOR,
235-
authorList: [{ label: DEF_SELECTED_AUTHOR, selected: true }],
243+
selectedAuthor: '',
244+
authorList: [{ label: DEF_SELECTED_AUTHOR, selected: false }],
236245
startDate: moment('2001-01-02'),
237246
endDate: moment(),
238247
tags: [],

0 commit comments

Comments
 (0)