feat(client): delete generic success message in the alert (#49780)

* change the flash message in profileui endpoint

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Muhammed Mustafa
2023-05-08 17:58:06 +03:00
committed by GitHub
parent 13334014c9
commit 0d98f28b9e
5 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ describe('settingRoutes', () => {
expect(response?.statusCode).toEqual(200);
expect(response?.body).toEqual({
message: 'flash.updated-preferences',
message: 'flash.privacy-updated',
type: 'success'
});
expect(user?.profileUI).toEqual(profileUI);
+2 -2
View File
@@ -30,7 +30,7 @@ export const settingRoutes: FastifyPluginCallbackTypebox = (
}),
response: {
200: Type.Object({
message: Type.Literal('flash.updated-preferences'),
message: Type.Literal('flash.privacy-updated'),
type: Type.Literal('success')
}),
500: Type.Object({
@@ -61,7 +61,7 @@ export const settingRoutes: FastifyPluginCallbackTypebox = (
});
return {
message: 'flash.updated-preferences',
message: 'flash.privacy-updated',
type: 'success'
} as const;
} catch (err) {
@@ -594,7 +594,6 @@
"not-authorized": "You are not authorized to continue on this route",
"could-not-find": "We couldn't find what you were looking for. Please check and try again",
"wrong-updating": "Something went wrong updating your account. Please check and try again",
"updated-preferences": "We have updated your preferences",
"updated-about-me": "We have updated your personal information",
"updated-socials": "We have updated your social links",
"updated-sound": "We have updated your sound settings",
@@ -31,7 +31,6 @@ export enum FlashMessages {
StartProjectErr = 'flash.start-project-err',
TimelinePrivate = 'flash.timeline-private',
TokenDeleted = 'flash.token-deleted',
UpdatedPreferences = 'flash.updated-preferences',
UpdatedAboutMe = 'flash.updated-about-me',
UpdatedSocials = 'flash.updated-socials',
UpdatedSound = 'flash.updated-sound',
-1
View File
@@ -46,7 +46,6 @@ const toneUrls = {
[FlashMessages.StartProjectErr]: TRY_AGAIN,
[FlashMessages.TimelinePrivate]: TRY_AGAIN,
[FlashMessages.TokenDeleted]: CHAL_COMP,
[FlashMessages.UpdatedPreferences]: CHAL_COMP,
[FlashMessages.UpdatedAboutMe]: CHAL_COMP,
[FlashMessages.UpdatedKeyboardShortCuts]: CHAL_COMP,
[FlashMessages.UpdatedPortfolio]: CHAL_COMP,