diff --git a/habitica-images b/habitica-images index ee2883e082..109539e445 160000 --- a/habitica-images +++ b/habitica-images @@ -1 +1 @@ -Subproject commit ee2883e08260347bfe63f08b0db1d60b69199ed1 +Subproject commit 109539e445936786e183ac800c1d956e1999f2b8 diff --git a/migrations/archive/2023/20230731_naming_day.js b/migrations/archive/2023/20230731_naming_day.js index 5ac864de6d..58ccfbb728 100644 --- a/migrations/archive/2023/20230731_naming_day.js +++ b/migrations/archive/2023/20230731_naming_day.js @@ -28,6 +28,18 @@ async function updateUser (user) { if (user && user.items && user.items.gear && user.items.gear.owned && typeof user.items.gear.owned.back_special_namingDay2020 !== 'undefined') { set = { migration: MIGRATION_NAME }; + push = { + notifications: { + type: 'ITEM_RECEIVED', + data: { + icon: 'notif_namingDay_cake', + title: 'Happy Naming Day!', + text: 'To celebrate the day we became Habitica, we’ve awarded you some cake!', + destination: '/inventory/items', + }, + seen: false, + }, + }; } else if (user && user.items && user.items.gear && user.items.gear.owned && typeof user.items.gear.owned.body_special_namingDay2018 !== 'undefined') { set = { migration: MIGRATION_NAME, 'items.gear.owned.back_special_namingDay2020': true }; push = { @@ -36,7 +48,7 @@ async function updateUser (user) { data: { icon: 'notif_namingDay_back', title: 'Happy Naming Day!', - text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Tail!', + text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Tail and cake!', destination: '/inventory/equipment', }, seen: false, @@ -50,7 +62,7 @@ async function updateUser (user) { data: { icon: 'notif_namingDay_body', title: 'Happy Naming Day!', - text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Cloak!', + text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Cloak and cake!', destination: '/inventory/equipment', }, seen: false, @@ -64,7 +76,7 @@ async function updateUser (user) { data: { icon: 'notif_namingDay_head', title: 'Happy Naming Day!', - text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Helm!', + text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Helm and cake!', destination: '/inventory/equipment', }, seen: false, @@ -78,7 +90,7 @@ async function updateUser (user) { data: { icon: 'notif_namingDay_pet', title: 'Happy Naming Day!', - text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Pet!', + text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Pet and cake!', destination: '/inventory/stable', }, seen: false, @@ -92,7 +104,7 @@ async function updateUser (user) { data: { icon: 'notif_namingDay_mount', title: 'Happy Naming Day!', - text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Mount!', + text: 'To celebrate the day we became Habitica, we’ve awarded you a Royal Purple Gryphon Mount and cake!', destination: '/inventory/stable', }, seen: false, diff --git a/website/client/src/assets/css/sprites/spritesmith-main.css b/website/client/src/assets/css/sprites/spritesmith-main.css index 11be945981..f3cd9bfc28 100644 --- a/website/client/src/assets/css/sprites/spritesmith-main.css +++ b/website/client/src/assets/css/sprites/spritesmith-main.css @@ -36023,6 +36023,11 @@ width: 28px; height: 28px; } +.notif_namingDay_cake { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/notif_namingDay_cake.png'); + width: 28px; + height: 28px; +} .notif_namingDay_head { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/notif_namingDay_head.png'); width: 28px; diff --git a/website/client/src/components/userMenu/profile.vue b/website/client/src/components/userMenu/profile.vue index d228a5769b..67fc95b1dd 100644 --- a/website/client/src/components/userMenu/profile.vue +++ b/website/client/src/components/userMenu/profile.vue @@ -1,173 +1,68 @@