Skip to content

feat(settings): add font size customization for chat message bubbles#522

Merged
param20h merged 1 commit into
param20h:devfrom
Antra1705:425-chat-font-size-preference
Jun 7, 2026
Merged

feat(settings): add font size customization for chat message bubbles#522
param20h merged 1 commit into
param20h:devfrom
Antra1705:425-chat-font-size-preference

Conversation

@Antra1705
Copy link
Copy Markdown
Contributor

🔗 Related Issue

Closes #425


📝 What does this PR do?

Adds a user-configurable font size setting for chat message bubbles. Users can select Small, Medium, or Large from a new "Chat Typography" section in the Settings page. The preference is persisted via localStorage and applied reactively without a page reload.


🗂️ Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactor / code cleanup
  • 📝 Documentation update
  • 🎨 UI / styling change
  • ⚙️ CI / tooling / config change
  • 🧪 Tests

🧪 How was this tested?

  • Ran the frontend locally (npm run dev inside frontend/)
  • Added / updated tests

Ran npx vitest run — all 5 tests passed (SourceCard: 3, MessageBubble: 2). Ran npm run lint — 0 errors, 15 warnings (all pre-existing, none introduced by this PR). Ran next build — compiled successfully with no TypeScript errors.


📸 Screenshots (if UI change)

settings

⚠️ Anything to flag for reviewers?

  • Used useSyncExternalStore instead of useState + useEffect for hydration safety — avoids cascading renders and complies with react-hooks/set-state-in-effect ESLint rule.
  • Font size mapping preserves existing baseline: small → text-xs, medium → text-sm (default, matches current), large → text-base.
  • The 15 lint warnings are pre-existing in the codebase and not introduced by this PR.

✅ Self-Review Checklist

  • My branch is based on dev, not main
  • I have not added any secrets / API keys
  • I have not modified main branch or any HuggingFace deployment config
  • My code follows the existing style (no unnecessary formatting changes)
  • I have updated relevant docs / comments if needed

@Antra1705 Antra1705 requested a review from param20h as a code owner June 7, 2026 15:11
@param20h param20h merged commit 82f604a into param20h:dev Jun 7, 2026
7 checks passed
@github-actions github-actions Bot added gssoc GirlScript Summer of Code 2026 issue/PR gssoc:approved Approved for GSSoC base points (+50 pts) level:beginner +20 pts mentor:param20h Mentor for this PR type:accessibility +15 pts type:frontend Frontend UI/UX labels Jun 7, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 7, 2026

🎉 Congratulations on getting your Pull Request merged! 🎉

Thank you for contributing to PDF-Assistant-RAG as part of GSSoC '26! 🚀

Keep up the great work! ✨

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

Labels

gssoc:approved Approved for GSSoC base points (+50 pts) gssoc GirlScript Summer of Code 2026 issue/PR level:beginner +20 pts mentor:param20h Mentor for this PR type:accessibility +15 pts type:frontend Frontend UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): Add customizable font sizes for the chat interface in settings

2 participants