Skip to content

Commit daded59

Browse files
feat: add user ip in export and fix chat history bug
1 parent b43252a commit daded59

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

app/(marketing)/changelog/page.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ export default function ChangelogPage() {
1111
</p>
1212
</div>
1313
<div className="p-4 max-w-screen-sm">
14+
<Release
15+
isFirst={true}
16+
version="0.2.22"
17+
date="2024-07-12"
18+
improvements={[
19+
{
20+
title: 'Exports now contain user IP',
21+
description: 'Exports now contain the user IP. This will allow you to see the IP of the user who sent the message in the export.',
22+
},
23+
]}
24+
bugs={[
25+
{
26+
title: 'Chat history was displaying thread name after doing a click in the ui',
27+
description: 'Issue was fixed and now the chat history is displaying the thread name correctly.',
28+
},
29+
]}
30+
/>
1431
<Release
1532
isFirst={true}
1633
version="0.2.21"

app/api/exports/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export async function POST(
5656
response: true,
5757
createdAt: true,
5858
threadId: true,
59+
userIP: true,
5960
},
6061
})
6162

hooks/use-assistant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export function useAssistant({
8383
if (currentThreadId && threadsMap[currentThreadId] !== undefined) {
8484
threadsMap[currentThreadId].messages = messages
8585
localStorage.setItem(localStorageName, JSON.stringify(threadsMap))
86+
setThreads(threadsMap)
8687
}
8788
}, [messages]);
8889

0 commit comments

Comments
 (0)