Skip to content
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

Sign final keshav #74

Closed
wants to merge 5 commits into from
Closed

Sign final keshav #74

wants to merge 5 commits into from

Conversation

MasterK0927
Copy link
Collaborator

resolved the following issues:

!. Implemented the error popup, with proper error handling.
2. Implemented the inputPopup for pin input.
3. Hidden state of save button.
4. Other minor open bugs.
Screenshot from 2024-08-13 12-41-01
Screenshot from 2024-08-13 12-40-29
Screenshot from 2024-08-13 12-40-25
Screenshot from 2024-08-13 12-40-17
Screenshot from 2024-08-13 12-40-10
Screenshot from 2024-08-13 12-39-08
Screenshot from 2024-08-13 12-38-58
Screenshot from 2024-08-13 12-38-54
Screenshot from 2024-08-13 12-38-47
Screenshot from 2024-08-13 12-38-32

Screenshot from 2024-08-13 12-41-06

onClick={handleVerifyButtonClick}
as={isVerified ? StyledVerified : isVerificationFailed ? StyledNotVerified : 'button'}
<Tooltip
text="Verification failed. Please check the document."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not showing any new information here. the tooltip should convey extra information about verification failure like there are no signatures on this document or the attached signature is not valid, etc.

pdfFile={pdfFile}
onClick={handleVerifyButtonClick}
as={isVerified ? StyledVerified : isVerificationFailed ? StyledNotVerified : 'button'}
onMouseEnter={() => setShowVerificationTooltip(true)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to use mouse events to show/hide tooltip. we could have also used css hover properties to show hide tooltip. otherwise we would have to create so many states.

But we can go with this for now as well

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or we could move these states to the tooltip component as well. that would be easy and clean up the code

@@ -23,7 +23,7 @@
display: flex;
flex-direction: column;
gap: 10px;
height: ${p => p.selected ? '656px' : '390px'};
height: ${p => p.selected ? 'fit-content' : 'fit-content'};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are using the same property in both cases than we don't need the ternary operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants