-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(appointments): improve video upload UX with Upload Wizard #737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for handling this! I will give a closer look shortly! For now, build is failing:
Failed to compile.
./src/app/upload/page.tsx:47:27
Type error: Type '{ apptId: number; }' is not assignable to type 'IntrinsicAttributes & UploadVideoFormProps'.
Property 'apptId' does not exist on type 'IntrinsicAttributes & UploadVideoFormProps'.
45 | return <p>Appointment not found.</p>;
46 | }
> 47 | return <UploadVideoForm apptId={apptIdNumber} />;
| ^
48 | }
49 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome! I have some comments about the UI above. I also see an issue described in #744 (not related to this PR though).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I run the code, video upload and blur region selection works perfectly. The UI looks amazing, Great jobs 👏
Side note, there is a glitch sometimes that it shows "Processing complete!" but the page keeps showing loading state and not redirecting back to appointment page. Could this be the problem with setTimeout
in the component?
Besides, I have some suggestions:
|
I like these ideas but I am concerned about how much time the complexity would add. Would you be willing to help? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Though, there is one issue: when you click Clear on the file upload, the file is cleared but not the preview video :D
yeah just checked this again and the image build is successful too (awesome!), only thing left for this I feel should be this ^, from what I know of the upload -> status -> review process, Ngan's suggestions would require a pretty substantial overhaul of the flow which is not really in the scope of this PR + might be too much work anyways other than that one thing though, this is pretty much ready to go imo edit: I notice if I upload, click clear, then switch to record and back, the video preview goes away so maybe you could simulate that behaviour to clear the preview if it's too hard to otherwise clear it? Just because when looking at the code it looks like the preview gets made on the file upload event fire and isn't tied to any states in the FileUploader component |
40d00d1
to
83cc8e4
Compare
Welcome to PrivacyPal! 👋
Fixes: #696
Description of the change:
This PR introduces an upload wizard to in place of the
UploadVideoForm
. The wizard follows 3 steps:Other changes include:
UploadVideoForm
component to be more modularMotivation for the change:
The biggest feedback received during peer testing was how hard the record button is to find. This seeks to make that much more clear and also allows the user to understand the video upload process better.
Try it yourself:
Run the app then upload a video to an appointment.
:fish-cake: