Feat/routes f 731 732 735 736#747
Merged
davedumto merged 4 commits intoStreamFi-x:devfrom Apr 29, 2026
Merged
Conversation
- POST endpoint at app/api/routes-f/triangle/route.ts - Supports mode: sides (3 side lengths) and vertices (3 [x,y] points) - Heron formula for area, law of cosines for angles - Triangle inequality and degenerate triangle validation - Returns type, angle_type, sides, angles_deg, area, perimeter, circumradius, and centroid (vertices mode) - 12 tests covering all triangle types, right triangles (3-4-5), vertices mode, and invalid inputs
…i-x#732) - POST endpoint at app/api/routes-f/mortgage/route.ts - Standard mortgage formula with cent precision rounding - Supports property_tax_annual, insurance_annual, hoa_monthly - Caps years at 50, handles zero interest rate - Returns loan_amount, monthly breakdowns, total_interest, total_paid, ltv_ratio, payoff_date - 9 tests covering typical 30-year, all fees, zero interest, validation errors, and cent precision
…i-x#735) - POST endpoint at app/api/routes-f/url-parse/route.ts - Uses built-in URL constructor for parsing - Query object handles repeated keys as arrays - 4KB URL length cap, rejects invalid URLs with 400 - Returns protocol, host, hostname, port, pathname, search, hash, username, password, query, path_segments, origin - 8 tests covering full URLs with auth/query, repeated keys, varied protocols, and invalid inputs
- POST endpoint at app/api/routes-f/query-parse/route.ts - Two modes: parse (string -> object) and build (object -> string) - Array formats: repeat (default), bracket, comma - Nested objects via bracket notation: a[b]=c - 16 tests covering parse/build, all array formats, nested objects, round-trip consistency, and validation errors
|
@KevinMB0220 is attempting to deploy a commit to the david's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@KevinMB0220 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! 🚀 |
| result[parentKey] = {}; | ||
| } | ||
|
|
||
| (result[parentKey] as Record<string, unknown>)[childKey] = value; |
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
Closes #731
Closes #732
Closes #735
Closes #736
Changes proposed
What were you told to do?
Implementar 4 nuevos endpoints de utilidad y matemáticas dentro de la colección
routes-f:What did you do?
app/api/routes-f/triangle/route.ts&__tests__/triangle.test.tsapp/api/routes-f/mortgage/route.ts&__tests__/mortgage.test.tsapp/api/routes-f/url-parse/route.ts&__tests__/url-parse.test.tsapp/api/routes-f/query-parse/route.ts&__tests__/query-parse.test.tsapp/api/routes-f/.Check List
Screenshots/Videos
Test Results (Local execution)