Skip to content
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

improved response quoting by adding original commenter name and date #1445

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

ARADDCC002
Copy link
Member

image

Comment on lines 75 to 81
if (isUserInformationLoading) {
return <Loading />
}

if (isUserInformationError) {
return <MessageAlert message={isUserInformationError.info.message} severity='error' />
}
Copy link
Member

Choose a reason for hiding this comment

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

Is it important for the error catch to be before the catch for loading?

const handleReactionsError = useCallback((message: string) => {
setErrorMessage(message)
}, [])

const handleReplyOnClick = (value: string | undefined) => {
setAnchorEl(null)
if (value) {
onReplyButtonClick(value.replace(/^/gm, '>'))
const username = userInformation ? userInformation.name : response.entity.split(':')[1]
const originalComment = value.replace(/^/gm, '>')
Copy link
Member

Choose a reason for hiding this comment

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

Do we want the reply to a reply quoted as well?

If not it might also be good to consider making the quoted comment read only, rather than using editable block quotes.

Copy link
Member Author

Choose a reason for hiding this comment

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

There currently isn't really a way to handle that as the response is just a string that's formatted by the Rich Text component.

I think we'd need to make a lot of changes in order to make it read-only and I don't know how much benefit we'd get for how long that might take, but I'm open to change my opinion on that.

@ARADDCC002 ARADDCC002 merged commit 3cf2d0c into main Aug 7, 2024
14 checks passed
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