Skip to content

Add badge ungrant/remove functionality#24

Draft
anx-ag wants to merge 1 commit intolarkox:masterfrom
anx-ag:claude/confident-thompson
Draft

Add badge ungrant/remove functionality#24
anx-ag wants to merge 1 commit intolarkox:masterfrom
anx-ag:claude/confident-thompson

Conversation

@anx-ag
Copy link
Copy Markdown

@anx-ag anx-ag commented Mar 20, 2026

Allow users who can grant a badge to also remove it from others, and allow users to remove badges from themselves. Includes backend (store, API, slash command, notifications) and frontend (self-remove button in badge list, granter-remove button in badge details).

Allow users who can grant a badge to also remove it from others,
and allow users to remove badges from themselves. Includes backend
(store, API, slash command, notifications) and frontend (self-remove
button in badge list, granter-remove button in badge details).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Owner

@larkox larkox left a comment

Choose a reason for hiding this comment

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

In general, LGTM. One thing that I would be careful about is about the multiple badges. Right now you are only deleting the first one you find in the ownership list. But since the same badge can be granted for different reasons, you may be deleting the one with the "wrong reason".

Right now ownership doesn't have any unique identifier, which is bad. But maybe we can use the Time, which should be "unique enough". What do you think?

We would need to pass an extra parameter to the request, and not sure how to handle that with the slash command, but it is something we should be careful about.

@anx-ag
Copy link
Copy Markdown
Author

anx-ag commented Mar 20, 2026

Hi, thanks for the fast response and sorry, the PR was not ready and I did not have time to test it thoroughly today. Good points you mentioned, I was thinking about that too today and wanted to do some extensive testing on how the UI feels when you have multiple badges from the same type assigned, etc; I'm just currently struggling with a compilation issue which I should also be able to fix next week and I'll post an update here then once the PR is ready (still a draft for the time being).

@larkox
Copy link
Copy Markdown
Owner

larkox commented Mar 24, 2026

Awesome. Ping me when you have it ready and I will take a look.

Thank you very much for contributing!

@larkox
Copy link
Copy Markdown
Owner

larkox commented Mar 24, 2026

Crazy idea to handle the slash command...

A slash command like /badges remove badgeId, always opens a interactive dialog. If the badge is unique, the dialog is just "are you sure you want to delete?". If it is a multiple badge, it shows all the repetitions of the badge and let you select which ones you want to delete.

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