feat(jobs): Highlighted Job Posting Time Display & Clock-Time Formatting - #20
Open
superezzdev wants to merge 3 commits into
Open
feat(jobs): Highlighted Job Posting Time Display & Clock-Time Formatting#20superezzdev wants to merge 3 commits into
superezzdev wants to merge 3 commits into
Conversation
…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
…i-hallucination verification
…and relative freshness
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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 withisFresh,displayPrefix,timeOnlyText, and localized tooltips.src/components/dashboard/jobs/job-card.tsx):bg-sky-500/15 text-sky-200 border-sky-500/35) for jobs posted within 24 hours.2h ago • [10:30 AM].Posted 2h ago [10:30 AM]with hover tooltip support.suppressHydrationWarningon dynamic timestamp elements.src/components/dashboard/applications/apply-method-dialog.tsx):Clockicon directly under the job title and company header.src/components/dashboard/jobs/jobs-skeleton.tsx):Testing & Verification
tests/posting-time.test.ts): 16 unit tests covering clock time extraction, date-only formats, midnight UTC handling, relative intervals, and fallback behavior.