diff --git a/backend/src/common/services/remotion/constants/constants.ts b/backend/src/common/services/remotion/constants/constants.ts index 521dbfa94..ed24a7ca1 100644 --- a/backend/src/common/services/remotion/constants/constants.ts +++ b/backend/src/common/services/remotion/constants/constants.ts @@ -1,3 +1,5 @@ export { CODEC } from './codec.constant.js'; export { COMPOSITION_ID } from './composition-id.constant.js'; +export { DOWNLOAD_BEHAVIOR } from './download-behavior.constant.js'; +export { DOWNLOADED_FILE_NAME } from './downloaded-file-name.constant.js'; export { REQUEST_DELAY } from './request-delay.constant.js'; diff --git a/backend/src/common/services/remotion/constants/download-behavior.constant.ts b/backend/src/common/services/remotion/constants/download-behavior.constant.ts new file mode 100644 index 000000000..918e023a3 --- /dev/null +++ b/backend/src/common/services/remotion/constants/download-behavior.constant.ts @@ -0,0 +1,3 @@ +const DOWNLOAD_BEHAVIOR = 'download'; + +export { DOWNLOAD_BEHAVIOR }; diff --git a/backend/src/common/services/remotion/constants/downloaded-file-name.constant.ts b/backend/src/common/services/remotion/constants/downloaded-file-name.constant.ts new file mode 100644 index 000000000..78f4a343a --- /dev/null +++ b/backend/src/common/services/remotion/constants/downloaded-file-name.constant.ts @@ -0,0 +1,3 @@ +const DOWNLOADED_FILE_NAME = 'download.mp4'; + +export { DOWNLOADED_FILE_NAME }; diff --git a/backend/src/common/services/remotion/remotion.service.ts b/backend/src/common/services/remotion/remotion.service.ts index 2a264362d..f600b5405 100644 --- a/backend/src/common/services/remotion/remotion.service.ts +++ b/backend/src/common/services/remotion/remotion.service.ts @@ -8,7 +8,13 @@ import { HTTPCode, HttpError } from 'shared'; import { RenderVideoErrorMessage } from '~/bundles/avatar-videos/enums/enums.js'; import { type BaseConfig } from '~/common/config/base-config.package.js'; -import { CODEC, COMPOSITION_ID, REQUEST_DELAY } from './constants/constants.js'; +import { + CODEC, + COMPOSITION_ID, + DOWNLOAD_BEHAVIOR, + DOWNLOADED_FILE_NAME, + REQUEST_DELAY, +} from './constants/constants.js'; import { type InputProps as InputProperties } from './type/types.js'; class RemotionService { @@ -25,6 +31,10 @@ class RemotionService { inputProperties: InputProperties, ): Promise { const { renderId } = await renderMediaOnLambda({ + downloadBehavior: { + type: DOWNLOAD_BEHAVIOR, + fileName: DOWNLOADED_FILE_NAME, + }, region: this.config.ENV.AWS.S3.REGION as AwsRegion, functionName: this.config.ENV.REMOTION.LAMBDA_FUNCTION_NAME, composition: COMPOSITION_ID, diff --git a/frontend/src/assets/img/photo.png b/frontend/src/assets/img/photo.png deleted file mode 100644 index 42e23655f..000000000 Binary files a/frontend/src/assets/img/photo.png and /dev/null differ diff --git a/frontend/src/assets/img/placeholder.png b/frontend/src/assets/img/placeholder.png new file mode 100644 index 000000000..7aa33e654 Binary files /dev/null and b/frontend/src/assets/img/placeholder.png differ diff --git a/frontend/src/bundles/auth/components/common/components.ts b/frontend/src/bundles/auth/components/common/components.ts index 22726d9a9..ecda37021 100644 --- a/frontend/src/bundles/auth/components/common/components.ts +++ b/frontend/src/bundles/auth/components/common/components.ts @@ -1,3 +1,2 @@ -export { FormError } from './form-error/form-error.js'; export { FormHeader } from './form-header/form-header.js'; export { PasswordInput } from './password-input/password-input.js'; diff --git a/frontend/src/bundles/auth/components/common/form-error/form-error.tsx b/frontend/src/bundles/auth/components/common/form-error/form-error.tsx deleted file mode 100644 index 965799129..000000000 --- a/frontend/src/bundles/auth/components/common/form-error/form-error.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { - FormControl, - FormErrorMessage, -} from '~/bundles/common/components/components.js'; - -type Properties = { - isVisible: boolean; - message: string; -}; - -const FormError: React.FC = ({ isVisible, message }) => { - return ( - - {message} - - ); -}; - -export { FormError }; diff --git a/frontend/src/bundles/auth/components/sign-in-form/sign-in-form.tsx b/frontend/src/bundles/auth/components/sign-in-form/sign-in-form.tsx index 78ca1cc6d..5ee59c091 100644 --- a/frontend/src/bundles/auth/components/sign-in-form/sign-in-form.tsx +++ b/frontend/src/bundles/auth/components/sign-in-form/sign-in-form.tsx @@ -1,5 +1,4 @@ import { - FormError, FormHeader, PasswordInput, } from '~/bundles/auth/components/common/components.js'; @@ -12,16 +11,8 @@ import { VStack, } from '~/bundles/common/components/components.js'; import { EMPTY_VALUE } from '~/bundles/common/constants/constants.js'; -import { - AppRoute, - DataStatus, - UserValidationMessage, -} from '~/bundles/common/enums/enums.js'; -import { - useAppForm, - useAppSelector, - useMemo, -} from '~/bundles/common/hooks/hooks.js'; +import { AppRoute } from '~/bundles/common/enums/enums.js'; +import { useAppForm, useMemo } from '~/bundles/common/hooks/hooks.js'; import { type UserSignInRequestDto, userSignInValidationSchema, @@ -34,9 +25,6 @@ type Properties = { }; const SignInForm: React.FC = ({ onSubmit }) => { - const { dataStatus } = useAppSelector(({ auth }) => ({ - dataStatus: auth.dataStatus, - })); const form = useAppForm({ initialValues: DEFAULT_SIGN_IN_PAYLOAD, validationSchema: userSignInValidationSchema, @@ -82,10 +70,6 @@ const SignInForm: React.FC = ({ onSubmit }) => { hasError={Boolean(errors.password)} required /> -