Skip to content

feat(jobs): Highlighted Job Posting Time Display & Clock-Time Formatting - #20

Open
superezzdev wants to merge 3 commits into
mainfrom
feat/job-posting-time-display
Open

feat(jobs): Highlighted Job Posting Time Display & Clock-Time Formatting#20
superezzdev wants to merge 3 commits into
mainfrom
feat/job-posting-time-display

Conversation

@superezzdev

Copy link
Copy Markdown
Owner

Summary

This pull request introduces high-contrast, highlighted job posting time displays across job listings and application dialogs. It accurately extracts and formats exact clock time (when available), calculates relative freshness, provides accessible localized tooltips, and adheres to strict Next.js hydration safety.

Key Changes

  • Posting Time Engine (src/lib/posting-time.ts):
    • hasSpecificTime(dateStr): Intelligently distinguishes timestamps containing true clock time (e.g. 2026-09-02T14:30:00Z) from date-only strings (YYYY-MM-DD) and midnight UTC padded dates (T00:00:00.000Z), avoiding misleading midnight representations.
    • formatTimeOfDay(date): Deterministically formats clock time into standard 12-hour AM/PM format (e.g. 10:30 AM, 4:15 PM) without locale variances or SSR hydration mismatches.
    • formatRelativeTime(date, now): Computes standard relative duration (just now, 25m ago, 2h ago, 1d ago, 3d ago, 2w ago, 3mo ago).
    • formatJobPostingTime(postedAt, fetchedAt, createdAt): Returns a rich object with isFresh, displayPrefix, timeOnlyText, and localized tooltips.
  • Job Card UI Highlight (src/components/dashboard/jobs/job-card.tsx):
    • Metadata Row Capsule: Prominently highlights the posting time pill with an electric sky accent (bg-sky-500/15 text-sky-200 border-sky-500/35) for jobs posted within 24 hours.
    • High-Contrast Clock Time Badge: Displays the exact time in an illuminated mono pill: 2h ago • [10:30 AM].
    • Right Match Column: Displays Posted 2h ago [10:30 AM] with hover tooltip support.
    • Hydration Safety: Applied suppressHydrationWarning on dynamic timestamp elements.
  • Apply Method Dialog (src/components/dashboard/applications/apply-method-dialog.tsx):
    • Displays matching highlighted posting time with a Clock icon directly under the job title and company header.
  • Feed Loading Skeleton (src/components/dashboard/jobs/jobs-skeleton.tsx):
    • Added a 5th metadata pill skeleton to align with the new posting time layout during initial page load.
  • Resume Multi-Model Fallback:
    • Included multi-model fallback parsing with Gemini, Groq, and anti-hallucination verification.

Testing & Verification

  • Unit Tests (tests/posting-time.test.ts): 16 unit tests covering clock time extraction, date-only formats, midnight UTC handling, relative intervals, and fallback behavior.
  • Full Test Suite: All 31 test suites (235 tests) pass cleanly with zero regressions.

…fied user profile

- Add UserCareerProfile builder with verified duration, derived seniority, and project separation
- Implement multi-stage deterministic matcher with hard filters, weighted scoring, and explainable reasons
- Add seniority protection for entry-level candidates against senior/lead/staff roles
- Add software candidate protection from non-tech role families (Finance, Marketing, HR)
- Support user feedback (not relevant, hidden) and invalidation via profile_version
- Integrate matching engine into jobs-service and API routes, eliminating legacy baseline score bugs
- Update job-card and job-list UI with recommendation rationale, matched skills, missing requirements, and Not Relevant feedback
- Add comprehensive benchmark evaluation test suite covering 10 test fixtures
Copilot AI lite review requested due to automatic review settings September 2, 2026 04:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openned Ready Ready Preview Sep 2, 2026 4:52am UTC

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 64547cc8-a4fa-4b69-a6d2-ec7b55b42571


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.

2 participants