Add user badges (#36752)

Implemented #29798

This feature implements list badges, create new badges, view badge, edit
badge and assign badge to users.

- List all badges
![(screenshot)](https://github.com/user-attachments/assets/9dbf243e-c704-49f8-915a-73704e226da9)
- Create new badges
![(screenshot)](https://github.com/user-attachments/assets/8a3fff7e-fe6f-49b0-a7c5-bbba34478019)
- View badge
![(screenshot)](https://github.com/user-attachments/assets/dd7a882b-6e2c-47d2-93e0-05a2698a41e5)
![(screenshot)](https://private-user-images.githubusercontent.com/75789103/558982759-53536300-e189-406b-8b0e-824e1a768b92.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQxOTMyMjUsIm5iZiI6MTc3NDE5MjkyNSwicGF0aCI6Ii83NTc4OTEwMy81NTg5ODI3NTktNTM1MzYzMDAtZTE4OS00MDZiLThiMGUtODI0ZTFhNzY4YjkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzIyVDE1MjIwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxNjQ5ZDUyMGVlNWRmODg1OGUyN2NiOWI3YTAxODhiMjRhM2U1OGQ1NWMwNjQ0MTBmNTRjNTBjYjIzN2ExMWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4aAfpFaziiXDG7W2HaNJop0B62-NR4f0Ni9YNjTZq0M)
- Edit badge
![(screenshot)](https://github.com/user-attachments/assets/7124671a-ed97-4c98-ac7d-34863377fa62)
- Add user to badge
![(screenshot)](https://github.com/user-attachments/assets/3438b492-0197-4acb-b9f2-2f9f7c80582e)
This commit is contained in:
Nicolas
2026-03-22 16:49:45 +01:00
committed by GitHub
parent aa9aea2c6e
commit 4ba90207cf
22 changed files with 1195 additions and 35 deletions

View File

@@ -169,6 +169,7 @@
"search.exact_tooltip": "Include only results that match the exact search term",
"search.repo_kind": "Search repos…",
"search.user_kind": "Search users…",
"search.badge_kind": "Search badges…",
"search.org_kind": "Search orgs…",
"search.team_kind": "Search teams…",
"search.code_kind": "Search code…",
@@ -543,6 +544,7 @@
"form.glob_pattern_error": " glob pattern is invalid: %s.",
"form.regex_pattern_error": " regex pattern is invalid: %s.",
"form.username_error": " can only contain alphanumeric characters ('0-9','a-z','A-Z'), dash ('-'), underscore ('_') and dot ('.'). It cannot begin or end with non-alphanumeric characters, and consecutive non-alphanumeric characters are also forbidden.",
"form.invalid_slug_error": " is invalid.",
"form.invalid_group_team_map_error": " mapping is invalid: %s",
"form.unknown_error": "Unknown error:",
"form.captcha_incorrect": "The CAPTCHA code is incorrect.",
@@ -2858,6 +2860,30 @@
"admin.hooks": "Webhooks",
"admin.integrations": "Integrations",
"admin.authentication": "Authentication Sources",
"admin.badges": "Badges",
"admin.badges.badges_manage_panel": "Badge Management",
"admin.badges.details": "Badge Details",
"admin.badges.new_badge": "Create New Badge",
"admin.badges.slug": "Slug",
"admin.badges.slug_been_taken": "The slug is already taken.",
"admin.badges.description": "Description",
"admin.badges.image_url": "Image URL",
"admin.badges.new_success": "The badge \"%s\" has been created.",
"admin.badges.update_success": "The badge has been updated.",
"admin.badges.deletion_success": "The badge has been deleted.",
"admin.badges.edit_badge": "Edit Badge",
"admin.badges.update_badge": "Update Badge",
"admin.badges.delete_badge": "Delete Badge",
"admin.badges.delete_badge_desc": "Are you sure you want to permanently delete this badge?",
"admin.badges.users_with_badge": "Users with badge: %s",
"admin.badges.not_found": "Badge not found.",
"admin.badges.user_already_has": "User already has this badge.",
"admin.badges.user_add_success": "Badge assigned to user successfully.",
"admin.badges.user_remove_success": "Badge removed from user successfully.",
"admin.badges.manage_users": "Manage Users",
"admin.badges.add_user": "Add User",
"admin.badges.remove_user": "Remove User",
"admin.badges.delete_user_desc": "Are you sure you want to remove this user from the badge?",
"admin.emails": "User Email Addresses",
"admin.config": "Configuration",
"admin.config_summary": "Summary",