Skip to content

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

Merged
merged 29 commits into from
Nov 27, 2020
Merged

feat: Login Box: Show info message when page directs to login page #5531

merged 29 commits into from
Nov 27, 2020

Conversation

Draco9421
Copy link
Contributor

@Draco9421 Draco9421 commented Nov 8, 2020

add speaker
Login
order

Fixes #5456

Short description of what this resolves:

Changes proposed in this pull request:

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Nov 8, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/18d6h6alu
✅ Preview: https://open-event-frontend-git-development.eventyay.vercel.app

@@ -0,0 +1,3 @@
import FlashObject from 'ember-cli-flash/flash/object';

FlashObject.reopen({ init() {} });
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Member

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?


<div class="flash-messages ui container">
{{#each flashMessages.queue as |flash|}}
<div class="ui negative message">
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

@Draco9421
Copy link
Contributor Author

@iamareebjamal please review the changes.

@iamareebjamal
Copy link
Member

Please fix the build before asking for review and check previous reviews as well

@Draco9421
Copy link
Contributor Author

Can you please tell me how can I built test case file for it.

@codecov
Copy link

codecov bot commented Nov 17, 2020

Codecov Report

Merging #5531 (164d846) into development (91fb290) will increase coverage by 0.03%.
The diff coverage is 60.00%.

Impacted file tree graph

@@               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              
Impacted Files Coverage Δ
app/components/public/call-for-speakers.js 0.00% <0.00%> (ø)
app/controllers/public/index.js 6.25% <0.00%> (-0.10%) ⬇️
app/routes/create.js 100.00% <100.00%> (ø)
app/helpers/general-date.js 66.66% <0.00%> (-33.34%) ⬇️
app/helpers/header-date.js

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91fb290...164d846. Read the comment docs.

@iamareebjamal
Copy link
Member

@Draco9421
Copy link
Contributor Author

https://github.com/fossasia/open-event-frontend/pull/5531/files#r519491485

I didn't added that it was created automatically when I installed ember-cli-flashmessages

@iamareebjamal
Copy link
Member

Delete it and see if it is still working

@Draco9421
Copy link
Contributor Author

Delete it and see if it is still working

Yes sir It's working fine without it

@iamareebjamal
Copy link
Member

Then please delete it and add other messages

@@ -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';
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor Author

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.

@@ -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';

Copy link
Member

Choose a reason for hiding this comment

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

Why

@Draco9421
Copy link
Contributor Author

Draco9421 commented Nov 17, 2020

Screenshot from 2020-11-17 19-31-20
Sir there is already a message which is shown when we verify our email address. So should I do any changes on it or not.

@iamareebjamal
Copy link
Member

No

@Draco9421
Copy link
Contributor Author

Sir I didn't find any other case which requires any type of flashMessage.

@iamareebjamal
Copy link
Member

There are several actions which require you to login first

@iamareebjamal
Copy link
Member

@codedsun @daretobedifferent18 Please test and check if anything is missing

Copy link
Member

@divyamtayal divyamtayal left a comment

Choose a reason for hiding this comment

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

Screenshot from 2020-11-25 20-20-29
Please change the styling for this flash box, it does not look good here (either add margin across the message) whatever feels good.

Change at

  • Add Speaker
  • Order Tickets

Copy link
Member

@divyamtayal divyamtayal left a comment

Choose a reason for hiding this comment

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

Screenshot from 2020-11-25 22-32-24

Screenshot from 2020-11-25 22-33-36
If possible pls add the info icon as above. so that it matches the styling.

@iamareebjamal
Copy link
Member

icon not needed

@mariobehling
Copy link
Member

Please do not use red bold danger message for this kind of notification.

@Draco9421
Copy link
Contributor Author

Draco9421 commented Nov 25, 2020

Please change the styling for this flash box, it does not look good here (either add margin across the message) whatever feels good.

Screenshot from 2020-11-26 00-43-34

@daretobedifferent18 @iamareebjamal @codedsun Is this one good enough sir?

@iamareebjamal
Copy link
Member

Please update screenshots. And @daretobedifferent18 @sachinchauhan2889 Please test

Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 left a comment

Choose a reason for hiding this comment

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

screenshots
modal2

modal3

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

your-previous-modal
modal

@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.

@@ -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';

Copy link
Contributor

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">
Copy link
Contributor

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.

Copy link
Contributor Author

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">
Copy link
Contributor

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.

Copy link
Contributor Author

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">
Copy link
Member

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">
Copy link
Member

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

Copy link
Member

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.

Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 left a 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">
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok sir.

@divyamtayal
Copy link
Member

Pls update the final screenshots

@Draco9421
Copy link
Contributor Author

Pls update the final screenshots

done sir

Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 left a 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.

@iamareebjamal iamareebjamal changed the title Login Box: Show info message when page directs to login page feat: Login Box: Show info message when page directs to login page Nov 27, 2020
@auto-label auto-label bot added the feature label Nov 27, 2020
@iamareebjamal iamareebjamal merged commit 1433dac into fossasia:development Nov 27, 2020
@Draco9421
Copy link
Contributor Author

thank you for merging it

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

Successfully merging this pull request may close these issues.

Login Box: Show info message when page directs to login page
5 participants