Skip to content

Commit

Permalink
ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EshaanAgg committed Aug 9, 2024
1 parent 67339c9 commit ae4890d
Show file tree
Hide file tree
Showing 9 changed files with 6,718 additions and 10,582 deletions.
2 changes: 1 addition & 1 deletion benchexec/tablegenerator/react-table/build/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion benchexec/tablegenerator/react-table/build/main.min.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions benchexec/tablegenerator/react-table/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ $border-color: rgb(173, 173, 173);
$hover-color: darken(white, 20%);

//------------------common------------------
.footer {
display: flex;
justify-content: center;
align-items: center;
}

.correct {
color: green;
}
Expand Down Expand Up @@ -449,7 +455,6 @@ $content-height: calc(100vh - 43px); // height of .menu sums up to 43px

#benchmark_setup {
width: 100%;
overflow-x: scroll;

.fixedRowTitle {
text-align: left;
Expand All @@ -460,7 +465,9 @@ $content-height: calc(100vh - 43px); // height of .menu sums up to 43px

.stickCheckbox {
position: sticky;
top: 0;
left: 0;
width: max-content;
}

table {
Expand Down Expand Up @@ -509,7 +516,7 @@ $content-height: calc(100vh - 43px); // height of .menu sums up to 43px
}

tr:hover {
background-color: mix($hover-color, white, 66%);
background-color: mix($hover-color, white, 50%);
}

th {
Expand Down
20 changes: 20 additions & 0 deletions benchexec/tablegenerator/react-table/src/components/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,26 @@ export default class Overview extends React.Component {
)}
</div>
</div>

{/* Footer */}
{
// Do not display the footer on table and info pages
["table", "info"].includes(this.state.active) ? null : (
<div className="footer">
<p className="footer-content">
Generated by{" "}
<a
className="link"
href="https://github.com/sosy-lab/benchexec"
target="_blank"
rel="noopener noreferrer"
>
BenchExec {this.props.data.version}
</a>
</p>
</div>
)
}
</Router>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,11 @@ const StatisticsTable = ({ switchToQuantile, tableData, hiddenCols }) => {
style: {
margin: 0,
padding: 0,
borderLeft: index !== 0 ? "1px solid grey" : "none",
borderLeft: index !== 0 ? "1px solid #CCC" : "none",
borderRight:
index !== headerGroup.headers.length - 1
? "1px solid grey"
? "1px solid #CCC"
: "none",
borderTop: "2px solid grey",
borderBottom: "2px solid grey",
height: "3rem",
},
})}
Expand Down
46 changes: 15 additions & 31 deletions benchexec/tablegenerator/react-table/src/components/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const ToolNameAndVersion = ({ tool, version, project_url, version_url }) => {
const Summary = ({
tools,
tableHeader,
version,
selectColumn,
stats: defaultStats,
onStatsReady,
Expand Down Expand Up @@ -241,22 +240,21 @@ const Summary = ({
return (
<div id="summary">
<div id="benchmark_setup">
<form
id="stickyform"
className={`fixedRowTitle ${isTitleColSticky ? "stickCheckbox" : ""}`}
>
<label title="Fix the first column" htmlFor="fixed-row-title">
Fixed row title:
</label>
<input
id="fixed-row-title"
name="fixed"
type="checkbox"
style={{ width: 20, height: 20 }}
checked={isTitleColSticky}
onChange={({ target }) => setTitleColSticky(target.checked)}
/>
</form>
<div className={`${isTitleColSticky ? "stickCheckbox" : ""}`}>
<form id="stickyform" className="fixedRowTitle">
<label title="Fix the first column" htmlFor="fixed-row-title">
Fixed row title:
</label>
<input
id="fixed-row-title"
name="fixed"
type="checkbox"
style={{ width: 20, height: 20 }}
checked={isTitleColSticky}
onChange={({ target }) => setTitleColSticky(target.checked)}
/>
</form>
</div>

<table
{...getTableProps()}
Expand All @@ -279,8 +277,6 @@ const Summary = ({
...(col.id === "columnselect" && {
height: "3rem",
backgroundColor: "#EEE",
borderTop: "2px solid grey",
borderBottom: "2px solid grey",
}),
...(col.stats && {
height: "2.3rem",
Expand Down Expand Up @@ -352,18 +348,6 @@ const Summary = ({
</tbody>
</table>
</div>

<p>
Generated by{" "}
<a
className="link"
href="https://github.com/sosy-lab/benchexec"
target="_blank"
rel="noopener noreferrer"
>
BenchExec {version}
</a>
</p>
</div>
);
};
Expand Down
Loading

0 comments on commit ae4890d

Please sign in to comment.