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

feat: show callout admin button for reviewers #98

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

wpf500
Copy link
Member

@wpf500 wpf500 commented Nov 28, 2024

This PR makes the admin interface for callouts visible in the menu for callout reviewers.

For speed it's fairly hardcoded right now, I've added GetCalloutWith.IsReviewer which adds an isReviewer flag to the API response. I did consider a more generic approach, e.g. GetCalloutWith.Permissions, that could be extended in the future, but in the end this didn't seem worth the additional complexity.

This code would still be relatively easy to refactor into something more general in the future, once those requirements are more well defined.

grafik

@wpf500 wpf500 changed the title feat: Show callout admin button for reviewers feat: show callout admin button for reviewers Nov 28, 2024
@wpf500 wpf500 requested a review from JumpLink November 28, 2024 13:40
Copy link
Collaborator

@JumpLink JumpLink left a comment

Choose a reason for hiding this comment

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

LGTM

I am pleased that this feature can go live quickly and that there is also a frontend implementation :)

@wpf500 wpf500 merged commit 8ddd02b into main Nov 28, 2024
2 checks passed
@wpf500 wpf500 deleted the feat/show-reviewer-callout-admin branch November 28, 2024 15:34
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