Skip to content

Commit 298c7d8

Browse files
committed
add link to support email in footer, support FAQ, studio sidebar. add docs link to studio sidebar. adjust studio sidebar styling for mobile
1 parent da92a1c commit 298c7d8

File tree

6 files changed

+37
-14
lines changed

6 files changed

+37
-14
lines changed

src/components/marketing/faq.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const faqData = [
5555
value: 'support-options',
5656
trigger: 'How do I get support?',
5757
content:
58-
'Pro plan users receive priority support via email. All users, including those on the Community plan, can access community support through our GitHub repository and participate in discussions.',
58+
'Send an email to support@agentsmith.dev. All users, including those on the Community plan, can access community support through our GitHub repository and participate in discussions.',
5959
},
6060
];
6161

src/components/marketing/footer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const footerData: FooterColumn[] = [
4242
href: '/sitemap.xml',
4343
label: 'Sitemap',
4444
},
45+
{
46+
href: routes.emails.support,
47+
label: 'Support',
48+
},
4549
],
4650
},
4751
{

src/components/organization-selector.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
SelectTrigger,
88
SelectValue,
99
} from '@/components/ui/select';
10-
import { Label } from '@/components/ui/label';
1110

1211
export type OrganizationSelectorProps = {
1312
userOrganizationData: GetUserOrganizationDataResult;
@@ -30,14 +29,13 @@ export const OrganizationSelector = (props: OrganizationSelectorProps) => {
3029
) || [];
3130

3231
return (
33-
<div className="space-y-6">
32+
<div className="space-y-2">
3433
<div className="space-y-2">
35-
<Label>Organization</Label>
3634
<Select
3735
value={selectedOrganizationUuid ?? 'choose-organization'}
3836
onValueChange={setSelectedOrganizationUuid}
3937
>
40-
<SelectTrigger>
38+
<SelectTrigger className="truncate w-full">
4139
<SelectValue placeholder="Choose Organization" />
4240
</SelectTrigger>
4341
<SelectContent>
@@ -51,18 +49,17 @@ export const OrganizationSelector = (props: OrganizationSelectorProps) => {
5149
</div>
5250

5351
<div className="space-y-2">
54-
<Label>Project</Label>
5552
<Select
5653
value={selectedProjectUuid ?? 'choose-project'}
5754
onValueChange={setSelectedProjectUuid}
5855
>
59-
<SelectTrigger>
56+
<SelectTrigger className="truncate w-full">
6057
<SelectValue placeholder="Choose Project" />
6158
</SelectTrigger>
6259
<SelectContent>
6360
{selectedOrganization?.projects.map((project: any) => (
6461
<SelectItem key={project.uuid} value={project.uuid}>
65-
{`Project ${project.name}`}
62+
{project.name}
6663
</SelectItem>
6764
))}
6865
</SelectContent>

src/components/studio-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { ChevronDown, RefreshCcw, Settings, Slash } from 'lucide-react';
3+
import { ChevronDown, RefreshCcw, Slash } from 'lucide-react';
44

55
import {
66
Breadcrumb,

src/components/studio-sidebar.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const StudioMenu = () => {
3131
item.slug === 'organization' ||
3232
item.slug === 'account' ||
3333
item.slug === 'settings' ||
34-
item.slug === 'alerts'
34+
item.slug === 'alerts' ||
35+
item.slug === 'support' ||
36+
item.slug === 'docs'
3537
) {
3638
return [acc[0], [...acc[1], item]];
3739
}
@@ -43,7 +45,7 @@ const StudioMenu = () => {
4345

4446
return (
4547
<div className="h-full flex flex-col">
46-
<nav className="flex-1 px-1 overflow-hidden flex flex-col justify-between pb-4">
48+
<nav className="flex-1 px-1 overflow-hidden flex flex-col justify-between pb-2">
4749
{groups.map((group, groupIndex) => (
4850
<div key={groupIndex}>
4951
{group.map((item) => (
@@ -52,7 +54,7 @@ const StudioMenu = () => {
5254
variant="ghost"
5355
asChild
5456
className={cn(
55-
'p-0 has-[>svg]:px-0 mx-0.5 mt-2 flex justify-start',
57+
'p-0 has-[>svg]:px-0 mx-0.5 mt-1 flex justify-start',
5658
item.active && 'bg-muted-foreground/20',
5759
)}
5860
>
@@ -73,7 +75,7 @@ const StudioMenu = () => {
7375
))}
7476
</nav>
7577
<Separator className="block md:hidden" />
76-
<div className="block md:hidden p-4 space-y-4 overflow-hidden">
78+
<div className="block md:hidden p-2 space-y-4 overflow-hidden">
7779
<OrganizationSelector userOrganizationData={userOrganizationData} />
7880
</div>
7981
</div>

src/hooks/nav-items.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
Box,
1313
Bell,
1414
BarChart3,
15+
LifeBuoy,
16+
Book,
1517
} from 'lucide-react';
1618
import { usePathname } from 'next/navigation';
1719
import { useApp } from '@/providers/app';
@@ -36,6 +38,22 @@ export const useNavItems = () => {
3638
active: pathname.startsWith(routes.studio.account),
3739
};
3840

41+
const supportNavItem = {
42+
name: 'Support',
43+
slug: 'support',
44+
href: routes.emails.support,
45+
icon: LifeBuoy,
46+
active: pathname === routes.emails.support,
47+
};
48+
49+
const docsNavItem = {
50+
name: 'Docs',
51+
slug: 'docs',
52+
href: routes.docs.home,
53+
icon: Book,
54+
active: pathname === routes.docs.home,
55+
};
56+
3957
const navItems = [
4058
homeNavItem,
4159
{
@@ -88,6 +106,8 @@ export const useNavItems = () => {
88106
icon: Globe,
89107
active: pathname.startsWith(routes.studio.projectGlobals(selectedProjectUuid)),
90108
},
109+
docsNavItem,
110+
supportNavItem,
91111
accountNavItem,
92112
{
93113
name: 'Organization',
@@ -121,7 +141,7 @@ export const useNavItems = () => {
121141

122142
if (userNeedsOrgMembership) {
123143
return {
124-
navItems: [homeNavItem, accountNavItem],
144+
navItems: [homeNavItem, docsNavItem, supportNavItem, accountNavItem],
125145
activeItem: homeNavItem,
126146
};
127147
}

0 commit comments

Comments
 (0)