Skip to content

Commit 1117d4e

Browse files
authored
Merge pull request #1962 from Stijnus/BOLTDIY_DOCS
feat: update readme and documentation
2 parents 91071a1 + 871f176 commit 1117d4e

File tree

6 files changed

+1009
-175
lines changed

6 files changed

+1009
-175
lines changed

README.md

Lines changed: 215 additions & 91 deletions
Large diffs are not rendered by default.

app/components/@settings/core/AvatarDropdown.tsx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import { classNames } from '~/utils/classNames';
55
import { profileStore } from '~/lib/stores/profile';
66
import type { TabType, Profile } from './types';
77

8-
const BetaLabel = () => (
9-
<span className="px-1.5 py-0.5 rounded-full bg-purple-500/10 dark:bg-purple-500/20 text-[10px] font-medium text-purple-600 dark:text-purple-400 ml-2">
10-
BETA
11-
</span>
12-
);
13-
148
interface AvatarDropdownProps {
159
onSelectTab: (tab: TabType) => void;
1610
}
@@ -117,6 +111,7 @@ export const AvatarDropdown = ({ onSelectTab }: AvatarDropdownProps) => {
117111
</DropdownMenu.Item>
118112

119113
<div className="my-1 border-t border-gray-200/50 dark:border-gray-800/50" />
114+
120115
<DropdownMenu.Item
121116
className={classNames(
122117
'flex items-center gap-2 px-4 py-2.5',
@@ -127,11 +122,12 @@ export const AvatarDropdown = ({ onSelectTab }: AvatarDropdownProps) => {
127122
'outline-none',
128123
'group',
129124
)}
130-
onClick={() => onSelectTab('service-status')}
125+
onClick={() =>
126+
window.open('https://github.com/stackblitz-labs/bolt.diy/issues/new?template=bug_report.yml', '_blank')
127+
}
131128
>
132-
<div className="i-ph:heartbeat w-4 h-4 text-gray-400 group-hover:text-purple-500 dark:group-hover:text-purple-400 transition-colors" />
133-
Service Status
134-
<BetaLabel />
129+
<div className="i-ph:bug w-4 h-4 text-gray-400 group-hover:text-purple-500 dark:group-hover:text-purple-400 transition-colors" />
130+
Report Bug
135131
</DropdownMenu.Item>
136132

137133
<DropdownMenu.Item
@@ -144,12 +140,10 @@ export const AvatarDropdown = ({ onSelectTab }: AvatarDropdownProps) => {
144140
'outline-none',
145141
'group',
146142
)}
147-
onClick={() =>
148-
window.open('https://github.com/stackblitz-labs/bolt.diy/issues/new?template=bug_report.yml', '_blank')
149-
}
143+
onClick={() => window.open('https://stackblitz-labs.github.io/bolt.diy/', '_blank')}
150144
>
151-
<div className="i-ph:bug w-4 h-4 text-gray-400 group-hover:text-purple-500 dark:group-hover:text-purple-400 transition-colors" />
152-
Report Bug
145+
<div className="i-ph:question w-4 h-4 text-gray-400 group-hover:text-purple-500 dark:group-hover:text-purple-400 transition-colors" />
146+
Help & Documentation
153147
</DropdownMenu.Item>
154148
</DropdownMenu.Content>
155149
</DropdownMenu.Portal>

app/components/sidebar/Menu.client.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { toast } from 'react-toastify';
44
import { Dialog, DialogButton, DialogDescription, DialogRoot, DialogTitle } from '~/components/ui/Dialog';
55
import { ThemeSwitch } from '~/components/ui/ThemeSwitch';
66
import { ControlPanel } from '~/components/@settings/core/ControlPanel';
7-
import { SettingsButton } from '~/components/ui/SettingsButton';
7+
import { SettingsButton, HelpButton } from '~/components/ui/SettingsButton';
88
import { Button } from '~/components/ui/Button';
99
import { db, deleteById, getAll, chatId, type ChatHistoryItem, useChatHistory } from '~/lib/persistence';
1010
import { cubicEasingFn } from '~/utils/easings';
@@ -340,6 +340,7 @@ export const Menu = () => {
340340
<div className="h-12 flex items-center justify-between px-4 border-b border-gray-100 dark:border-gray-800/50 bg-gray-50/50 dark:bg-gray-900/50 rounded-tr-2xl">
341341
<div className="text-gray-900 dark:text-white font-medium"></div>
342342
<div className="flex items-center gap-3">
343+
<HelpButton onClick={() => window.open('https://stackblitz-labs.github.io/bolt.diy/', '_blank')} />
343344
<span className="font-medium text-sm text-gray-900 dark:text-white truncate">
344345
{profile?.username || 'Guest User'}
345346
</span>
@@ -525,7 +526,9 @@ export const Menu = () => {
525526
</DialogRoot>
526527
</div>
527528
<div className="flex items-center justify-between border-t border-gray-200 dark:border-gray-800 px-4 py-3">
528-
<SettingsButton onClick={handleSettingsClick} />
529+
<div className="flex items-center gap-3">
530+
<SettingsButton onClick={handleSettingsClick} />
531+
</div>
529532
<ThemeSwitch />
530533
</div>
531534
</div>

app/components/ui/SettingsButton.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,20 @@ export const SettingsButton = memo(({ onClick }: SettingsButtonProps) => {
1616
/>
1717
);
1818
});
19+
20+
interface HelpButtonProps {
21+
onClick: () => void;
22+
}
23+
24+
export const HelpButton = memo(({ onClick }: HelpButtonProps) => {
25+
return (
26+
<IconButton
27+
onClick={onClick}
28+
icon="i-ph:question"
29+
size="xl"
30+
title="Help & Documentation"
31+
data-testid="help-button"
32+
className="text-[#666] hover:text-bolt-elements-textPrimary hover:bg-bolt-elements-item-backgroundActive/10 transition-colors"
33+
/>
34+
);
35+
});

0 commit comments

Comments
 (0)