Skip to content
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

Image error control #8436

Closed
2 tasks done
shawshankkumar opened this issue Dec 13, 2022 · 10 comments · Fixed by #8443
Closed
2 tasks done

Image error control #8436

shawshankkumar opened this issue Dec 13, 2022 · 10 comments · Fixed by #8443
Labels
documentation The issue is related to the documentation of Docusaurus good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin.

Comments

@shawshankkumar
Copy link
Contributor

Have you read the Contributing Guidelines on issues?

Motivation

Greetings,

I am not 100% sure if this should be in the proposal part or the bug part but I chose to use the proposal issue because the thing I am going to write about is not exactly a bug, it is expected, I just think it can be handled in a better way.

So when you go to https://docusaurus.io/ and go to the Loved by many engineers part, tweets come up(The code has a component and it is mapped over by the data). I believe some twitter images are breaking for example this screenshot:

image

Mael and Kent's pictures' URL is broken and hence the img tag shows the alt name. I believe it would be much better if it showed a default avatar instead. This can be done in a few easy steps and I am willing (and excited) to work on this.

What are my next steps? I am open to suggestions!

Thanks.

Self-service

  • I'd be willing to do some initial work on this proposal myself.
@shawshankkumar shawshankkumar added proposal This issue is a proposal, usually non-trivial change status: needs triage This issue has not been triaged by maintainers labels Dec 13, 2022
@shawshankkumar
Copy link
Contributor Author

This is something I tried. The default image is ofcourse subject to change but this is what it would look like. Instead of an alt text, an default avatar if the image from twitter doesn't work.

image

@slorber
Copy link
Collaborator

slorber commented Dec 14, 2022

Yes that Twitter thing is a pain, as their image urls changes and they do not make it easy at all to get the image URL from an avatar (unlike GitHub

What I suggest we do instead:

We need the unavatar fallback because in my experience it's not 100% reliable, may fail to fetch the real twitter avatar and often display the default fallback

Do you want to work on this?

@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Dec 14, 2022
@Josh-Cena Josh-Cena added documentation The issue is related to the documentation of Docusaurus good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. and removed proposal This issue is a proposal, usually non-trivial change labels Dec 14, 2022
@abhinandanwadwa
Copy link
Contributor

Hey @slorber , I'd like to work on this issue!

@shawshankkumar
Copy link
Contributor Author

Yes that Twitter thing is a pain, as their image urls changes and they do not make it easy at all to get the image URL from an avatar (unlike GitHub

What I suggest we do instead:

We need the unavatar fallback because in my experience it's not 100% reliable, may fail to fetch the real twitter avatar and often display the default fallback

Do you want to work on this?

Yes sure. I'd love on work this. I'll make a pr as soon as possible?

@abhinandanwadwa
Copy link
Contributor

@slorber I've created a PR for the issue!

@shawshankkumar
Copy link
Contributor Author

@slorber I've created a PR for the issue!

Hey @abhinandanwadwa since i initiated this, i would like to fix this and make a pr. Please follow the same process from the next time. @slorber I'll be making a pr soon, hope that's fine.

@slorber
Copy link
Collaborator

slorber commented Dec 15, 2022

@shawshankkumar sorry but our policy is that if you want to claim an issue you have to submit a draft PR first

This is to prevent people from saying that they will work on something, and then they ghost us and nobody works on the issue due to the issue being claimed, which happened a lot in the past.

This also saves maintainer time.

If you want to claim an issue, you have to demonstrate you really plan to work on it fast otherwise someone else will

@shawshankkumar
Copy link
Contributor Author

@shawshankkumar sorry but our policy is that if you want to claim an issue you have to submit a draft PR first

This is to prevent people from saying that they will work on something, and then they ghost us and nobody works on the issue due to the issue being claimed, which happened a lot in the past.

This also saves maintainer time.

If you want to claim an issue, you have to demonstrate you really plan to work on it fast otherwise someone else will

Oh Okay. i had the code ready for the first one and was working on the second. That suck 😞 But no worries. Thanks for your time.

@slorber
Copy link
Collaborator

slorber commented Dec 15, 2022

sorry about that

the best way to contribute small issues such as this one is to directly open a PR with a fix proposal, demonstrating your intention to work on it. From there I can review your PR and suggest a possible better alternative if your approach is not good enough

@shawshankkumar
Copy link
Contributor Author

shawshankkumar commented Dec 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation The issue is related to the documentation of Docusaurus good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants