Skip to content

Commit f5482cf

Browse files
committed
refactor: update tools and module order
1 parent 7bba5bd commit f5482cf

File tree

5 files changed

+131
-123
lines changed

5 files changed

+131
-123
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>DevBox</title>
6+
<title>Devbox</title>
77

88
<!-- Geist Font -->
99
<link rel="preconnect" href="https://fonts.googleapis.com">

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function App() {
145145
}, [location, setRouteAnimation]);
146146

147147
return (
148-
<Box className={classes.appWrapper} role="application" aria-label="DevBox Developer Tools">
148+
<Box className={classes.appWrapper} role="application" aria-label="Devbox Developer Tools">
149149
<PanelGroup direction="horizontal" autoSaveId="devbox-sidebar">
150150
<Panel
151151
id="sidebar"

src/components/Settings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function Settings() {
9898
const proceed = await confirmDialog(
9999
"This will reset any stored data and app settings. Continue?",
100100
{
101-
title: "Reset DevBox",
101+
title: "Reset Devbox",
102102
kind: "warning",
103103
okLabel: "Reset",
104104
cancelLabel: "Cancel",
@@ -132,7 +132,7 @@ export default function Settings() {
132132
}
133133
}}
134134
>
135-
Reset DevBox
135+
Reset Devbox
136136
</Button>
137137
</Group>
138138
</Stack>
@@ -195,7 +195,7 @@ export default function Settings() {
195195
<Text size="sm" c="dimmed">
196196
Made with ❤️ by{" "}
197197
<a href="https://github.com/smithg09/devbox" target="_blank" rel="noopener noreferrer">
198-
DevBox
198+
Devbox
199199
</a>
200200
</Text>
201201
<Text size="sm" c="dimmed">

src/components/Sidebar/index.tsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import cx from "clsx";
1515
import { useLocation, useNavigate } from "react-router-dom";
1616
import classes from "./styles.module.css";
1717

18-
import { moduleRegistry, ToolModule } from "@/constants/tools";
18+
import { moduleRegistry } from "@/constants/tools";
1919
import { useSidebarShortcuts } from "@/hooks/useSidebarShortcuts";
2020
import { useSidebarState } from "@/hooks/useSidebarState";
2121
import { isTauri } from "@/utils/isTauri";
@@ -116,9 +116,9 @@ export const Sidebar = ({ collapsed, setCollapsed }: Props) => {
116116
<Group wrap="nowrap" align="center" gap={2} ml={-4}>
117117
<Box style={{ color: "#324298" }} p={8} pb={4} size={32}>
118118
{isTauri() ? (
119-
<img src="/logo.png" alt="DevBox" width={32} height={32} />
119+
<img src="/logo.png" alt="Devbox" width={32} height={32} />
120120
) : (
121-
<img src="/logo.png" alt="DevBox" width={38} height={38} />
121+
<img src="/logo.png" alt="Devbox" width={38} height={38} />
122122
)}
123123
</Box>
124124
<Text size={theme?.fontSizes?.xl} fw={700} display={collapsed ? "none" : "block"}>
@@ -211,7 +211,6 @@ export const Sidebar = ({ collapsed, setCollapsed }: Props) => {
211211
onChange={setOpenedModule}
212212
>
213213
{Object.values(moduleRegistry)
214-
.sort((a: ToolModule, b: ToolModule) => a.order - b.order)
215214
.filter(module => sidebarTools.find(tool => tool.module === module.id))
216215
.map(module => (
217216
<Accordion.Item key={module.id} value={module.id}>
@@ -350,6 +349,23 @@ export const Sidebar = ({ collapsed, setCollapsed }: Props) => {
350349
<Box w="80%">
351350
<Text size="xs" fw={location.pathname === "/settings" ? "600" : "450"}>
352351
Settings
352+
{showDescription && (
353+
<Text
354+
size="11px"
355+
c="dimmed"
356+
mt={2}
357+
w="100%"
358+
styles={{
359+
root: {
360+
whiteSpace: "nowrap",
361+
overflow: "hidden",
362+
textOverflow: "ellipsis",
363+
},
364+
}}
365+
>
366+
Customize your experience
367+
</Text>
368+
)}
353369
</Text>
354370
</Box>
355371
</>

0 commit comments

Comments
 (0)