Skip to content

fix: show globe icon for general web links #4809

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 4 commits into from
Aug 20, 2020

Conversation

snitin315
Copy link
Member

@snitin315 snitin315 commented Aug 19, 2020

Fixes #4802

Short description of what this resolves:

Show globe icon if the URL is not a standard social media URL.

Changes proposed in this pull request:

Screenshot at 2020-08-19 07-32-22

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)

@auto-label auto-label bot added the fix label Aug 19, 2020
@vercel
Copy link

vercel bot commented Aug 19, 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/n1tsqagcz
✅ Preview: https://open-event-frontend-git-fork-snitin315-fix-social-icon.eventyay.vercel.app

@codecov
Copy link

codecov bot commented Aug 19, 2020

Codecov Report

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

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #4809      +/-   ##
===============================================
- Coverage        23.50%   23.49%   -0.02%     
===============================================
  Files              481      481              
  Lines             5079     5083       +4     
  Branches            16       16              
===============================================
  Hits              1194     1194              
- Misses            3881     3885       +4     
  Partials             4        4              
Impacted Files Coverage Δ
app/models/social-link.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 d43df1b...2098117. Read the comment docs.

@@ -17,7 +17,13 @@ export default ModelBase.extend({
// and non-null name is being sent from API, for some reason, for certain events,
// this throws an error, so we check first if name exists
// https://github.com/fossasia/open-event-frontend/issues/4777
return this.name && this.name.trim().toLowerCase();

let normalizedName = this.name.trim().toLowerCase();
Copy link
Member

Choose a reason for hiding this comment

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

Boom goes the last change. Read the comment above

Co-authored-by: Areeb Jamal <jamal.areeb@gmail.com>
@vercel vercel bot temporarily deployed to Preview August 20, 2020 11:01 Inactive
Co-authored-by: Areeb Jamal <jamal.areeb@gmail.com>
@vercel vercel bot temporarily deployed to Preview August 20, 2020 11:01 Inactive
Co-authored-by: Areeb Jamal <jamal.areeb@gmail.com>
@iamareebjamal iamareebjamal merged commit 68e0c0d into fossasia:development Aug 20, 2020
@snitin315 snitin315 deleted the fix/social-icon branch September 1, 2020 11:34
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.

Public Event Page missing web link icon, e.g. globe or similar
2 participants