Skip to content

fix: call for speaker page messages #5415

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 5 commits into from
Nov 1, 2020
Merged

fix: call for speaker page messages #5415

merged 5 commits into from
Nov 1, 2020

Conversation

maze-runnar
Copy link
Contributor

Fixes #5408

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 Oct 29, 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/6i2x716n7
✅ Preview: https://open-event-frontend-git-session-cfs-msg.eventyay.now.sh

@codecov
Copy link

codecov bot commented Oct 29, 2020

Codecov Report

Merging #5415 into development will decrease coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #5415      +/-   ##
===============================================
- Coverage        23.29%   23.23%   -0.07%     
===============================================
  Files              492      493       +1     
  Lines             5147     5169      +22     
  Branches            38       38              
===============================================
+ Hits              1199     1201       +2     
- Misses            3943     3963      +20     
  Partials             5        5              
Impacted Files Coverage Δ
app/components/forms/orders/guest-order-form.js 14.28% <0.00%> (-5.72%) ⬇️
app/routes/account/danger-zone.js 0.00% <0.00%> (ø)
app/components/public/add-to-calender.ts 9.09% <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 4d5dd30...a788d72. Read the comment docs.

@@ -38,7 +38,11 @@
{{/unless}}
<div class="ui hidden divider"></div>
{{#if this.isNewSession}}
<p>{{t 'No session have been submitted'}}</p>
{{#if this.authManager.currentUser.isVerified}}
Copy link
Member

@iamareebjamal iamareebjamal Oct 29, 2020

Choose a reason for hiding this comment

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

If user is unverified, and they see the message Login to show your submitted sessions, it'd be confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if user is verified, they would see No sessions have been submitted

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I meant if user is unverified

Co-authored-by: Areeb Jamal <jamal.areeb@gmail.com>
@iamareebjamal
Copy link
Member

@maze-runnar Status?

@maze-runnar
Copy link
Contributor Author

What's remaining in the PR?

@iamareebjamal
Copy link
Member

#5415 (comment)

@mariobehling
Copy link
Member

Ok, it should work like that:

  • Anonymous users show message: "You need to login to submit and view sessions."
  • Logged in user without sessions: "You have not submitted any sessions."
  • Logged in user with sessions: Show session names.

@iamareebjamal
Copy link
Member

@maze-runnar Please fix this soon according to the above message

@@ -38,14 +38,10 @@
{{/unless}}
<div class="ui hidden divider"></div>
{{#if this.isNewSession}}
{{#if this.authManager.currentUser.isVerified}}
<p> {{t 'No sessions have been submitted'}} </p>
{{#if this.authManager.currentUser.email}}
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't just this.authManager.currentUser work?

@iamareebjamal
Copy link
Member

@mariobehling Changing No sessions have been submitted to You have not submitted any sessions. will need change in translations. Is it required?

@mariobehling
Copy link
Member

@mariobehling Changing No sessions have been submitted to You have not submitted any sessions. will need change in translations. Is it required?

It is always good to keep the translations up to date, yes.

@iamareebjamal
Copy link
Member

I meant is the change required from No sessions have been submitted to You have not submitted any sessions since that'll mean previous translations becoming invalid, but I assume it is OK

@iamareebjamal iamareebjamal merged commit e0fd0a3 into fossasia:development Nov 1, 2020
@maze-runnar maze-runnar deleted the session-cfs-msg branch November 2, 2020 12:25
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.

Sessions/Speakers: Call for Speakers - Public Page vs. User Page
3 participants