Skip to content

Commit

Permalink
Merge branch 'better_settings_layout' into gui_graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-neurosc committed Nov 27, 2024
2 parents 2731d58 + d8581c1 commit 069312f
Show file tree
Hide file tree
Showing 43 changed files with 1,591 additions and 1,010 deletions.
2 changes: 1 addition & 1 deletion gui_dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react-dom": "next",
"react-icons": "^5.3.0",
"react-plotly.js": "^2.6.0",
"react-router-dom": "^6.28.0",
"react-router-dom": "^7.0.1",
"zustand": "latest"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions gui_dev/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ export const App = () => {
const connectSocket = useSocketStore((state) => state.connectSocket);
const disconnectSocket = useSocketStore((state) => state.disconnectSocket);

connectSocket();

useEffect(() => {
console.log("Connecting socket from App component...");
connectSocket();
Expand Down
13 changes: 9 additions & 4 deletions gui_dev/src/components/StatusBar/StatusBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { ResizeHandle } from "./ResizeHandle";
import { SocketStatus } from "./SocketStatus";
import { WebviewStatus } from "./WebviewStatus";

import { useWebviewStore } from "@/stores";

import { useUiStore, useWebviewStore } from "@/stores";
import { Stack } from "@mui/material";

export const StatusBar = () => {
const { isWebView } = useWebviewStore((state) => state.isWebView);
const isWebView = useWebviewStore((state) => state.isWebView);
const createStatusBarContent = useUiStore((state) => state.statusBarContent);

const StatusBarContent = createStatusBarContent();

return (
<Stack
Expand All @@ -17,8 +19,11 @@ export const StatusBar = () => {
bgcolor="background.level1"
borderTop="2px solid"
borderColor="background.level3"
height="2rem"
>
<WebviewStatus />
{StatusBarContent && <StatusBarContent />}

{/* <WebviewStatus /> */}
{/* Current experiment */}
{/* Current stream */}
{/* Current activity */}
Expand Down
8 changes: 4 additions & 4 deletions gui_dev/src/components/TitledBox.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from "@mui/material";
import { Box, Container } from "@mui/material";

/**
* Component that uses the Box component to render an HTML fieldset element
Expand All @@ -13,14 +13,14 @@ export const TitledBox = ({
children,
...props
}) => (
<Container
<Box
component="fieldset"
{...props}
sx={{
borderRadius: 5,
border: "1px solid #555",
backgroundColor: "#424242",
padding: 2,
padding: 1,
width: "100%",
gap: 2,
display: "flex",
Expand All @@ -31,5 +31,5 @@ export const TitledBox = ({
>
<legend>{title}</legend>
{children}
</Container>
</Box>
);
65 changes: 0 additions & 65 deletions gui_dev/src/pages/Settings/DragAndDropList.jsx

This file was deleted.

72 changes: 0 additions & 72 deletions gui_dev/src/pages/Settings/DragAndDropList.module.css

This file was deleted.

66 changes: 0 additions & 66 deletions gui_dev/src/pages/Settings/Dropdown.jsx

This file was deleted.

88 changes: 0 additions & 88 deletions gui_dev/src/pages/Settings/FrequencyRange.jsx

This file was deleted.

Loading

0 comments on commit 069312f

Please sign in to comment.