Skip to content

Issue#4718 : Open for review bucket : Impact of Track/Subtrack updates #4738

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 6 commits into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ exports[`Matches shallow shapshot 1`] = `
/>
</label>
<Select
disabled={false}
id="type-select"
multi={true}
onChange={[Function]}
Expand Down Expand Up @@ -312,6 +313,7 @@ exports[`Matches shallow shapshot 2`] = `
/>
</label>
<Select
disabled={false}
id="type-select"
multi={true}
onChange={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ export default function FiltersPanel({
options={validTypes.map(mapTypes)}
simpleValue
value={
filterState.types ? filterState.types.join(',') : null
(filterState.types && !isReviewOpportunitiesBucket) ? filterState.types.join(',') : null
}
disabled={isReviewOpportunitiesBucket}
/>
</div>
{/* Only shown when the Review Opportunity bucket is selected */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ $panel-radius-4: $corner-radius * 2;

.filter.review-type {
// margin - (.date.input width + .date.text width) * 2 - filters.label width
@include calc(width, '50% - 30px - (14px + 114px) * 2 - 96px');
@include calc(width, '50% - 45px - (12px + 112px) * 2 - 96px');

order: 3; // Show after Date Picker when in lg screen mode

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ReviewOpportunityBucket({
const cards = filteredOpportunities.map(item => (
<ReviewOpportunityCard
challengesUrl={challengesUrl}
challengeType={_.find(challengeTypes, { name: item.type })}
challengeType={_.find(challengeTypes, { name: item.challenge.type }) || []}
expandedTags={expandedTags}
expandTag={expandTag}
onTechTagClicked={tag => setFilterState({ tags: [tag] })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function ReviewOpportunityCard({
return (
<div styleName="reviewOpportunityCard">
<div styleName="left-panel">
{ /* START - DISABLED UNTIL REVIEW OPPORTUNITY RECEIVE UPDATE TO API V5 */
false
&& (
<div styleName="challenge-track">
<TrackAbbreviationTooltip
track={track}
Expand All @@ -69,6 +72,7 @@ function ReviewOpportunityCard({
</span>
</TrackAbbreviationTooltip>
</div>
) /* END - DISABLED UNTIL REVIEW OPPORTUNITY RECEIVE UPDATE TO API V5 */ }
<div styleName="challenge-details">
<Link
to={`${challengesUrl}/${challenge.id}`}
Expand Down