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

Activity feed: Reactions #348

Closed
martastain opened this issue Sep 11, 2024 · 0 comments · Fixed by #349
Closed

Activity feed: Reactions #348

martastain opened this issue Sep 11, 2024 · 0 comments · Fixed by #349
Labels
type: feature Adding something new and exciting to the product

Comments

@martastain
Copy link
Member

martastain commented Sep 11, 2024

Story

User wants to quickly react to a comment on another activity using emojis/ social media-style reactions 👍 👎 💯

Problems

We need to store reactions somewhere

Proposal

Use activities.data.reactions to store a list of reactions in a form of

{
  "user": "Username",
  "fullName": "User Full Name",
  "reaction": "middle_finger"
}

The same structure will be queriable using graphql on any activity (list[ReactionModel])

A set of endpoints to handle storing the data

  • [POST] /api/projects/{projectName}/activities/{activityId}/reactions with {"reaction": "thumbup"} payload
  • [DELETE] /api/projects/{projectName}/activities/{activityId}/reactions/{reaction} where {reaction} is the same value as provided while creating the reaction

reaction is a simple string, no special characters apart from underscores/hyphens

@martastain martastain added the type: feature Adding something new and exciting to the product label Sep 11, 2024
@martastain martastain linked a pull request Sep 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Adding something new and exciting to the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant