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

feature(translated-content): add github contributor profile list UI #11755

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hochan222
Copy link
Member

@hochan222 hochan222 commented Sep 6, 2024

Summary

Add the feature to enhance visual elements for page contributors.

Problem

I was thinking about an alternative to the page provided as txt.

https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/of/contributors.txt

Solution

I suggest showing the profile at least after yari(github). However, there is a problem with my PR. I'm requesting the github API, but there are limitations.


Screenshots

Before

image

After

스크린샷 2024-09-07 오전 12 23 14

Related Discussion

const contributorJSONUrl = `https://api.github.com/repos/mdn/translated-content/commits?path=files/${url}/index.md`;

const { error, data = [] } = useSWR<any>(contributorJSONUrl, async (url) => {
const response = await fetch(url);
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

@hochan222 hochan222 Sep 9, 2024

Choose a reason for hiding this comment

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

Thank you for comment.

The current structure is one that is called on every page. There are limitations in calling the GitHub API, so caching(server..?) or other ways seem to be necessary.

For this reason I have created a discussion below regarding this!

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

Successfully merging this pull request may close these issues.

2 participants