Skip to content

Commit

Permalink
Fix formatting, check in new logo
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Mar 22, 2024
1 parent 78eae51 commit 8261754
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion ui/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ function App() {
useEffect(() => {
let timeoutId = null;
const refreshData = async () => {
const newSystemState = await fetchSystemState(/*filterTablesForDemo=*/true);
const newSystemState = await fetchSystemState(
/*filterTablesForDemo=*/ true,
);
// TODO: Not the best way to check for equality.
if (JSON.stringify(systemState) !== JSON.stringify(newSystemState)) {
setSystemState(newSystemState);
Expand Down
Binary file added ui/src/assets/brad_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions ui/src/components/BlueprintView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ function BlueprintView({
onTableHoverExit,
}) {
return (
<Panel
heading="Physical Infrastructure"
className="infra-column-panel"
>
<Panel heading="Physical Infrastructure" className="infra-column-panel">
<div class="bp-view-wrap">
{blueprint &&
blueprint.engines &&
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/PerfView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function PerfView({ virtualInfra }) {
useEffect(() => {
let timeoutId = null;
const refreshData = async () => {
const rawMetrics = await fetchMetrics(60, /*useGenerated=*/true);
const rawMetrics = await fetchMetrics(60, /*useGenerated=*/ true);
const fetchedMetrics = parseMetrics(rawMetrics);
const metricsManager = getMetricsManager();
const addedNewMetrics = metricsManager.mergeInMetrics(fetchedMetrics);
Expand Down
8 changes: 5 additions & 3 deletions ui/src/components/VdbeView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function formatLatencySeconds(latencySeconds) {
if (latencySeconds < 1.0) {
// Use milliseconds.
const latencyMs = latencySeconds * 1000;
return `${latencyMs.toFixed(precision)} ms`
return `${latencyMs.toFixed(precision)} ms`;
}
return `${latencySeconds.toFixed(precision)} s`
return `${latencySeconds.toFixed(precision)} s`;
}

function VdbeView({
Expand All @@ -38,7 +38,9 @@ function VdbeView({
<div class="vdbe-view-props">
<ul>
<li>🌿: {freshness}</li>
{peak_latency_s && <li>⏱️: Query Latency ≤ {formatLatencySeconds(peak_latency_s)}</li>}
{peak_latency_s && (
<li>⏱️: Query Latency ≤ {formatLatencySeconds(peak_latency_s)}</li>
)}
<li>🗣: {dialect}</li>
</ul>
</div>
Expand Down

0 comments on commit 8261754

Please sign in to comment.