feat(routes-f): add word-of-the-day, contrast, timezone, and date-diff endpoints#637
Merged
davedumto merged 2 commits intoStreamFi-x:devfrom Apr 28, 2026
Merged
Conversation
|
@CMI-James is attempting to deploy a commit to the chibuikemmichaelilonze's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@CMI-James Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Description
Implemented four new scoped API endpoints under
app/api/routes-f/for deterministic word selection, WCAG contrast validation, timezone conversion via Intl, and calendar-aware date differences.Closes #558
Closes #616
Closes #629
Closes #632
Changes proposed
What were you told to do?
Add four
routes-fAPI features (word-of-the-day, contrast checker, timezone converter, and date-diff calculator) with scoped helpers/types/tests underapp/api/routes-f/**, then open one PR that closes all related issues.What did I do?
Added word-of-the-day endpoint
GET /api/routes-f/word-of-the-daywith deterministic UTC-date-based selection.YYYY-MM-DD, range1990-01-01to2100-12-31).366entries) in the feature folder.Added WCAG contrast checker endpoint
POST /api/routes-f/contrastsupporting hex andrgb()input parsing.Added timezone conversion endpoint
GET /api/routes-f/timezonewithtimestamp,from(default UTC), andtoparams.Intl.supportedValuesOf('timeZone').Intl.DateTimeFormatonly.Added date-diff endpoint with calendar math
POST /api/routes-f/date-diffsupporting ISO input and optional unit.total_secondsand naturalhumanstrings for future/past cases.Hook unblock fix needed for repository commit hooks
app/api/routes-f/word-frequency/_lib/corpus.ts(rightduplicated), which was blocking enforced type-check hooks for any commit.Check List (Check all the applicable boxes)
Screenshots / Testing Evidence
npm run type-checkandnext buildsuccessfully during commit./api/routes-f/word-of-the-day/api/routes-f/contrast/api/routes-f/timezone/api/routes-f/date-diff