Skip to content

Conversation

sachinchauhan2889
Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 commented Nov 28, 2020

Fixes #5785
Fixes #5824

screenshots

aaaaaaaaaaaaaa njew sachin

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 28, 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/lwnslhcti
✅ Preview: https://open-event-frontend-git-right-side-bar-enhance.eventyay.now.sh

@lgtm-com
Copy link

lgtm-com bot commented Nov 28, 2020

This pull request introduces 1 alert when merging d1c65ec into 4c59354 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@sachinchauhan2889
Copy link
Contributor Author

confused about social links icons.
semantic ui provide only buttons for only few social links mentioned in our projects. example :- for twitter, facebook, linked etc. but not for github, gitter etc..
it looks like this.

icons 1

icons 2

we can also use this icon buttons..
icons 3

please suggest which icon buttons needed from above choices

@codecov
Copy link

codecov bot commented Nov 28, 2020

Codecov Report

Merging #5812 (839b792) into development (f17e24c) will decrease coverage by 0.02%.
The diff coverage is 33.33%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #5812      +/-   ##
===============================================
- Coverage        23.43%   23.41%   -0.03%     
===============================================
  Files              512      511       -1     
  Lines             5466     5471       +5     
  Branches            65       65              
===============================================
  Hits              1281     1281              
- Misses            4168     4173       +5     
  Partials            17       17              
Impacted Files Coverage Δ
app/controllers/public.js 0.00% <0.00%> (ø)
app/models/social-link.js 0.00% <0.00%> (ø)
app/utils/dictionary/social-media.ts 92.85% <100.00%> (+0.54%) ⬆️
app/routes/events/view/edit/sessions-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 f17e24c...839b792. Read the comment docs.

@divyamtayal
Copy link
Member

I think if UI-semantic does not have all the social link button then u should go with the one where all eh buttons are the same so that style is consistent for all buttons

@iamareebjamal
Copy link
Member

You can always set the button color using CSS. For links present in socialMediaIdentifier, please use an icon, for others let them be as they are now.

So, use this style

And set color using classes or CSS, for eg, GitHub black, GitLab orange, Gitter pink

For custom links, show them as they are shown already

@sachinchauhan2889 sachinchauhan2889 changed the title fix: Move Date/Time, Social Icons and Links to Top Right Menu in right side bar of event public page fix: Add Social Icon buttons and Move Date/Time, Social Icons and Links to Top Right Menu in right side bar of event public page Dec 2, 2020
@lgtm-com
Copy link

lgtm-com bot commented Dec 2, 2020

This pull request introduces 1 alert when merging 31be621 into f17e24c - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@sachinchauhan2889
Copy link
Contributor Author

@iamareebjamal sir, please review

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-12-02 18-30-35
Pls make all the boxes to be of the same size

export interface SocialMediaMap { [key: string]: SocialMedia }

export const buttonColor: { [key: string]: string } = {
'github' : 'black',
Copy link
Member

Choose a reason for hiding this comment

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

No need of quotes in keys without space

</div>
</div>
</div>
{{/if}}
Copy link
Member

Choose a reason for hiding this comment

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

Why looping 2 times, use if else in a single loop

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 sir,
variable socialLinks contains both links socialMedia links and custom URLs.
i have made a flex-box for icon buttons. first of all I inserted event-site-URL. then i traverse all socialLinks and only select SocialMedia links to put inside flex-box as icon buttons. then outside of flex-box i traverse all socialLinks and only select Custom-URLs and list them. how can i do this in one loop.
we can store custom-URLs in a variable while first loop and use them outside felx-box. this will be complex in hbs. thats why i use 2 loops.

Copy link
Member

Choose a reason for hiding this comment

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

OK, I understand now

@sachinchauhan2889
Copy link
Contributor Author

new aaaaaaaaaaaa

@iamareebjamal
Copy link
Member

@mariobehling Shouldn't we show the custom links like we previously did?

Like if there are 4 custom links:
Page, Support, About, Contact

They all will show Event Site. The UI will be confusing and there will be no use of freeform input of site name

@iamareebjamal
Copy link
Member

@sachinchauhan2889 Please just show social media links in this PR and continue showing custom links in previous form. We'll discuss the other issue in next PR

@sachinchauhan2889
Copy link
Contributor Author

@sachinchauhan2889 Please just show social media links in this PR and continue showing custom links in previous form. We'll discuss the other issue in next PR

@iamareebjamal sir, customs links are already in previous form. you can check

@iamareebjamal
Copy link
Member

OK, I understand it completely now.

@iamareebjamal iamareebjamal changed the title fix: Add Social Icon buttons and Move Date/Time, Social Icons and Links to Top Right Menu in right side bar of event public page fix: Show social links as icon Dec 2, 2020
@iamareebjamal iamareebjamal merged commit b5ac09f into fossasia:development Dec 2, 2020
@sachinchauhan2889 sachinchauhan2889 deleted the right-side-bar-enhance branch December 2, 2020 19:06
@mariobehling
Copy link
Member

Very nice! Thank you.

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