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

Feature moderator take care of #1627

Merged
merged 22 commits into from
Jun 10, 2021
Merged

Conversation

felipecalvo
Copy link
Contributor

🎯 Goal

Adds the necessary buttons, texts and locales for letting a moderator take care of a discussion. Does not show last moderator access anymore.

📝 Details

📸 Screenshots

I'll take care of it button

image

Confirmation toast when clicking. Button changes to `I won't take care of it'

image

If another moderator beats you to it, there's also an error toast

image

You can see who's taking care of it on the discussion view

image

And also on the discussion index

image

⚠️ Dependencies

Requires mumuki/mumuki-domain#218

🔙 Backwards compatibility

We're no longer showing a moderator's last access to a discussion, replacing it with who's taking care of it instead.

🔜 Future work

There's an unlikely to occur bug which can be solved by refreshing: #1626

@felipecalvo felipecalvo self-assigned this Jun 10, 2021
Copy link
Member

@julian-berbel julian-berbel left a comment

Choose a reason for hiding this comment

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

Looks good! ❤️

A moderator uses /discussion/:id/responsible to post their
intention; the autogenerated responsible_*_discussion_path
routes (with * being exercise, chapter or lesson) are not
needed for this use case. I don't know why they're needed for
subscription or upvotes either, but I don't want to risk
breaking backwards compatibility as those features are not
tested for some reason.
@felipecalvo felipecalvo merged commit 0f46a8d into master Jun 10, 2021
@felipecalvo felipecalvo deleted the feature-moderator-ill-do-it branch June 10, 2021 19:40
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