-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
d43596e
commit ec6a463
Showing
80 changed files
with
424 additions
and
554 deletions.
There are no files selected for viewing
23 changes: 13 additions & 10 deletions
23
apps/masterbots.ai/app/(browse)/[category]/[threadId]/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 |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import { getThread } from '@/services/hasura' | ||
import { BrowseThread } from '@/components/browse/browse-thread' | ||
import { getMessagePairs, getThread } from '@/services/hasura' | ||
|
||
import type { ChatPageProps } from '@/app/c/[chatbot]/[threadId]/page' | ||
import Shortlink from '@/components/browse/shortlink-button' | ||
import Shortlink from '@/components/routes/browse/shortlink-button' | ||
import { ThreadAccordion } from '@/components/shared/thread-accordion' | ||
|
||
export default async function ThreadLandingPage({ params }: ChatPageProps) { | ||
const thread = await getThread({ | ||
threadId: params.threadId | ||
}) | ||
return ( | ||
<> | ||
<div> | ||
<Shortlink /> | ||
</div> | ||
const initialMessagePairs = await getMessagePairs(thread.threadId) | ||
|
||
<BrowseThread thread={thread} /> | ||
</> | ||
return ( | ||
<div className="container"> | ||
<Shortlink /> | ||
<ThreadAccordion | ||
thread={thread} | ||
initialMessagePairs={initialMessagePairs} | ||
/> | ||
</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
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
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
77 changes: 0 additions & 77 deletions
77
apps/masterbots.ai/components/browse/browse-chat-message-list.tsx
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
apps/masterbots.ai/components/browse/browse-chat-messages.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.