Show Reddit post age in conversations

This commit is contained in:
jjbrunton committed 2026-08-09 09:54:53 +01:00
1 parent 7db60e8839
commit 50f9f8a6aa
14 files changed
+65 -11

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ export const ConversationDetailResponseSchema = ActiveChatSchema.extend({
title: z.string().optional(),
url: z.string(),
imageUrl: z.string().nullable().optional(),
postedAt: z.number().optional(),
sentAt: z.number(),
}).nullable(),
automation: z.strictObject({
@@ -172,7 +172,8 @@ describe('dashboard endpoint contracts', () => {
...chat,
triggeringPost: {
id: 'post-1', subreddit: 'example', title: 'Example',
url: 'https://www.reddit.com/r/example/comments/post-1/', imageUrl: 'https://i.redd.it/example.jpg', sentAt: 1_700_000_000_000,
url: 'https://www.reddit.com/r/example/comments/post-1/', imageUrl: 'https://i.redd.it/example.jpg',
postedAt: 1_699_999_000_000, sentAt: 1_700_000_000_000,
},
automation: { turnsUsed: 1, remainingTurns: 2, status: 'active', handoffReason: null },
syncInProgress: null,