-
Couldn't load subscription status.
- Fork 14
Updated Tip Supported Modules #440
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good but make sure this works for all content types on staging.
on prod, have @TylerDiorio verify any post (ideally proposal) to make sure it looks good
| onClose={() => setIsModalOpen(false)} | ||
| contentId={documentId} | ||
| feedContentType="PAPER" | ||
| feedContentType={contentType === 'paper' ? 'PAPER' : 'POST'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there other types backend can accept here or just paper vs post?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How our backend currently processes it is just paper, "rhcommentmodel" or "researchhubpost". I can update these if you'd like me to to be a bit more concise.



Issue:
Tips were only working on Papers and Comments, but questions, preprints etc were not showing the tips. A fix both here on the front end and on the backend properly set the status and returned the correct data formatting for all non-paper and comment types.