Skip to content

[DEV-551] Implement CommentsPanel#77

Merged
issacli-0821 merged 4 commits intoimplement-question-view-pagefrom
comments-panel
Feb 25, 2026
Merged

[DEV-551] Implement CommentsPanel#77
issacli-0821 merged 4 commits intoimplement-question-view-pagefrom
comments-panel

Conversation

@hellenlluo
Copy link

@hellenlluo hellenlluo commented Feb 13, 2026

References

Proposed Changes

  • Created CommentsPanel.tsx

@linear
Copy link

linear bot commented Feb 13, 2026

@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
help Error Error Feb 25, 2026 7:59pm

Request Review


const Thread: React.FC<{ comments: Comment[] }> = ({ comments }) => {
return (
<div className='thread'>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's convert all the divs to Panel evergreen element

);
};

const CommentsPanel: React.FC<CommentsPanelProps> = ({ comments }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can assume that the comments here all belong to the same answer. With that, idk if you need to do getThreadedComments?

I might have confused you, but the CommentsPanel component are just the comments associated with a single answer

@issacli-0821 issacli-0821 merged commit 2189ee1 into implement-question-view-page Feb 25, 2026
2 of 5 checks passed
Spencer04Hire added a commit that referenced this pull request Feb 27, 2026
* Added Answer type to types.ts

* Remove profilePicture from Answer type

* CommentBox implementation with read more/read less option

* Created AnswerPanel

* Ran prettier and lint on AnswerPanel

* removed accidental direct commit instead of pull request

* Implement AnswerBox frontend component

* Implement AnswerBox style

* [DEV-552] Implement CommentBox (#80)

* comment box

* linting error fix

* linting error fix

* pull request comments

* Modify comment type to be based on schema in commentService

* Linting errors in types.ts

---------

Co-authored-by: issacli-0821 <tl1719@princeton.edu>

* [DEV-551] Implement CommentsPanel (#77)

* wrote comments panel again

* changed div to Pane and removed threads

* Pass showThreadLine in CommentBox to conditionally render thread line

---------

Co-authored-by: issacli-0821 <tl1719@princeton.edu>

* Lint AnswerBox and AnswerPanel

* Delete yarn.lock in root

* Modify export paths to use path alias

* Convert html elements to Evergreen components

* Delete AnswerBox css

* Update types and modified components to match

* Remove unused imports in AnswerBox and AnswerPanel

* Modify placement of elements in AnswerBox

* Fix lint errors

* Add truncation behavior for long answers

* Wrap overflowing answers around the panel

* Implementing QuestionPanel (#68)

* Implementing QuestionPanel

* Fixing linting errors while implementing question panel

* Switching to using Evergreen elements

* Fixing spacing between different import groups

* Don't export types in comment service

* Move max length constant into answer and comment files

* Combine and fix formatTimePassed implementations

* Prettier fixes

---------

Co-authored-by: rayk <mrraykong@gmail.com>
Co-authored-by: david.weizhong.liu@gmail.com <david.weizhong.liu@gmail.com>
Co-authored-by: timothyli1331 <timothyli1331@gmail.com>
Co-authored-by: davidweizhongliu <96628470+davidweizhongliu@users.noreply.github.com>
Co-authored-by: Hellen Luo <luohellen05@gmail.com>
Co-authored-by: mar-crespo <mcrespo2743@gmail.com>
Co-authored-by: Spencer04Hire <124114480+Spencer04Hire@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants