-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
2,215 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function ApiKeysPage() { | ||
return ( | ||
<div> | ||
<div className="flex items-center justify-between space-y-2"> | ||
<h2 className="text-3xl font-bold tracking-tight">Api Keys</h2> | ||
<div className="flex items-center space-x-2"> | ||
</div> | ||
</div> | ||
<div> | ||
|
||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function ConfigurationPage() { | ||
return ( | ||
<div> | ||
<div className="flex items-center justify-between space-y-2"> | ||
<h2 className="text-3xl font-bold tracking-tight">Configuration</h2> | ||
<div className="flex items-center space-x-2"> | ||
</div> | ||
</div> | ||
<div> | ||
|
||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function ConnectionsPage() { | ||
return ( | ||
<div> | ||
<div className="flex items-center justify-between space-y-2"> | ||
<h2 className="text-3xl font-bold tracking-tight">Connections</h2> | ||
<div className="flex items-center space-x-2"> | ||
</div> | ||
</div> | ||
<div> | ||
|
||
</div> | ||
</div> | ||
); | ||
} |
63 changes: 49 additions & 14 deletions
63
packages/webapp/src/components/dashboard/components/main-nav.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,73 @@ | ||
import { cn } from "@/lib/utils" | ||
import { useState } from "react"; | ||
|
||
export function MainNav({ | ||
onLinkClick, | ||
className, | ||
...props | ||
}: React.HTMLAttributes<HTMLElement>) { | ||
}: { | ||
onLinkClick: (name: string) => void; | ||
className: string; | ||
}) { | ||
const [selectedItem, setSelectedItem] = useState<string>("jobs"); | ||
|
||
const navItemClassName = (itemName: string) => | ||
`text-sm border-b font-medium w-full text-left px-4 py-2 hover:bg-gray-900 cursor-pointer ${ | ||
selectedItem === itemName ? "bg-gray-900" : "text-muted-foreground" | ||
} transition-colors`; | ||
|
||
function click(name: string) { | ||
setSelectedItem(name); | ||
onLinkClick(name); | ||
} | ||
|
||
return ( | ||
<nav | ||
className={cn("flex items-center space-x-4 lg:space-x-6", className)} | ||
className={`flex flex-col items-start ${className}`} | ||
{...props} | ||
> | ||
<a | ||
href="/examples/dashboard" | ||
className="text-sm font-medium transition-colors hover:text-primary" | ||
className={navItemClassName('jobs')} | ||
onClick={() => click('jobs')} | ||
> | ||
Jobs | ||
</a> | ||
<a | ||
className={navItemClassName('connections')} | ||
onClick={() => click('connections')} | ||
> | ||
Dashboard | ||
Connections | ||
</a> | ||
<a | ||
href="/examples/dashboard" | ||
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary" | ||
className={navItemClassName('integrations')} | ||
onClick={() => click('integrations')} | ||
> | ||
Integrations | ||
</a> | ||
<a | ||
className={navItemClassName('linked-accounts')} | ||
onClick={() => click('linked-accounts')} | ||
> | ||
Linked Accounts | ||
</a> | ||
<a | ||
href="/examples/dashboard" | ||
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary" | ||
className={navItemClassName('configuration')} | ||
onClick={() => click('configuration')} | ||
> | ||
Configuration | ||
</a> | ||
<a | ||
href="/examples/dashboard" | ||
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary" | ||
className={navItemClassName('api-keys')} | ||
onClick={() => click('api-keys')} | ||
> | ||
API Keys | ||
</a> | ||
<a | ||
className={navItemClassName('docs')} | ||
onClick={() => click('docs')} | ||
> | ||
Docs | ||
</a> | ||
{/* Add other nav items as needed */} | ||
</nav> | ||
) | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.