-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from Technoculture/bug_fixes
UI Improvement and Bug fixes
- Loading branch information
Showing
46 changed files
with
1,408 additions
and
317 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
9 changes: 9 additions & 0 deletions
9
src/app/(auth)/organization-profile/[[...organization-profile]]/page.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { OrganizationProfile } from "@clerk/nextjs"; | ||
|
||
export default function OrganizationProfilePage() { | ||
return ( | ||
<div className="grid h-screen place-items-center"> | ||
<OrganizationProfile routing="path" path="/organization-profile" /> | ||
</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,9 @@ | ||
import { UserProfile } from "@clerk/nextjs"; | ||
|
||
const UserProfilePage = () => ( | ||
<div className="grid h-screen place-items-center"> | ||
<UserProfile path="/user-profile" routing="hash" /> | ||
</div> | ||
); | ||
|
||
export default UserProfilePage; |
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
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,38 @@ | ||
import { db } from "@/lib/db"; | ||
import { chats } from "@/lib/db/schema"; | ||
import { Message, nanoid } from "ai"; | ||
import { eq } from "drizzle-orm"; | ||
|
||
export async function POST( | ||
req: Request, | ||
params: { params: { chatId: string } }, | ||
) { | ||
const { chatId } = params.params; | ||
const body = await req.json(); | ||
const content = body.content; | ||
const name = body.name; | ||
console.log("name", name); | ||
|
||
const _chat = [ | ||
{ | ||
content, | ||
createdAt: new Date(), | ||
id: nanoid(), | ||
role: "user", | ||
name, | ||
} as Message, | ||
]; | ||
|
||
console.log("chatId", _chat); | ||
|
||
await db | ||
.update(chats) | ||
.set({ | ||
messages: JSON.stringify({ log: _chat }), | ||
updatedAt: new Date(), | ||
}) | ||
.where(eq(chats.id, Number(chatId))) | ||
.run(); | ||
|
||
return new Response(JSON.stringify({ success: true })); | ||
} |
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
File renamed without changes.
Oops, something went wrong.
9b13bc7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
echoes – ./
ragents.vercel.app
echoes-git-dev-tcr.vercel.app
echoes-tcr.vercel.app
echoes.team
www.echoes.team