@@ -40,8 +40,6 @@ import ProfileWatcher from "../tray/watchers/profile/list"
40
40
// import UpdateFunction from "../tray/update"
41
41
import { handleNew } from "../controller/profile/actions"
42
42
43
- import Icon from "@patternfly/react-icons/dist/esm/icons/clipboard-list-icon"
44
-
45
43
import "../../web/scss/components/ProfileExplorer/_index.scss"
46
44
47
45
import LockIcon from "@patternfly/react-icons/dist/esm/icons/lock-icon"
@@ -360,7 +358,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
360
358
group : this . groups . Application ,
361
359
} ,
362
360
"ml/codeflare/training/demos" : {
363
- title : "Demo Code" ,
361
+ title : "Code" ,
364
362
group : this . groups . Application ,
365
363
} ,
366
364
"ml/ray/start/resources" : {
@@ -443,11 +441,6 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
443
441
)
444
442
}
445
443
446
- private readonly leafStyle = { }
447
- private leafFor ( value : string ) {
448
- return < span style = { this . leafStyle } > { value } </ span >
449
- }
450
-
451
444
private descriptionFor ( desc : string ) {
452
445
return < span className = "italic" > { desc } </ span >
453
446
}
@@ -477,7 +470,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
477
470
return {
478
471
id,
479
472
title,
480
- name : this . leafFor ( value ) ,
473
+ name : value ,
481
474
}
482
475
}
483
476
}
@@ -539,9 +532,19 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
539
532
children : [ ] ,
540
533
}
541
534
}
542
- const { children } = groups [ meta . group . title ]
543
535
544
- children . push ( this . editable ( title , this . treeNode ( title , meta , value ) ) )
536
+ const { children } = groups [ meta . group . title ]
537
+ const already = children . find ( ( _ ) => _ . title === meta . title )
538
+
539
+ // meta.group.title: e.g. Application or Compute or Storage
540
+ // meta.title: e.g. Scenario or Cluster/Namespace or Region
541
+ // value: e.g. "Getting Started Demo" or yourNamespace or us-east
542
+ if ( already ) {
543
+ // there is
544
+ already . name = already . name + ", " + value
545
+ } else {
546
+ children . push ( this . editable ( title , this . treeNode ( title , meta , value ) ) )
547
+ }
545
548
}
546
549
}
547
550
@@ -621,12 +624,10 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
621
624
622
625
public render ( ) {
623
626
return (
624
- < Card isLarge isPlain >
627
+ < Card isPlain >
625
628
< CardHeader >
626
629
< CardTitle >
627
- < div className = "flex-layout" >
628
- < Icon className = "larger-text slightly-deemphasize small-right-pad" /> Specification
629
- </ div >
630
+ < div className = "flex-layout" > Profile</ div >
630
631
</ CardTitle >
631
632
< CardActions hasNoOffset > { this . actions ( ) } </ CardActions >
632
633
</ CardHeader >
0 commit comments