No Users Found
diff --git a/src/components/pages/(protected)/users/user-table-skeleton.tsx b/src/components/pages/(protected)/users/user-table-skeleton.tsx
new file mode 100644
index 0000000..05463aa
--- /dev/null
+++ b/src/components/pages/(protected)/users/user-table-skeleton.tsx
@@ -0,0 +1,31 @@
+import { Skeleton } from "@/components/ui/skeleton"
+import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table"
+import React from "react"
+
+export default function UserTableSkeleton() {
+ return (
+
+
+ {Array.from({ length: 5 }).map((_, idx) => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ))}
+
+
+ )
+}
diff --git a/src/components/pages/landing/index.tsx b/src/components/pages/landing/index.tsx
index 67eda99..f698dc4 100644
--- a/src/components/pages/landing/index.tsx
+++ b/src/components/pages/landing/index.tsx
@@ -1,4 +1,4 @@
-import { Button, buttonVariants } from "@/components/ui/button"
+import { buttonVariants } from "@/components/ui/button"
import {
FeatureCardProps,
StepCardProps,
@@ -10,27 +10,27 @@ import {
import { cn } from "@/lib/utils"
import Link from "next/link"
-function NavLink({ title, href }: TNavLink, index: number) {
- return (
-
- {title}
-
- )
-}
+// function NavLink({ title, href }: TNavLink, index: number) {
+// return (
+//
+// {title}
+//
+// )
+// }
export function Navbar() {
return (
{/* logo */}
From Code to Clarity
- AI-Powered README Generator
+ AI-Powered documentation Generator
- Our AI-powered tool generates clear, detailed README files by
- scanning GitHub repositories. It automates documentation with
- features, structure, and screenshots in seconds. Focus on coding
- while we handle the rest.
+ Our AI-powered tool generates clear, detailed documentation of
+ files by scanning GitHub repositories. It automates
+ documentation with features and structure in seconds. Focus on
+ coding while we handle the rest.
-
-
-
- Visualize
-
-
-
-
-
- Query
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {[1, 1, 1, 1, 1].map((_s, index) => (
-
- ))}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {[1, 1, 1, 1, 1].map((_s, index) => (
+
+ ))}
+
+
+
+
+
+
+
+
)
}
diff --git a/src/components/ux/remark.tsx b/src/components/ux/remark.tsx
index f6d4905..1071e40 100644
--- a/src/components/ux/remark.tsx
+++ b/src/components/ux/remark.tsx
@@ -1,8 +1,52 @@
-import { useEffect } from "react"
+import { HTMLAttributes, useEffect } from "react"
import { useRemark } from "react-remark"
const Remark = ({ markdown }: { markdown: string }) => {
- const [reactContent, setMarkdownSource] = useRemark()
+ const [reactContent, setMarkdownSource] = useRemark({
+ rehypeReactOptions: {
+ components: {
+ a: (props: HTMLAttributes
) => (
+
+ {props.children}
+
+ ),
+ h3: (props: HTMLAttributes) => (
+
+ {props.children}
+
+ ),
+ h1: (props: HTMLAttributes) => (
+
+ {props.children}
+
+ ),
+ h2: (props: HTMLAttributes) => (
+
+ {props.children}
+
+ ),
+ h4: (props: HTMLAttributes) => (
+
+ {props.children}
+
+ ),
+ ul: (props: HTMLAttributes) => (
+
+ ),
+ ol: (props: HTMLAttributes) => (
+
+ {props.children}
+
+ ),
+ },
+ },
+ })
useEffect(() => {
setMarkdownSource(markdown)
diff --git a/src/lib/constants/projects.ts b/src/lib/constants/projects.ts
new file mode 100644
index 0000000..9b2d74b
--- /dev/null
+++ b/src/lib/constants/projects.ts
@@ -0,0 +1,5 @@
+import { ProjectType } from "@prisma/client"
+
+export const sourceToExtension: Record = {
+ [ProjectType.typescript]: "ts",
+}
diff --git a/src/lib/context/workflow-id.tsx b/src/lib/context/workflow-id.tsx
index 4825084..8b51d7d 100644
--- a/src/lib/context/workflow-id.tsx
+++ b/src/lib/context/workflow-id.tsx
@@ -100,6 +100,17 @@ function useWorkflowIdData() {
void submitForm()
}
+ function handleSuggestion(suggestion: string) {
+ const query = suggestion.trim()
+ if (!query) return
+
+ const userMessage: Message = { role: Role.USER, content: query }
+ appendMessage(userMessage)
+
+ appendMessage({ role: Role.AI, content: "" })
+ void submitForm({ bodyParams: { userQuery: query } })
+ }
+
return {
workflowData,
isLoading,
@@ -107,6 +118,7 @@ function useWorkflowIdData() {
response,
setResponse,
handleSubmit,
+ handleSuggestion,
messages: messages.current,
}
}
diff --git a/src/lib/data/landing.ts b/src/lib/data/landing.ts
index e8298cf..93203e0 100644
--- a/src/lib/data/landing.ts
+++ b/src/lib/data/landing.ts
@@ -4,7 +4,7 @@ export type TNavLink = {
}
export const navLinks: TNavLink[] = [
{ title: "Home", href: "/" },
- { title: "Features", href: "/features" },
+ { title: "Features", href: "/" },
{ title: "Docs", href: "/docs" },
{ title: "Demo", href: "/demo" },
{ title: "About", href: "/about" },