Skip to content

Commit ba8110c

Browse files
committed
fix pilltags, apis, and select
1 parent 00c94ae commit ba8110c

File tree

3 files changed

+57
-46
lines changed

3 files changed

+57
-46
lines changed

packages/cbioportal-ts-api-client/src/generated/CBioPortalAPIInternal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4559,7 +4559,7 @@ export default class CBioPortalAPIInternal {
45594559
$queryParameters ? : any
45604560
}): string {
45614561
let queryParameters: any = {};
4562-
let path = '/mutation-data-counts/fetch';
4562+
let path = '/api/mutation-data-counts/fetch';
45634563

45644564
if (parameters.$queryParameters) {
45654565
Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
@@ -4585,7 +4585,7 @@ export default class CBioPortalAPIInternal {
45854585
const domain = parameters.$domain ? parameters.$domain : this.domain;
45864586
const errorHandlers = this.errorHandlers;
45874587
const request = this.request;
4588-
let path = '/mutation-data-counts/fetch';
4588+
let path = '/api/mutation-data-counts/fetch';
45894589
let body: any;
45904590
let queryParameters: any = {};
45914591
let headers: any = {};

src/pages/studyView/UserSelections.tsx

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import _ from 'lodash';
2+
import _, { filter } from 'lodash';
33
import { observer } from 'mobx-react';
44
import { computed, makeObservable, runInAction } from 'mobx';
55
import styles from './styles.module.scss';
@@ -302,37 +302,42 @@ export default class UserSelections extends React.Component<
302302
);
303303
const chartMeta = this.props.attributesMetaSet[uniqueKey];
304304
if (chartMeta) {
305+
const filters = mutationDataFilter.values.map(
306+
dataFilterValues => {
307+
return (
308+
<GroupLogic
309+
components={[
310+
this.groupedMutationDataFilters(
311+
dataFilterValues,
312+
this.props.updateMutationDataFilter,
313+
chartMeta
314+
),
315+
]}
316+
operation=":"
317+
group={dataFilterValues.length > 1}
318+
/>
319+
);
320+
}
321+
);
322+
305323
acc.push(
306324
<div className={styles.parentGroupLogic}>
307325
<GroupLogic
308-
components={mutationDataFilter.values.map(
309-
dataFilterValues => {
310-
return (
311-
<GroupLogic
312-
components={[
313-
<span
314-
className={
315-
styles.filterClinicalAttrName
316-
}
317-
>
318-
{chartMeta.displayName}
319-
</span>,
320-
this.groupedMutationDataFilters(
321-
dataFilterValues,
322-
this.props
323-
.updateMutationDataFilter,
324-
chartMeta
325-
),
326-
]}
327-
operation=":"
328-
group={
329-
dataFilterValues.length > 1
330-
}
331-
/>
332-
);
333-
}
334-
)}
335-
operation={'and'}
326+
components={[
327+
<span
328+
className={
329+
styles.filterClinicalAttrName
330+
}
331+
>
332+
{chartMeta.displayName}
333+
</span>,
334+
<GroupLogic
335+
components={filters}
336+
operation={'and'}
337+
group={filters.length > 1}
338+
/>,
339+
]}
340+
operation={':'}
336341
group={false}
337342
/>
338343
</div>

src/pages/studyView/addChartButton/geneLevelSelection/GeneLevelSelection.tsx

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ export default class GeneLevelSelection extends React.Component<
265265
<div
266266
style={{
267267
flex: 1,
268-
marginRight: 15,
268+
width: '50%',
269+
marginRight: '5%',
269270
}}
270271
>
271272
<ReactSelect
@@ -274,31 +275,36 @@ export default class GeneLevelSelection extends React.Component<
274275
options={this.molecularProfileOptions}
275276
isClearable={false}
276277
isSearchable={false}
278+
style={{ width: '100%' }}
277279
/>
278-
{this.selectedOption &&
279-
this.subOptions
280-
.map(option => option.profileType)
281-
.includes(
282-
this.selectedOption.alterationType
283-
) && (
284-
<ReactSelect
285-
value={this.selectedSubOption}
286-
onChange={this.handleSubSelect}
287-
options={this.subOptions}
288-
isClearable={false}
289-
isSearchable={false}
290-
/>
291-
)}
292280
</div>
293281
<button
294282
disabled={this.isQueryInvalid || this.hasOQL}
295283
className="btn btn-primary btn-sm"
296284
data-test="GeneLevelSelectionSubmitButton"
297285
onClick={this.onAddChart}
286+
style={{ width: '25%' }}
298287
>
299288
{this.props.submitButtonText}
300289
</button>
301290
</div>
291+
<div style={{ width: '70%', marginTop: '5px' }}>
292+
{this.selectedOption &&
293+
this.subOptions
294+
.map(option => option.profileType)
295+
.includes(
296+
this.selectedOption.alterationType
297+
) && (
298+
<ReactSelect
299+
value={this.selectedSubOption}
300+
onChange={this.handleSubSelect}
301+
options={this.subOptions}
302+
isClearable={false}
303+
isSearchable={false}
304+
/>
305+
)}
306+
</div>
307+
302308
{/* <div className={styles.operations}>
303309
304310
</div> */}

0 commit comments

Comments
 (0)