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

Fixes #30 UI addition for signup and login modal #55

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vanamraghu
Copy link
Collaborator

@vanamraghu vanamraghu commented Oct 3, 2024

  1. KlinicAuthform that handles both login & signUp modal
  2. KlinicAuthContainer that has tabs to switch b/w login and signup and render the login/signup form
  3. Added clsx in package json and installed to handle multiple classes

What type of PR is this? (check all applicable)

  • Feature

Description

Addition of login button in header so that when clicked it should display the modal and when close button is clicked it closes the modal
Addition of Signup and Login modal to handle sign up and login process,
Form is added that can be reused that has Email and password

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

  1. Testing is done by adding Header that would render the login button

CleanShot 2024-10-16 at 11 32 10

  1. Clicking on Login would display below form

CleanShot 2024-10-16 at 11 32 48

  1. By default signup is highlighted, when login is clicked it would show login form

CleanShot 2024-10-16 at 11 33 31

  1. Closing the button would close the modal or clicking anywhere outside the modal would close the modal

1. KlinicAuthform that handles both login & signUp modal
2. KlinicAuthContainer that has tabs to switch b/w login and signup and render the login/signup form
3. Added clsx in package json and installed to handle multiple classes
@vanamraghu vanamraghu requested a review from rt4914 October 3, 2024 12:39
@vanamraghu vanamraghu linked an issue Oct 3, 2024 that may be closed by this pull request
Copy link
Owner

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@vanamraghu I have created this video which should help you understand how we should think about creating scalable solutions.

https://www.loom.com/share/0ee4064f30ac49e3afe1cc2ae9175c89?sid=1f947cac-e84d-435c-a05c-bc2bd456883d

@rt4914 rt4914 assigned vanamraghu and unassigned rt4914 Oct 6, 2024
…nto 30-feature-request-ui-add-loginsignup-modal
1. KlinicAuthForm renamed to AuthForm that displays the form for login and sign up
2. Modal component created to display the login and sign up form and also state is handled to display modal when close button is clicked or anywhere in the page
3. KlinicAuthContainer is removed and renamed to Modal component
4. Button component modified so that first logo can be displayed following the button text (earlier it was text followed by children) now children is displayed followed by button text
5. Header component is created to display the LogIn button so that when clicked modal and related forms is displayed
1. Removed clsx and making use of classNames to handle display of conditionals for tailwind
…ignup-modal' into 30-feature-request-ui-add-loginsignup-modal

# Conflicts:
#	package-lock.json
@vanamraghu vanamraghu assigned rt4914 and unassigned vanamraghu Oct 16, 2024
@vanamraghu vanamraghu requested a review from rt4914 October 16, 2024 06:17
@rt4914 rt4914 assigned vanamraghu and unassigned rt4914 Oct 22, 2024
@rt4914
Copy link
Owner

rt4914 commented Oct 22, 2024

Unassigned myself as this PR is not ready for the review.

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

Successfully merging this pull request may close these issues.

[Feature Request]: UI - Add Login/Signup modal
2 participants