Skip to content

Conversation

Haider8
Copy link
Contributor

@Haider8 Haider8 commented Jul 25, 2020

Fixes #4587

Short description of what this resolves:

There's a proposal pop-up in cfs which we don't want anymore

Changes proposed in this pull request:

Show options below cfs

When cfs is closed:

when-cfs-closed

When cfs is open:

when-cfs-open

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 Jul 25, 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/k0hwb6nkj
✅ Preview: https://open-event-frontend-git-fork-haider8-remove-cfs-popup.eventyay.vercel.app

@vercel vercel bot temporarily deployed to Preview July 25, 2020 10:18 Inactive
@Haider8
Copy link
Contributor Author

Haider8 commented Jul 25, 2020

@iamareebjamal How to show error message when the user tries to add new session before adding his/her speaker details?

@iamareebjamal
Copy link
Member

You shouldn't show the button to add session details if speaker details haven't been added

@Haider8
Copy link
Contributor Author

Haider8 commented Jul 25, 2020

Yes but Mario was saying in the issue that

Show the option "Submit Session" also below the CfS, but if the user has not added speaker details yet, show an error message "You need to add your speaker details first before submitting a session".

@codecov
Copy link

codecov bot commented Jul 25, 2020

Codecov Report

Merging #4635 into development will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #4635      +/-   ##
===============================================
- Coverage        23.04%   23.03%   -0.01%     
===============================================
  Files              475      474       -1     
  Lines             4959     4961       +2     
  Branches             8        8              
===============================================
  Hits              1143     1143              
- Misses            3815     3817       +2     
  Partials             1        1              
Impacted Files Coverage Δ
app/components/public/call-for-speakers.js 0.00% <0.00%> (ø)

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 c66b5aa...7d84705. Read the comment docs.

@iamareebjamal
Copy link
Member

Then use this.notify

Comment on lines +16 to +19
@action
addSession() {
if (this.data.userSpeaker && this.data.userSpeaker.toArray().length) {
// speaker detail exists
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iamareebjamal Should I add this.transitionToRoute here for directing towards public.cfs.new-session route?

Copy link
Member

Choose a reason for hiding this comment

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

Yes

@Haider8
Copy link
Contributor Author

Haider8 commented Jul 27, 2020

@iamareebjamal Is there a need to change message text of LoginSignupModal? Currently it is "Please Login or Signup before you can submit a proposal.". I was thinking that it can now be "Please Login or Signup before adding your speaker details." because this modal is now opening when unauthenticated user clicks on "Add Speaker Details" button.

@Haider8 Haider8 changed the title [WIP] enh: Remove proposal pop-up and show options below cfs enh: Remove proposal pop-up and show options below cfs Jul 27, 2020
@iamareebjamal
Copy link
Member

@mariobehling Please check what should be done

@mariobehling
Copy link
Member

@iamareebjamal Is there a need to change message text of LoginSignupModal? Currently it is "Please Login or Signup before you can submit a proposal.". I was thinking that it can now be "Please Login or Signup before adding your speaker details." because this modal is now opening when unauthenticated user clicks on "Add Speaker Details" button.

No need to change the message as proposal could refer to the broader submission action.

@Haider8
Copy link
Contributor Author

Haider8 commented Jul 28, 2020

@iamareebjamal The PR is now final. Is there anything else?

@iamareebjamal iamareebjamal changed the title enh: Remove proposal pop-up and show options below cfs fix: Remove proposal pop-up and show options below cfs Jul 29, 2020
@iamareebjamal iamareebjamal merged commit c27f444 into fossasia:development Jul 29, 2020
@Haider8 Haider8 deleted the remove-cfs-popup branch July 29, 2020 11:01
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.

Call for Speakers: Show option below CfS instead of pop-up

3 participants