Skip to content

feat: add dynamic page title on tab visibility change - #676

Open
arpita22905 wants to merge 1 commit into
Kuldeeep18:mainfrom
arpita22905:feature/400-page-title
Open

feat: add dynamic page title on tab visibility change#676
arpita22905 wants to merge 1 commit into
Kuldeeep18:mainfrom
arpita22905:feature/400-page-title

Conversation

@arpita22905

@arpita22905 arpita22905 commented Jul 13, 2026

Copy link
Copy Markdown

Pull Request

🔗 Related Issue

Closes #400


📝 Summary of Changes

  • Added a Page Visibility API listener in frontend/main.js.
  • Changes the browser tab title to "Come back to LeadOrbit!" when the user switches to another tab.
  • Restores the original page title when the user returns to the LeadOrbit tab.

🏷️ Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation update
  • 🎨 UI / Style change
  • 🔧 Chore

🧪 Testing

Tested locally in the browser.

Steps to test:

  1. Open the LeadOrbit application in a browser.
  2. Switch to another browser tab.
  3. Verify the tab title changes to "Come back to LeadOrbit!".
  4. Return to the LeadOrbit tab.
  5. Verify the original page title is restored.

📸 Screenshots (if applicable)

image image

✅ Checklist

  • No merge conflicts
  • Changes follow the project guidelines
  • Documentation updated (if applicable)
  • Related issue linked
  • Changes tested locally (if applicable)

Summary by CodeRabbit

  • New Features
    • The browser tab title now displays a reminder when the page is hidden and restores its previous title when you return.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e8e97d47-cef4-49f5-8ff8-68bc8b681080

📥 Commits

Reviewing files that changed from the base of the PR and between 4a33158 and f81dc95.

📒 Files selected for processing (1)
  • frontend/main.js

📝 Walkthrough

Walkthrough

The frontend now changes the page title to “Come back to LeadOrbit!” when the browser tab is hidden and restores the original title when the tab becomes visible.

Changes

Dynamic page title

Layer / File(s) Summary
Visibility title handler
frontend/main.js
Captures the initial document title and updates it through a visibilitychange listener based on document.hidden.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: updating the page title on tab visibility change.
Linked Issues check ✅ Passed The PR implements the requested Page Visibility API title change to 'Come back to LeadOrbit!' when the tab is hidden.
Out of Scope Changes check ✅ Passed No unrelated code changes are indicated beyond the visibility-based title update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LO-063 [Easy]: Dynamic Page Titles and Favicon Notifications

1 participant