Skip to content

fix: add document.title to PrivacyPolicy and Terms pages (WCAG 2.4.2) - #590

Merged
gopaljilab merged 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/add-page-titles
Jun 2, 2026
Merged

gopaljilab merged 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/add-page-titles

Conversation

@nyxsky404

@nyxsky404 nyxsky404 commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds document.title to the PrivacyPolicy and Terms pages which were missing page titles. This is a WCAG 2.4.2 (Page Titled) Level A requirement — each page should have a title that describes its topic or purpose for screen readers and browser tab identification.

Related Issue

Fixes #583

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🎨 Style / UI improvement
  • ♻️ Refactor (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test addition or update
  • 🔧 Chore / Tooling / Config

Changes Made

  • Added useEffect(() => { document.title = "Privacy Policy | Clinical Insight Engine"; }, []) to PrivacyPolicy page
  • Added useEffect(() => { document.title = "Terms of Service | Clinical Insight Engine"; }, []) to Terms page

Testing

  • I have tested these changes locally
  • All existing tests pass

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have updated the documentation if needed

@github-actions github-actions Bot added gssoc:approved level:intermediate Requires standard familiarity with the codebase. type:bug Something isn't working or throwing errors. labels Jun 2, 2026
@gopaljilab
gopaljilab merged commit b2c615c into gopaljilab:main Jun 2, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved level:intermediate Requires standard familiarity with the codebase. type:bug Something isn't working or throwing errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Dashboard and PrivacyPolicy pages missing document.title — WCAG 2.4.2 violation

2 participants