aadeshkulkarni / sanchay-ai-frontend

3 stars 4 forks source link

Add validation to generate video #4 #7

Open theprogrammerinyou opened 11 months ago

theprogrammerinyou commented 11 months ago

This PR contains changes listed below

  1. Add react-toastify to show toast messages when validation fails.
  2. Add validation for project name, video URL, and one of the subtitles, transcoding and thumbnail to successfully generate video thumbnail or transcoding or subtitles.
  3. Create helper file to show toast.
  4. Added * beside project name and video URL, indicating these are required fields.
  5. Add required information text (* Required Information) at top of the form.

[Toast when nothing is input]

Screenshot 2024-01-02 at 20 00 33

[Toast when transcoding, subtitles, thumnail is not checked]

Screenshot 2024-01-02 at 20 01 03

[Required information text]

Screenshot 2024-01-02 at 20 01 53