From ae2683fd0e92eaf5441f02ea570e60e2ba1ec4cb Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:57:05 +0000 Subject: [PATCH 1/2] init: placeholder for React version of Comment Co-Authored-By: Charity Quinn --- src/models/comment.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/models/comment.ts diff --git a/src/models/comment.ts b/src/models/comment.ts new file mode 100644 index 00000000..bca9fb42 --- /dev/null +++ b/src/models/comment.ts @@ -0,0 +1,3 @@ +export const Comment = () => { + return null; +}; From fe4743dfe60566b9c961459e4350fb9aaaa00775 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:57:11 +0000 Subject: [PATCH 2/2] feat: port Comment class to TypeScript interface Co-Authored-By: Charity Quinn --- src/models/comment.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/models/comment.ts b/src/models/comment.ts index bca9fb42..c17b2c91 100644 --- a/src/models/comment.ts +++ b/src/models/comment.ts @@ -1,3 +1,10 @@ -export const Comment = () => { - return null; -}; +export interface Comment { + id: number; + level: number; + user: string; + time: number; + timeAgo: string; + content: string; + deleted: boolean; + comments: Comment[]; +}