Skip to content

fix: respect public widget privacy settings#3214

Merged
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
saurabhhhcodes:fix/public-widget-privacy-3175
Jul 19, 2026
Merged

fix: respect public widget privacy settings#3214
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
saurabhhhcodes:fix/public-widget-privacy-3175

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Summary

  • remove disabled widget data from the public profile API response
  • preserve enabled profile data while honoring saved widget preferences
  • add regression coverage for hidden streak, language, and PR fields

Closes #3175

Validation

  • npx vitest run test/public-profile-data.test.ts --environment node
  • npm run type-check
  • npx eslint src/lib/public-profile-data.ts "src/app/api/public/[username]/route.ts" test/public-profile-data.test.ts
  • git diff --check

@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) type:performance GSSoC type bonus: performance (+15 pts) gssoc26 GSSoC 2026 contribution labels Jul 17, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Priyanshu-byte-coder Priyanshu-byte-coder added gssoc:approved GSSoC: PR approved for scoring level2 GSSoC Level 2 - Medium complexity (25 points) quality:clean GSSoC: Clean quality multiplier (×1.2) labels Jul 19, 2026
@Priyanshu-byte-coder
Priyanshu-byte-coder merged commit 4b4bbd2 into Priyanshu-byte-coder:main Jul 19, 2026
18 of 19 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Merged! Thanks for contributing to DevTrack.

If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers.

Keep an eye on open issues for your next contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved for scoring gssoc26 GSSoC 2026 contribution level2 GSSoC Level 2 - Medium complexity (25 points) quality:clean GSSoC: Clean quality multiplier (×1.2) type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts) type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Hiding a widget on your public profile (streak/languages/PRs) doesn't actually hide the data it's still sitting right there in the API response

2 participants