Skip to content

Add Stream Reactions - #1565

Open
SebiWrn wants to merge 66 commits into
devfrom
enh/add-reactions
Open

Add Stream Reactions#1565
SebiWrn wants to merge 66 commits into
devfrom
enh/add-reactions

Conversation

@SebiWrn

@SebiWrn SebiWrn commented Apr 17, 2025

Copy link
Copy Markdown
Collaborator

Motivation and Context

This pull request adds previously mentioned reactions by students (look at #1564).
Closes #127.

The percentage below the reactions shows the usage in the last few minutes.

Available reactions can be modified in the config.yaml.

Important

Do not merge before #1564 !!

Screenshots

image
image

@SebiWrn
SebiWrn requested a review from a team April 17, 2025 14:17
@SebiWrn SebiWrn self-assigned this Apr 17, 2025
@SebiWrn SebiWrn linked an issue Apr 17, 2025 that may be closed by this pull request
Comment thread api/stream_reactions.go
Comment thread api/stream_reactions.go Outdated
Comment thread api/stream_reactions.go
Comment thread api/stream_reactions.go
Comment thread config.yaml Outdated
Comment thread web/admin.go Outdated
@SebiWrn SebiWrn mentioned this pull request Jun 18, 2025
@kordianbruck kordianbruck changed the title Enh/add reactions Add Stream Reactions May 5, 2026
Mazi02 and others added 15 commits May 18, 2026 00:33
Tested: the string version is different that the one in db. It's also messy. So the normal version is used as it gets formatted automatically.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Correct, in api/stream_reactions.go we use streamId.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Cleaner api design.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Mazi02
Mazi02 requested review from Mazi02 and kordianbruck June 21, 2026 15:35
@kordianbruck
kordianbruck requested a review from coolgirl19 June 24, 2026 12:17
@kordianbruck
kordianbruck dismissed their stale review June 24, 2026 12:17

Re-review

@coolgirl19 coolgirl19 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With the help of Copilot, I avoided the lock on the stream reactions object, which otherwise could have blocked other reactions from coming in. @Mazi02, please take a look at whether it makes sense; you can revert it otherwise. Is there any way for a user to know if their reaction has been rejected because of a cool-down period?

Comment thread api/stream_reactions.go Outdated
Comment thread api/stream_reactions.go
Co-authored-by: coolgirl19 <35705443+coolgirl19@users.noreply.github.com>
@Mazi02

Mazi02 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

@coolgirl19 regarding the user notification I am going to make a notification pop up for it.

@alexanderstephan

Copy link
Copy Markdown
Contributor

@Mazi02 can this be reviewed again?

@Mazi02

Mazi02 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@alexanderstephan yes I am done with the final touches, though I would like to have the @coolgirl19 to look over it too and if she agrees we can merge it.

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.

Live reactions for lectures

7 participants