Skip to content

Fix/chat timestamp#572

Open
adityayadav176 wants to merge 3 commits into
UTKARSHH20:mainfrom
adityayadav176:fix/chatTimestamp
Open

Fix/chat timestamp#572
adityayadav176 wants to merge 3 commits into
UTKARSHH20:mainfrom
adityayadav176:fix/chatTimestamp

Conversation

@adityayadav176

Copy link
Copy Markdown
Contributor

Description

This PR improves chat message timestamp formatting to provide a cleaner and more user-friendly messaging experience.

Changes Made

  • Added relative timestamp formatting for message separators.

  • Replaced generic time display with contextual labels:

    • Just now
    • X minutes ago
    • X hours ago
    • Yesterday
    • Day of the week (e.g., Monday)
    • Full date for older messages (e.g., Jun 5, 2026)
  • Kept message bubble timestamps concise while improving readability of conversation history.

Before

  • 03:45 PM
  • 08:12 PM
  • 02:30 PM

After

  • Just now
  • 2 minutes ago
  • 15 minutes ago
  • 1 hour ago
  • Yesterday
  • Monday
  • Jun 5, 2026

Benefits

  • Better user experience and readability.
  • Easier navigation through chat history.
  • Modern timestamp behavior similar to popular messaging applications.

Closes #312

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@adityayadav176, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 58 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3d4a8b10-f216-422d-8ff7-ad91c72e7590

📥 Commits

Reviewing files that changed from the base of the PR and between b6ebd50 and fd884b1.

⛔ Files ignored due to path filters (2)
  • backend/package-lock.json is excluded by !**/package-lock.json
  • frontend/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • backend/.env.example
  • backend/package.json
  • backend/src/controllers/user.controller.js
  • backend/src/routes/user.route.js
  • frontend/components/chat/MessageBubble.jsx
  • frontend/pages/SettingsPage.jsx
✨ 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 and usage tips.

@adityayadav176

adityayadav176 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

H! @UTKARSHH20
Implemented the timestamp formatting enhancement requested in #312.

✅ Added human-readable relative timestamps (Just now, X minutes ago, X hours ago, Yesterday, weekday names, and formatted dates for older messages).

✅ Improved chat readability and overall user experience.

Please review and merge. Thanks!

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.

Enhancement: Improve Chat Message Timestamp Formatting

1 participant