-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat: handle social links with LinkInput widget #5000
feat: handle social links with LinkInput widget #5000
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/1qbj6hbu7 |
05b3d12
to
10ca5c6
Compare
app/utils/computed-helpers.js
Outdated
@@ -14,19 +14,33 @@ export const computedSegmentedLink = function(property) { | |||
return computed(property, { | |||
get() { | |||
const splitted = this.get(property) ? this.get(property).split('://') : []; | |||
const socialPlatforms = ['twitter', 'facebook', 'instagram', 'linkedin', 'youtube', 'github', 'gitlab', 'vimeo', 'flicker']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this up and export this and import it in the component above to remove duplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Codecov Report
@@ Coverage Diff @@
## development #5000 +/- ##
===============================================
- Coverage 22.69% 22.67% -0.02%
===============================================
Files 485 485
Lines 5165 5177 +12
Branches 21 21
===============================================
+ Hits 1172 1174 +2
- Misses 3989 3999 +10
Partials 4 4
Continue to review full report at Codecov.
|
Have you checked that it doesn't interfere with any other place it's being used? |
Let me implement #4609 too in this PR, to make sure we aren't breaking anything. |
547afcf
to
905e5d7
Compare
905e5d7
to
7b1bc92
Compare
7b1bc92
to
706512f
Compare
706512f
to
47972b9
Compare
Is it possible to have a custom field also? Right now it is still possible to define the description yourself, e.g. I just added "Add to calendar" on the OSI event.
|
@mariobehling Yes, the possible solution I can think of this right now is that we can add one more |
We will probably need to write our custom component for this behavior. Can we do it with a separate Issue/PR? |
It will take more time @mariobehling as there is no such component already in semantic UI. |
Ok, thanks for the info.
It seems then a custom field would be an immediate option even though it would make the UI a bit more complicated. Could you add this here as well? Basically it would seem we keep the current way and separate it into two components a) social links as covered in the PR already and b) simply using the former way for custom links. |
1dbc0b1
to
4d28976
Compare
Are all the link displays working on the public event page? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working for tests I did.
The problem is that these changes always have some influence on areas that are not mentioned in the PR. I am no longer able to nullify (delete) admin social links at https://eventyay.com/admin/content, e.g. cannot delete the facebook link. |
Fixes #4609