Skip to content

feat: Profile README - #814

Merged
PRODHOSH merged 3 commits into
PRODHOSH:mainfrom
Aditya8369:feat/Profile-README
Aug 8, 2026
Merged

feat: Profile README#814
PRODHOSH merged 3 commits into
PRODHOSH:mainfrom
Aditya8369:feat/Profile-README

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Summary

Related Issue

Closes #728

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Chore / dependency update

Changes Made

AI Usage

  • I did not use AI for any part of the code in this PR
  • I used AI for coding (specify which tool below) and I fully understand every change I made, including which functions I changed, why I changed them, and what side effects they could create

Screenshots (if UI change)

Checklist

  • I was assigned to the issue before opening this PR
  • My branch is up to date with main
  • Code works locally and I have tested it
  • No console.log left in src/
  • If schema changed — both schema.sql and a new migration file are included
  • If this is a UI change — I read DESIGN.md and followed the design system (colors, spacing, typography, components)
  • Docs updated if needed
  • PR title follows Conventional Commits format (feat:, fix:, docs:, etc.)
  • This PR description is written in my own words

@Aditya8369
Aditya8369 requested a review from PRODHOSH as a code owner August 4, 2026 10:42
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@Aditya8369, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d65ab221-3b9a-4bf0-8ade-406e4e438e8a

📥 Commits

Reviewing files that changed from the base of the PR and between f99c7c4 and 65ceac2.

📒 Files selected for processing (9)
  • src/app/[username]/page.tsx
  • src/app/api/settings/route.ts
  • src/app/settings/client.tsx
  • src/components/profile/ProfileReadme.tsx
  • src/components/profile/ProfileView.tsx
  • src/lib/__tests__/readme.test.ts
  • src/lib/readme.ts
  • supabase/migrations/20260713000000_strictify_profiles_privileges.sql
  • supabase/migrations/20260804000000_add_profile_readme.sql
✨ 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.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Welcome to OSSfolio, @Aditya8369! 🎉

Thank you for opening this pull request and contributing to the open-source community! 🚀

To ensure a smooth review process, please make sure you have:

  • Checked that your changes work locally and compile cleanly.
  • Followed the guidelines outlined in CONTRIBUTING.md.
  • Linked your PR to an open issue (e.g. Closes #ISSUE_NUMBER).

We will review your PR as soon as possible. Happy coding! 💻✨

@github-actions github-actions Bot added frontend Related to UI / Next.js backend API / Database / Server UI Visual / design changes labels Aug 4, 2026
Comment thread src/components/profile/ProfileReadme.tsx Fixed
Comment thread src/components/profile/ProfileReadme.tsx Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
Comment thread src/lib/readme.ts Fixed
@PRODHOSH

PRODHOSH commented Aug 5, 2026

Copy link
Copy Markdown
Owner

fix the github security cmds and merge conlfict @Aditya8369

@PRODHOSH PRODHOSH added ELUSOC ELUSOC project submission in-progress ADVENTURER Intermediate 25 pts intermediate Some experience required VETERAN Advanced 50 pts and removed ADVENTURER Intermediate 25 pts intermediate Some experience required labels Aug 5, 2026
@PRODHOSH

PRODHOSH commented Aug 7, 2026

Copy link
Copy Markdown
Owner

@Aditya8369 there are merge conflicts too, pls take care of them

let keyIdx = 0;

// Helper to strip any residual raw HTML tag constructs from plain text nodes
const sanitizeTextNode = (str: string) => str.replace(/<[^>]*>/g, "");
Comment thread src/lib/readme.ts
while (cleaned !== prev) {
prev = cleaned;
// Strip <script...> ... </script...>
cleaned = cleaned.replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi, "");
Comment thread src/lib/readme.ts
while (cleaned !== prev) {
prev = cleaned;
// Strip <script...> ... </script...>
cleaned = cleaned.replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi, "");
Comment thread src/lib/readme.ts
// Strip <script...> ... </script...>
cleaned = cleaned.replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi, "");
// Strip unclosed or opening <script...> tags
cleaned = cleaned.replace(/<script\b[^>]*>/gi, "");
Comment thread src/lib/readme.ts
prev = "";
while (cleaned !== prev) {
prev = cleaned;
cleaned = cleaned.replace(/\s+on[a-z]+\s*=\s*(['"])(.*?)\1/gi, "");
Comment thread src/lib/readme.ts
prev = "";
while (cleaned !== prev) {
prev = cleaned;
cleaned = cleaned.replace(/\s+on[a-z]+\s*=\s*(['"])(.*?)\1/gi, "");
Comment thread src/lib/readme.ts
while (cleaned !== prev) {
prev = cleaned;
cleaned = cleaned.replace(/\s+on[a-z]+\s*=\s*(['"])(.*?)\1/gi, "");
cleaned = cleaned.replace(/\s+on[a-z]+\s*=\s*[^>\s]+/gi, "");
Comment thread src/lib/readme.ts
prev = "";
while (cleaned !== prev) {
prev = cleaned;
cleaned = cleaned.replace(/href\s*=\s*(['"])javascript:[\s\S]*?\1/gi, 'href="#"');
@PRODHOSH
PRODHOSH merged commit 908d278 into PRODHOSH:main Aug 8, 2026
5 of 11 checks passed
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🎉 Your PR just got merged, @Aditya8369 — thank you for contributing to OSSfolio!

Your work is now part of the project. Here's what to do next:

  • ⭐ If you haven't already, consider giving the repo a star — it helps us grow.
  • 📢 Share your contribution on LinkedIn, Twitter, or wherever you hang out. You shipped open source!
  • 🔍 Browse other open issues if you want to keep contributing.

We really appreciate you taking the time. See you in the next PR! 🚀

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

Labels

backend API / Database / Server completed ELUSOC ELUSOC project submission frontend Related to UI / Next.js UI Visual / design changes VETERAN Advanced 50 pts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profile README

3 participants