Skip to content

fix: contributor count not displaying on home page#1299

Closed
Katotodan wants to merge 1 commit intoopenfoodfacts:mainfrom
Katotodan:fix/contributors-number
Closed

fix: contributor count not displaying on home page#1299
Katotodan wants to merge 1 commit intoopenfoodfacts:mainfrom
Katotodan:fix/contributors-number

Conversation

@Katotodan
Copy link
Copy Markdown
Contributor

@Katotodan Katotodan commented Apr 10, 2026

Description

Fixed the contributor count not displaying on the home page.
Cause
The issue was caused by an incorrect import path being used for the contributor API utility.
Fix
Updated the import URI to the correct path so the contributor count can be fetched and displayed properly.

Related issue(s) and discussion


Checklist: Author Self-Review

  • I have performed a self-review of my own code (including running it).
  • I understand the changes I'm proposing and why they are needed.
  • My changes generate no new warnings or errors (linting, console).
  • I have made corresponding changes to the documentation (if applicable).

Large Language Models usage disclosure

  • Generic LLM v0.0.0

Summary by CodeRabbit

  • Refactor
    • Internal code reorganization with no impact to functionality or user experience.

Signed-off-by: DANIEL KATOTO <katotodan@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
explorer Ready Ready Preview, Comment Apr 10, 2026 9:30am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8677d7fb-a1e4-467e-8b09-d7f764d1201b

📥 Commits

Reviewing files that changed from the base of the PR and between 211bc11 and 5f330fe.

📒 Files selected for processing (1)
  • src/routes/+page.ts

📝 Walkthrough

Walkthrough

Import path for createProductsApi updated from '$lib/api' to '$lib/api/product' in the page route loader. This reorganization allows the contributor count API to be properly imported and resolved, fixing the display issue on the home page.

Changes

Cohort / File(s) Summary
Import Path Correction
src/routes/+page.ts
Updated createProductsApi import source from '$lib/api' to '$lib/api/product' to resolve the contributor count fetching issue.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A path was lost, but now it's found,
From /api to /product, safe and sound,
The contributors count, no longer shy,
Now dance and twirl across the sky! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the primary fix: updating the import path for the contributor API, which directly resolves the contributor count display issue.
Description check ✅ Passed The description includes all required template sections: explanation of the issue, root cause, the fix applied, linked issue reference (#1298), and completed self-review checklist items.
Linked Issues check ✅ Passed The code change directly addresses issue #1298 by correcting the import path for the contributor API utility, enabling proper fetching and display of contributor count on the home page.
Out of Scope Changes check ✅ Passed The change is tightly scoped to fixing the import path in src/routes/+page.ts with no extraneous modifications unrelated to resolving the contributor count display issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@VaiTon
Copy link
Copy Markdown
Member

VaiTon commented Apr 30, 2026

I can't reproduce the problem. If you feel like this is still a problem use the issue you opened. Closing.

@VaiTon VaiTon closed this Apr 30, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OFF Explorer - Primetime ! Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Contributor count not displayed on home page

2 participants