-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functionality to create, update, and delete issue comments #18
Conversation
PR Analysis
PR Feedback
|
/describe |
/update_changelog |
/describe |
1 similar comment
/describe |
PR Description updated to latest commit (8636d7d) |
/improve |
Type
enhancement
Description
This PR introduces the functionality to create, update, and delete issue comments in the application. It includes the following changes:
DeleteIssueCommentInput
andMutationDeleteIssueCommentArgs
types to support deleting issue comments.IssueComments
component to include UI components and functionality for creating, updating, and deleting issue comments.onUpdateCallback
prop to theEditor
component to handle editor content updates.IssueComment
, for rendering and editing individual issue comments.IssueDescription
component to use theonUpdateCallback
prop and the updated mutation for creating issue comments.UPDATE_ISSUE_COMMENT_MUTATION
andDELETE_ISSUE_COMMENT_MUTATION
) for updating and deleting issue comments.hocuspocusServer
to handle thecommentRaw
field in issue comments.UpdateIssueCommentInput
andDeleteIssueCommentInput
) in the GraphQL schema to support updating and deleting issue comments.PR changes walkthrough
9 files
graphql.ts
frontend/gql/__generated__/graphql.ts
Added
DeleteIssueCommentInput
andMutationDeleteIssueCommentArgs
types to support deletingissue comments.
IssueComments.tsx
frontend/components/IssueModal/IssueComments.tsx
- Added UI components for creating, updating, and
**- Added functionality to create, update, and delete issue
comments.
deleting issue comments.**
index.tsx
frontend/components/Editor/index.tsx
- Updated
**- Added
onUpdateCallback
prop to handle editor contentupdates.
Editor
component to use theonUpdateCallback
prop.**IssueComment.tsx
frontend/components/IssueModal/IssueComment.tsx
- Added functionality to update and delete
**- Added UI component for rendering and editing individual
issue comments.
issue comments.**
IssueDescription.tsx
frontend/components/IssueModal/IssueDescription.tsx
- Updated mutation to use
**- Updated
Editor
component to useonUpdateCallback
prop.
comment
instead ofdefaultContent
.**gql-queries-mutations.ts
frontend/gql/gql-queries-mutations.ts
- Updated
**- Added
UPDATE_ISSUE_COMMENT_MUTATION
andDELETE_ISSUE_COMMENT_MUTATION
GraphQL mutations.CREATE_ISSUE_COMMENT_MUTATION
to includecommentRaw
field.**
index.js
backend/src/resolvers/IssueComment/index.js
- Added resolvers for creating, updating, and deleting issue
comments.
hocuspocus-server.js
backend/src/services/hocuspocus-server.js
- Updated
hocuspocusServer
to handle issue commentcommentRaw field.
type-defs.js
backend/src/type-defs.js
- Added
UpdateIssueCommentInput
andDeleteIssueCommentInput
input types.