Skip to content

Commit

Permalink
Merge pull request #42 from poloclub/UI-update
Browse files Browse the repository at this point in the history
Final UI Update Before Spring Semester (11/19/2020)
  • Loading branch information
AlexanderHYang authored Nov 28, 2020
2 parents 677790b + c359b75 commit 347220b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
10 changes: 5 additions & 5 deletions argo-lite/src/components/panels/GlobalPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class GlobalPanel extends React.Component {
</p>
</section>
<section style={{marginTop:"-1em"}}>
<svg width="220" height="10" className="gradient-preview">
<svg width="100%" height="10" className="gradient-preview">
<defs>
<linearGradient
x1="0%"
Expand All @@ -120,7 +120,7 @@ class GlobalPanel extends React.Component {
<rect
x="0"
y="0"
width="220"
width="100%"
height="50"
fill="url(#theGradient)"
/>
Expand Down Expand Up @@ -150,7 +150,7 @@ class GlobalPanel extends React.Component {
filterable={false}
onItemSelect={it => (appState.graph.nodes.sizeBy = it)}
>
<Button iconName="filter-list" text={appState.graph.nodes.sizeBy} />
<Button text={appState.graph.nodes.sizeBy} />
</Select>
</span>
</p>
Expand All @@ -164,7 +164,7 @@ class GlobalPanel extends React.Component {
filterable={false}
onItemSelect={it => (appState.graph.nodes.size.scale = it)}
>
<Button iconName="filter-list" text={appState.graph.nodes.size.scale} />
<Button text={appState.graph.nodes.size.scale} />
</Select>
</span>
</p>
Expand Down Expand Up @@ -217,7 +217,7 @@ class GlobalPanel extends React.Component {
filterable={false}
onItemSelect={it => (appState.graph.nodes.shape = it)}
>
<Button iconName="polygon-filter" text={appState.graph.nodes.shape} />
<Button text={appState.graph.nodes.shape} />
</Select>
</span>
</p></section>
Expand Down
4 changes: 2 additions & 2 deletions argo-lite/src/components/panels/LabelsPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ class LabelsPanel extends React.Component {
}}
value={appState.graph.nodes.labelLength}
/>
<br/>
<div style={{height: '30px'}} />
<h6>Label By</h6>
<Select
items={appState.graph.allPropertiesKeyList}
itemRenderer={CommonItemRenderer}
filterable={false}
onItemSelect={it => (appState.graph.nodes.labelBy = it)}
>
<Button iconName="filter-list" text={appState.graph.nodes.labelBy} />
<Button text={appState.graph.nodes.labelBy} />
</Select>
</div>
);
Expand Down
14 changes: 14 additions & 0 deletions argo-lite/src/components/panels/SelectionPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SelectionPanel extends React.Component {
render() {
return (
<div>
<br/>
<SwitchCollapsable
name="Override Size"
isOpen={this.state.sizeOptionOpen}
Expand Down Expand Up @@ -94,6 +95,7 @@ class SelectionPanel extends React.Component {
/>
</div>
</SwitchCollapsable>
<br/>
<SwitchCollapsable
name="Override Color"
isOpen={this.state.colorOptionOpen}
Expand Down Expand Up @@ -126,7 +128,9 @@ class SelectionPanel extends React.Component {
}}
>
<div className={classnames(Classes.CARD, "sub-option")}>
<section> <p style={{textAlign:"left"}}>
Choose Color:
<span style={{float:"right"}}>
<Popover2>
<Button
text=" "
Expand All @@ -147,8 +151,12 @@ class SelectionPanel extends React.Component {
}}
/>
</Popover2>
</span>
</p>
</section>
</div>
</SwitchCollapsable>
<br/>
<SwitchCollapsable
name="Override Label"
isOpen={this.state.labelOptionOpen}
Expand Down Expand Up @@ -195,6 +203,7 @@ class SelectionPanel extends React.Component {
/>
</div>
</SwitchCollapsable>
<br/>
<SwitchCollapsable
name="Override Shape"
isOpen={this.state.shapeOptionOpen}
Expand Down Expand Up @@ -227,7 +236,9 @@ class SelectionPanel extends React.Component {
}}
>
<div className={classnames(Classes.CARD, "sub-option")}>
<section> <p style={{textAlign:"left"}}>
Node Shape:
<span style={{float:"right"}}>
<Select
items={[
"circle",
Expand All @@ -250,6 +261,9 @@ class SelectionPanel extends React.Component {
>
<Button text={appState.graph.overrideConfig.shape} />
</Select>
</span>
</p>
</section>
</div>
</SwitchCollapsable>
</div>
Expand Down
2 changes: 1 addition & 1 deletion argo-lite/src/components/utils/SimpleSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default ({ items, onSelect, value, fill = false }) => (
filterable={false}
onItemSelect={onSelect}
>
<Button iconName="filter-list" className={fill ? Classes.FILL : null} text={value} />
<Button className={fill ? Classes.FILL : null} text={value} />
</Select>
);

0 comments on commit 347220b

Please sign in to comment.