Skip to content

Updated Contributors Page and API Endpoint With Metadata Support#16

Open
IamLRBA wants to merge 1 commit intoOpenElements:mainfrom
IamLRBA:main
Open

Updated Contributors Page and API Endpoint With Metadata Support#16
IamLRBA wants to merge 1 commit intoOpenElements:mainfrom
IamLRBA:main

Conversation

@IamLRBA
Copy link

@IamLRBA IamLRBA commented Dec 22, 2024

cc
@hendrikebbers
@Ndacyayisenga-droid

I was looking into issue #6 and noticed from the codebase that it is currently well-structured and uses the API endpoint /api/v2/issues. That API path even corresponds to the new API (v2) mentioned in the issue, thus no changes to the API path were needed. However, the actual structure of the response data from /api/v2/issues had changed, so i thought we might need to update the JavaScript code accordingly. So I tried to make some changes.

Key Enhancements

  1. ApiEndpoint.java

    • I updated the /api/v2/contributors endpoint to include metadata like the number of contributions.
    • I added logging for better debugging and traceability.
  2. index.html

    • I added a prominent link to the contributors' page for seamless navigation.
  3. contributors.html

    • I enhanced error handling for failed contributor data fetch operations.
    • I displayed additional metadata, such as the number of contributions, alongside each contributor's avatar and username.
    • I improved layout and responsiveness for a better user experience.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for your first pull request! We're excited to review it. 🚀

Signed-off-by: Jerry Laruba Festus <jerrylarubafestus@gmail.com>
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.

1 participant