-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: Login Box: Show info message when page directs to login page #5531
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/18d6h6alu |
tests/helpers/flash-message.js
Outdated
@@ -0,0 +1,3 @@ | |||
import FlashObject from 'ember-cli-flash/flash/object'; | |||
|
|||
FlashObject.reopen({ init() {} }); |
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?
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.
Again, why is this needed?
app/templates/application.hbs
Outdated
|
||
<div class="flash-messages ui container"> | ||
{{#each flashMessages.queue as |flash|}} | ||
<div class="ui negative message"> |
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.
Flash message can be of any type. Not just danger/negative. Modify UI accordingly
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.
Ok
@iamareebjamal please review the changes. |
Please fix the build before asking for review and check previous reviews as well |
Can you please tell me how can I built test case file for it. |
Codecov Report
@@ Coverage Diff @@
## development #5531 +/- ##
===============================================
+ Coverage 23.45% 23.48% +0.03%
===============================================
Files 512 511 -1
Lines 5445 5454 +9
Branches 63 63
===============================================
+ Hits 1277 1281 +4
- Misses 4152 4157 +5
Partials 16 16
Continue to review full report at Codecov.
|
I didn't added that it was created automatically when I installed ember-cli-flashmessages |
Delete it and see if it is still working |
Yes sir It's working fine without it |
Then please delete it and add other messages |
tests/test-helper.js
Outdated
@@ -3,6 +3,8 @@ import QUnit from 'qunit'; | |||
import config from 'open-event-frontend/config/environment'; | |||
import { setApplication } from '@ember/test-helpers'; | |||
import { start } from 'ember-qunit'; | |||
import './helpers/flash-message'; |
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?
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.
sorry sir forgot to delete that line.
tests/test-helper.js
Outdated
@@ -3,6 +3,7 @@ import QUnit from 'qunit'; | |||
import config from 'open-event-frontend/config/environment'; | |||
import { setApplication } from '@ember/test-helpers'; | |||
import { start } from 'ember-qunit'; | |||
|
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
No |
Sir I didn't find any other case which requires any type of flashMessage. |
There are several actions which require you to login first |
@codedsun @daretobedifferent18 Please test and check if anything is missing |
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.
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.
icon not needed |
Please do not use red bold danger message for this kind of notification. |
@daretobedifferent18 @iamareebjamal @codedsun Is this one good enough sir? |
Please update screenshots. And @daretobedifferent18 @sachinchauhan2889 Please test |
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.
hey, you are working nice.
I think some more changes needed.
flash messages inside modal is not looking great. there are two nested semantic ui messages both of green color. this is not looking great.
i think your previous flash message looks nice then this. look at this
@iamareebjamal sir, compare both modal. i think prevoius one was better.
i think @daretobedifferent18 suggest you to add margin around flash message in modal. but you created two nested semantic ui messages.
if you want to add margin around flash message you can create a class in app/styles folder and use that class in outer most div of flash message.
tests/test-helper.js
Outdated
@@ -3,6 +3,7 @@ import QUnit from 'qunit'; | |||
import config from 'open-event-frontend/config/environment'; | |||
import { setApplication } from '@ember/test-helpers'; | |||
import { start } from 'ember-qunit'; | |||
|
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.
please remove this blank line.
<div class="flash-messages ui container"> | ||
{{#each flashMessages.queue as |flash|}} | ||
<div class="ui {{flash.type}} message"> | ||
<div class="header"> |
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.
@mariobehling sir, suggest not to use bold red color text. you can remove bold text my removing header class.
header class bolded text of semantic ui message.
you can remove header class to get non-bolded text.
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.
ok sir I will remove it.
<div class="flash-messages ui container mb-5"> | ||
{{#each flashMessages.queue as |flash|}} | ||
<div class="ui {{flash.type}} message"> | ||
<div class="header ui inline {{flash.type}} large message"> |
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.
no need to nested semantic ui messages.
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.
ok sir
@@ -1,4 +1,13 @@ | |||
<div class="ui stackable {{unless this.noSocial 'three' 'one'}} column doubling centered grid"> |
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.
Add class mt-4
here
@@ -1,3 +1,12 @@ | |||
<div class="flash-messages ui container mb-5"> |
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.
remove ui container mb-5
and add m-2
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.
and revert the changes as asked by @sachinchauhan2889 about nesting.
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 nice
<div class="ui {{flash.type}} message"> | ||
<div class="header ui inline {{flash.type}} large message"> | ||
<div class="ui {{flash.type}} message"> | ||
<div class="header"> |
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.
please remove header class from here also.
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.
ok sir.
Pls update the final screenshots |
done sir |
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.
great work @Draco9421 .
Changes looks nice to me.
@iamareebjamal sir, this PR is ready for your review.
thank you for merging it |
Fixes #5456
Short description of what this resolves:
Changes proposed in this pull request:
Checklist
development
branch.