Skip to content

feat: add markdown support for public profile bio#1270

Open
gitsofyash wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
gitsofyash:feat/markdown-bio-profile
Open

feat: add markdown support for public profile bio#1270
gitsofyash wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
gitsofyash:feat/markdown-bio-profile

Conversation

@gitsofyash
Copy link
Copy Markdown
Contributor

Summary

Closes #1075

Adds Markdown support for user bios on public profiles, including sanitized rendering, a live settings preview, and a 500-character bio limit.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Added sanitized Markdown rendering for public profile bios
  • Added support for bold, italic, links, inline code, and line breaks
  • Added a live Markdown preview toggle in the settings bio editor
  • Added character count and 500-character validation
  • Added Supabase schema and migration changes for the bio field

How to Test

Steps for the reviewer to verify this works:

  1. Run npm run lint
  2. Open /dashboard/settings
  3. Add a bio using Markdown like **bold**, _italic_, [link](https://example.com), and inline code
  4. Toggle the Markdown preview and verify the rendered output
  5. Save the bio and open the public profile page
  6. Verify links open in a new tab and HTML is sanitized

Screenshots (if UI change)

Not added.

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

Someone is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature labels May 27, 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

Copy link
Copy Markdown
Owner

@Priyanshu-byte-coder Priyanshu-byte-coder left a comment

Choose a reason for hiding this comment

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

This PR has 12 merge conflicts with current main (across supabase.ts, settings routes, public profile, and the migration file name clashes). Please rebase onto current main and resolve all conflicts before this can be merged.

@Priyanshu-byte-coder Priyanshu-byte-coder added gssoc:approved GSSoC: PR approved for scoring level:intermediate GSSoC: Intermediate difficulty (35 pts) labels May 28, 2026
@Priyanshu-byte-coder
Copy link
Copy Markdown
Owner

Your PR has conflicts with the current main branch. Please rebase on main to resolve conflicts and this can be reviewed for merging. Labels have been added ✅

@gitsofyash gitsofyash force-pushed the feat/markdown-bio-profile branch from 136ad4e to 5ae1bf8 Compare May 29, 2026 04:00
@gitsofyash
Copy link
Copy Markdown
Contributor Author

Hi @Priyanshu-byte-coder, I rebased this PR onto the latest main again.

Current status:

  • Branch is now up to date with main
  • Merge conflicts are resolved
  • CI passed
  • Type Check passed

The remaining E2E failure is in e2e/notifications.spec.js where the test cannot find the Notifications button. This appears unrelated to the Markdown bio changes, since this PR only touches the profile bio/settings rendering path and schema/dependency files.

Could you please re-review when you get a chance?

@Priyanshu-byte-coder
Copy link
Copy Markdown
Owner

Hi! Your PR has merge conflicts with the current main branch. Please rebase your branch on latest main and resolve the conflicts:

git fetch upstream
git rebase upstream/main
# resolve any conflicts
git push --force-with-lease origin your-branch

Once resolved, we'll merge it in. Thanks!

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 level:intermediate GSSoC: Intermediate difficulty (35 pts) type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Markdown support in user bio on public profile

2 participants