Skip to content

Commit

Permalink
Removed a bunch of unwanted achievements (#6794)
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan authored Nov 12, 2024
1 parent b8dfe48 commit 4bbc628
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 408 deletions.
1 change: 1 addition & 0 deletions backend/canisters/user/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Removed

- Remove events from being stored on the heap ([#6758](https://github.com/open-chat-labs/open-chat/pull/6758))
- Removed a bunch of unwanted achievements ([#6794](https://github.com/open-chat-labs/open-chat/pull/6794))

## [[2.0.1412](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1414-user)] - 2024-10-24

Expand Down
20 changes: 0 additions & 20 deletions backend/libraries/types/can.did
Original file line number Diff line number Diff line change
Expand Up @@ -2025,30 +2025,10 @@ type Achievement = variant {
ChangedTheme;
SwappedFromWallet;
AcceptedP2PSwapOffer;
EnabledDisappearingMessages;
PinnedMessage;
FavouritedChat;
FollowedThread;
SuggestedTranslation;
TranslationAccepted;
AppointedGroupModerator;
AppointedGroupAdmin;
AppointedGroupOwner;
ChosenAsGroupModerator;
ChosenAsGroupAdmin;
ChosenAsGroupOwner;
SetGroupAccessGate;
SetCommunityAccessGate;
JoinedGatedGroupOrCommunity;
PinnedChat;
SetPin;
OwnGroupWithOneDiamondMember;
OwnGroupWithTenDiamondMembers;
OwnGroupWithOneHundredDiamondMembers;
OwnGroupWithOneThousandDiamondMembers;
DirectChats5;
DirectChats10;
DirectChats20;
Referred1stUser;
Referred3rdUser;
Referred10thUser;
Expand Down
41 changes: 1 addition & 40 deletions backend/libraries/types/src/achievement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,8 @@ pub enum Achievement {
SwappedFromWallet,
PinnedChat,

JoinedGatedGroupOrCommunity,
PinnedMessage,
SetGroupAccessGate,
SetCommunityAccessGate,
AppointedGroupModerator,
AppointedGroupAdmin,
AppointedGroupOwner,
ChosenAsGroupModerator,
ChosenAsGroupAdmin,
ChosenAsGroupOwner,
// Not implemented yet
ChangedTheme,
SuggestedTranslation,
TranslationAccepted,
EnabledDisappearingMessages,
OwnGroupWithOneDiamondMember,
OwnGroupWithTenDiamondMembers,
OwnGroupWithOneHundredDiamondMembers,
OwnGroupWithOneThousandDiamondMembers,
DirectChats5,
DirectChats10,
DirectChats20,
}

impl Achievement {
Expand Down Expand Up @@ -125,35 +106,15 @@ impl Achievement {
Achievement::SentReminder => 1500,
Achievement::StartedCall => 2000,
Achievement::JoinedCall => 3000,
Achievement::EnabledDisappearingMessages => 1000,
Achievement::RepliedInThread => 1500,
Achievement::QuoteReplied => 1500,
Achievement::EditedMessage => 1000,
Achievement::DeletedMessage => 700,
Achievement::SetPin => 1500,
Achievement::ForwardedMessage => 2000,
Achievement::PinnedMessage => 2000,
Achievement::FavouritedChat => 2000,
Achievement::PinnedChat => 2000,
Achievement::FollowedThread => 3000,
Achievement::SuggestedTranslation => 5000,
Achievement::TranslationAccepted => 10000,
Achievement::AppointedGroupModerator => 2000,
Achievement::AppointedGroupAdmin => 3000,
Achievement::AppointedGroupOwner => 5000,
Achievement::ChosenAsGroupModerator => 3000,
Achievement::ChosenAsGroupAdmin => 4000,
Achievement::ChosenAsGroupOwner => 5000,
Achievement::SetGroupAccessGate => 2000,
Achievement::SetCommunityAccessGate => 2000,
Achievement::JoinedGatedGroupOrCommunity => 3000,
Achievement::OwnGroupWithOneDiamondMember => 3000,
Achievement::OwnGroupWithTenDiamondMembers => 15000,
Achievement::OwnGroupWithOneHundredDiamondMembers => 50000,
Achievement::OwnGroupWithOneThousandDiamondMembers => 200000,
Achievement::DirectChats5 => 2000,
Achievement::DirectChats10 => 4000,
Achievement::DirectChats20 => 10000,
Achievement::Referred1stUser => 5000,
Achievement::Referred3rdUser => 10000,
Achievement::Referred10thUser => 20000,
Expand Down
19 changes: 0 additions & 19 deletions frontend/app/src/i18n/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,20 +663,10 @@
"lastOnline": "上次在线 {duration} 前",
"learnToEarn": {
"accepted_swap_offer": "接受掉期报价",
"appointed_as_group_admin": "指定管理员群组/频道",
"appointed_as_group_mod": "被任命为群组/频道的版主",
"appointed_as_group_owner": "被任命为群组/频道的所有者",
"appointed_group_admin": "指定群组/频道管理员",
"appointed_group_mod": "指定群组/频道管理员",
"appointed_group_owner": "指定群组/频道所有者",
"changed_theme": "更改主题",
"deleted_message": "删除邮件",
"direct_chat_5": "进行 5 次直接聊天",
"direct_chats_10": "进行 10 次直接聊天",
"direct_chats_20": "进行 20 次直接聊天",
"done": "完毕",
"edited_message": "编辑消息",
"enabled_disappearing_messages": "启用“消失的消息”",
"external": "待办事项(外部)",
"externalInfo": "外部成就由第三方定义。只需点击链接并按照他们的指示即可获得 CHIT 奖励。",
"favourited_chat": "将聊天标记为收藏",
Expand All @@ -689,13 +679,8 @@
"joined_group": "加入群组",
"nothingDone": "你还有很多工作要做!",
"nothingLeftToDo": "放松!你没什么可做的了",
"owned_group_with_1_diamond_member": "拥有一个拥有 1 名经过验证的成员的群组/社区",
"owned_group_with_10_diamond_members": "拥有一个拥有 10 名经过验证的成员的群组/社区",
"owned_group_with_100_diamond_members": "拥有一个拥有 100 名经过验证的成员的群组/社区",
"owned_group_with_1000_diamond_members": "拥有一个拥有 1000 名经过验证的成员的群组/社区",
"percentageComplete": "{perc}% 完成",
"pinned_chat": "将聊天固定到列表顶部",
"pinned_message": "置顶消息",
"proved_unique_personhood": "证明你独特的人性",
"quote_replied": "引用回复消息",
"reacted_to_message": "对消息做出反应",
Expand Down Expand Up @@ -723,10 +708,8 @@
"sent_video": "发送视频",
"set_avatar": "上传您的个人资料头像",
"set_bio": "更新您的个人简介",
"set_community_access_gate": "设置社区出入口",
"set_community_display_name": "设置社区显示名称",
"set_display_name": "更新您的显示名称",
"set_group_access_gate": "设置群组/频道访问门限",
"set_pin": "在你的钱包上设置密码",
"showChitPopup": "通知我我的成就",
"started_call": "开始视频通话",
Expand All @@ -736,12 +719,10 @@
"streak_30": "实现 30 天连续记录",
"streak_365": "实现 365 天连续",
"streak_7": "实现 7 天连续",
"suggested_translation": "建议翻译",
"swapped_from_wallet": "从钱包中兑换代币",
"tipped_message": "留言提示",
"title": "成就",
"todo": "待办事项",
"translation_accepted": "接受翻译",
"upgrade_to_gold_diamond": "升级为终身钻石会员",
"upgraded_to_diamond": "升级为钻石会员",
"voted_on_poll": "投票"
Expand Down
19 changes: 0 additions & 19 deletions frontend/app/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,20 +663,10 @@
"lastOnline": "Zuletzt online vor {duration}",
"learnToEarn": {
"accepted_swap_offer": "Ein Tauschangebot annehmen",
"appointed_as_group_admin": "Eine Administratorgruppe/einen Administratorkanal ernennen",
"appointed_as_group_mod": "Zum Moderator einer Gruppe/eines Kanals ernannt werden",
"appointed_as_group_owner": "Zum Eigentümer einer Gruppe/eines Kanals ernannt werden",
"appointed_group_admin": "Einen Gruppen-/Kanaladministrator ernennen",
"appointed_group_mod": "Einen Gruppen-/Kanalmoderator ernennen",
"appointed_group_owner": "Einen Gruppen-/Kanalbesitzer ernennen",
"changed_theme": "Ändern des Designs",
"deleted_message": "Löschen einer Nachricht",
"direct_chat_5": "Führen Sie 5 direkte Chats",
"direct_chats_10": "Führen Sie 10 direkte Chats",
"direct_chats_20": "Führen Sie 20 direkte Chats",
"done": "Erledigt",
"edited_message": "Bearbeiten einer Nachricht",
"enabled_disappearing_messages": "Verschwindende Nachrichten aktivieren",
"external": "Zu erledigen (extern)",
"externalInfo": "Externe Erfolge werden von Dritten definiert. Klicken Sie einfach auf den Link und folgen Sie deren Anweisungen, um eine CHIT-Belohnung zu erhalten.",
"favourited_chat": "Einen Chat als Favorit markieren",
Expand All @@ -689,13 +679,8 @@
"joined_group": "Einer Gruppe beitreten",
"nothingDone": "Es liegt noch viel Arbeit vor Ihnen!",
"nothingLeftToDo": "Entspannen Sie sich! Sie haben nichts mehr zu tun",
"owned_group_with_1_diamond_member": "Besitzen Sie eine Gruppe/Community mit 1 verifiziertem Mitglied",
"owned_group_with_10_diamond_members": "Besitz einer Gruppe/Community mit 10 verifizierten Mitgliedern",
"owned_group_with_100_diamond_members": "Besitzte eine Gruppe/Community mit 100 verifizierten Mitgliedern",
"owned_group_with_1000_diamond_members": "Besitz einer Gruppe/Community mit 1000 verifizierten Mitgliedern",
"percentageComplete": "{perc} % abgeschlossen",
"pinned_chat": "Einen Chat oben auf der Liste anheften",
"pinned_message": "Eine Nachricht anheften",
"proved_unique_personhood": "Beweise deine einzigartige Menschlichkeit",
"quote_replied": "Antwort auf eine Nachricht zitieren",
"reacted_to_message": "Auf eine Nachricht reagieren",
Expand Down Expand Up @@ -723,10 +708,8 @@
"sent_video": "Senden Sie ein Video",
"set_avatar": "Laden Sie Ihren Profil-Avatar hoch",
"set_bio": "Aktualisieren Sie Ihre Profilbiografie",
"set_community_access_gate": "Richten Sie ein Gemeinschaftszugangstor ein",
"set_community_display_name": "Festlegen eines Community-Anzeigenamens",
"set_display_name": "Aktualisieren Sie Ihren Anzeigenamen",
"set_group_access_gate": "Einrichten eines Gruppen-/Kanalzugriffstors",
"set_pin": "Legen Sie eine PIN-Nummer für Ihr Portemonnaie fest",
"showChitPopup": "Benachrichtigen Sie mich über meine Erfolge",
"started_call": "Starten eines Videoanrufs",
Expand All @@ -736,12 +719,10 @@
"streak_30": "Erreiche eine 30-Tage-Serie",
"streak_365": "Erreiche eine 365-Tage-Serie",
"streak_7": "Erreiche eine 7-Tage-Serie",
"suggested_translation": "Übersetzung vorschlagen",
"swapped_from_wallet": "Tauschen Sie einen Token aus der Wallet",
"tipped_message": "Eine Nachricht senden",
"title": "Erfolge",
"todo": "Zu tun",
"translation_accepted": "Übersetzung anerkennen lassen",
"upgrade_to_gold_diamond": "Upgrade auf Lifetime Diamond-Mitgliedschaft",
"upgraded_to_diamond": "Upgrade zur Diamond-Mitgliedschaft",
"voted_on_poll": "Bei einer Umfrage abstimmen"
Expand Down
19 changes: 0 additions & 19 deletions frontend/app/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,20 +663,10 @@
"lastOnline": "Last online {duration} ago",
"learnToEarn": {
"accepted_swap_offer": "Accept a swap offer",
"appointed_as_group_admin": "Appoint an administrator group/channel",
"appointed_as_group_mod": "Be appointed a moderator of a group/channel",
"appointed_as_group_owner": "Be appointed an owner of a group/channel",
"appointed_group_admin": "Appoint a group/channel administrator",
"appointed_group_mod": "Appoint a group/channel moderator",
"appointed_group_owner": "Appoint a group/channel owner",
"changed_theme": "Change the theme",
"deleted_message": "Delete a message",
"direct_chat_5": "Have 5 direct chats",
"direct_chats_10": "Have 10 direct chats",
"direct_chats_20": "Have 20 direct chats",
"done": "Done",
"edited_message": "Edit a message",
"enabled_disappearing_messages": "Enable disappearing messages",
"external": "To do (external)",
"externalInfo": "External achievements are defined by third parties. Just click the link and follow their instructions to recieve a CHIT reward.",
"favourited_chat": "Mark a chat as a favourite",
Expand All @@ -689,13 +679,8 @@
"joined_group": "Join a group",
"nothingDone": "You still have a lot of work to do!",
"nothingLeftToDo": "Relax! You have nothing left to do",
"owned_group_with_1_diamond_member": "Own a group/community with 1 verified member",
"owned_group_with_10_diamond_members": "Owned a group/community with 10 verified members",
"owned_group_with_100_diamond_members": "Owned a group/community with 100 verified members",
"owned_group_with_1000_diamond_members": "Owned a group/community with 1000 verified members",
"percentageComplete": "{perc}% Complete",
"pinned_chat": "Pin a chat to the top of the list",
"pinned_message": "Pin a message",
"proved_unique_personhood": "Prove your unique humanity",
"quote_replied": "Quote reply to a message",
"reacted_to_message": "React to a message",
Expand Down Expand Up @@ -723,10 +708,8 @@
"sent_video": "Send a video",
"set_avatar": "Upload your profile avatar",
"set_bio": "Update your profile bio",
"set_community_access_gate": "Set a community access gate",
"set_community_display_name": "Set a community display name",
"set_display_name": "Update your display name",
"set_group_access_gate": "Set a group/channel access gate",
"set_pin": "Set a pin number on your wallet",
"showChitPopup": "Notify me of my achievements",
"started_call": "Start a video call",
Expand All @@ -736,12 +719,10 @@
"streak_30": "Achieve a 30 day streak",
"streak_365": "Achieve a 365 day streak",
"streak_7": "Achieve a 7 day streak",
"suggested_translation": "Suggest a translation",
"swapped_from_wallet": "Swap a token from the wallet",
"tipped_message": "Tip a message",
"title": "Achievements",
"todo": "To do",
"translation_accepted": "Have a translation accepted",
"upgrade_to_gold_diamond": "Upgrade to Lifetime Diamond membership",
"upgraded_to_diamond": "Upgrade to Diamond membership",
"voted_on_poll": "Vote on a poll"
Expand Down
19 changes: 0 additions & 19 deletions frontend/app/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,20 +663,10 @@
"lastOnline": "Ultima conexión hace {duration}",
"learnToEarn": {
"accepted_swap_offer": "Aceptar una oferta de intercambio",
"appointed_as_group_admin": "Designar un grupo/canal administrador",
"appointed_as_group_mod": "Ser designado moderador de un grupo/canal",
"appointed_as_group_owner": "Ser designado propietario de un grupo/canal",
"appointed_group_admin": "Designar un administrador de grupo/canal",
"appointed_group_mod": "Designar un moderador de grupo/canal",
"appointed_group_owner": "Designar un propietario de grupo/canal",
"changed_theme": "Cambiar el tema",
"deleted_message": "Eliminar un mensaje",
"direct_chat_5": "Tener 5 chats directos",
"direct_chats_10": "Tener 10 chats directos",
"direct_chats_20": "Tener 20 chats directos",
"done": "Hecho",
"edited_message": "Editar un mensaje",
"enabled_disappearing_messages": "Habilitar mensajes que desaparecen",
"external": "Para hacer (externo)",
"externalInfo": "Los logros externos están definidos por terceros. Simplemente haga clic en el enlace y siga sus instrucciones para recibir una recompensa CHIT.",
"favourited_chat": "Marcar un chat como favorito",
Expand All @@ -689,13 +679,8 @@
"joined_group": "Únete a un grupo",
"nothingDone": "¡Aún tienes mucho trabajo por hacer!",
"nothingLeftToDo": "Relájate, ya no te queda nada por hacer.",
"owned_group_with_1_diamond_member": "Sea propietario de un grupo/comunidad con 1 miembro verificado",
"owned_group_with_10_diamond_members": "Era propietario de un grupo/comunidad con 10 miembros verificados",
"owned_group_with_100_diamond_members": "Era propietario de un grupo/comunidad con 100 miembros verificados.",
"owned_group_with_1000_diamond_members": "Poseía un grupo/comunidad con 1000 miembros verificados",
"percentageComplete": "{perc} % completado",
"pinned_chat": "Fijar un chat en la parte superior de la lista",
"pinned_message": "Fijar un mensaje",
"proved_unique_personhood": "Demuestra tu humanidad única",
"quote_replied": "Citar respuesta a un mensaje",
"reacted_to_message": "Reaccionar a un mensaje",
Expand Down Expand Up @@ -723,10 +708,8 @@
"sent_video": "Envió su primer vídeo",
"set_avatar": "Subió el avatar de su perfil",
"set_bio": "Actualizó la biografía de su perfil",
"set_community_access_gate": "Establecer una puerta de acceso a la comunidad",
"set_community_display_name": "Establecer un nombre para mostrar en la comunidad",
"set_display_name": "Actualiza tu nombre para mostrar",
"set_group_access_gate": "Establecer una puerta de acceso a un grupo/canal",
"set_pin": "Establezca un número PIN en su billetera",
"showChitPopup": "Notificarme de mis logros",
"started_call": "Iniciar una videollamada",
Expand All @@ -736,12 +719,10 @@
"streak_30": "Conseguir una racha de 30 días",
"streak_365": "Consiga una racha de 365 días",
"streak_7": "Conseguir una racha de 7 días",
"suggested_translation": "Sugerir una traducción",
"swapped_from_wallet": "Intercambiar un token de la billetera",
"tipped_message": "Dar propina a un mensaje",
"title": "Logros",
"todo": "Hacer",
"translation_accepted": "¿Que me acepten una traducción?",
"upgrade_to_gold_diamond": "Actualice a membresía Diamante de por vida",
"upgraded_to_diamond": "Actualizar a membresía Diamante",
"voted_on_poll": "Votar en una encuesta"
Expand Down
Loading

0 comments on commit 4bbc628

Please sign in to comment.