-
Notifications
You must be signed in to change notification settings - Fork 2
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
[NEW] store checked-in cookie and show checked-in alert #278
base: dev
Are you sure you want to change the base?
Conversation
…m/informatik-mannheim/HSMA-CTT into feature/new_store_check_in_cookie
I did some testing and everything seems fine. While reviewing your code i got stuck on the CookieManager class. Not sure if i understand what you are doing there, either you lead me through this or someone with experience in Cookie managing with javax should review this file. |
@@ -0,0 +1,40 @@ | |||
.danger-color { |
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.
Am I right that this file is only used for the "still checked in message"? Then pls give it a more descriptive name such as checked-in-alert.css or so.
@@ -0,0 +1,7 @@ | |||
const checkInAlertForm = document.getElementById('check-in-alert-form') |
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 would also prefer a more descriptive name here.
flex-direction: column; | ||
border: 2px solid #22376F; | ||
border-radius: 3px; | ||
margin: 5px; |
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.
May I suggest a somewhat larger margin below the box? Currently it is somewhat close to the regular text on the page. (not sure this is the right margin attribute though)
Added a period at the end of the sentence.
Period added.
@@ -28,8 +28,17 @@ <h1 style="margin-left: 0.42em; margin-top: 0.15em"> | |||
</div> |
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.
@MorMundHS-MA I would assume that this checkout-bar div and its CSS definition in main.css can be savely removed, can't it?
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.
If I understand the implementation correctly, the cookie handler adds the attribute to any request. In that case I assume this layout template should also have the checkout button since it doesn't use the template of the dashboard/landing page.
@@ -0,0 +1,151 @@ | |||
/* |
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.
Didn't we manage cookies in a much simpler fashion before this? Can you briefly explain, why this is neccessary, pls?
@@ -0,0 +1,51 @@ | |||
/* |
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.
Why do we need an Interceptor here?
Related Issue
Proposed Changes
Additional Info
Checklist