Skip to content

Incorrect page title in Know Your Patient (KYP) page

Damanagari Sathwika requested to merge fix/kyp-page-title into develop

Overview

Fixes incorrect page title displayed in the Know Your Patient (KYP) page. The UI was showing "Page Title" instead of the expected "Know Your Patient".

What does this MR do and why?

  • The issue was caused by an incorrect translation value for patient:kyp.pageTitle
  • The UI fallback was not being used because a wrong value existed in the i18n file
  • This MR ensures the correct title "Know Your Patient" is displayed
  • Improves UI consistency and correctness

Changes Made

  • Updated translation value for patient:kyp.pageTitle
  • Ensured correct title rendering in KYP page header
  • No changes made to logic, API, or functionality

Technical Details

  • Root cause: Incorrect value in i18n translation file ("Page Title")
  • Fix: Updated translation key value to "Know Your Patient"
  • No impact on state management or component logic

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature
  • 💥 Breaking change
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • ️ Refactor
  • Performance improvement
  • 🧪 Test update
  • 🔧 Configuration change
  • 🚨 Security fix

Related Issues / References

Closes #256 (closed)

Screenshots or Screen Recordings

Before: Shows "Page Title"
Screenshot_from_2026-03-24_15-32-33 After: Shows "Know Your Patient" Screenshot_from_2026-03-24_16-24-22

How to Set Up and Validate Locally

  1. Checkout this branch
  2. Run: bun install
    bun dev
  3. Navigate to Volunteer Dashboard
  4. Click on "Know Your Patient"
  5. Verify the page title displays correctly

Testing Done

  • Manual testing completed
  • Unit tests added

Test Cases:

  • Open KYP page → Title should be "Know Your Patient" → PASS
  • Navigation flow → Other pages unaffected → PASS

Code Quality Checklist

  • Code follows project conventions
  • No console.log or debug statements
  • No unused code
  • No duplicate code
  • i18n check passed
  • ESLint and Prettier passed

Documentation

  • CHANGELOG.md updated

Additional Notes

  • This is a UI-only fix
  • No functional or behavioral changes
  • Safe and low-risk change
Edited by Damanagari Sathwika

Merge request reports

Loading