feat(frontend): sort planter job board by pay, deadline, altitude - #679
Conversation
|
@Abbyhay 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! 🚀 |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus 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 |
Utilitycoder
left a comment
There was a problem hiding this comment.
Please fix up the merge conflict and update your PR. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp
Utilitycoder
left a comment
There was a problem hiding this comment.
Please fix up the merge conflict and update your PR. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp
|
Fix your conflicts to get PR merged, and don't forget to use https://stellar.fundable.finance for your offramps |
1 similar comment
|
Fix your conflicts to get PR merged, and don't forget to use https://stellar.fundable.finance for your offramps |
|
Thanks for the work. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp |
Overview
This PR adds sort controls to the Planter job board so planters can sort by highest pay rate, soonest deadline, or easiest (lowest altitude). Sort state is threaded through map types, cluster utilities, the impact map section, the map layer hook, the GraphQL schema/resolvers, and shared utilities — with stable ordering and safe fallbacks when metadata is missing.
Related Issue
Changes
🎛️ Job Board Sort Controls
[ADD]
apps/web/src/components/map/types.tsJobSortOption(payRate | deadline | altitude) andSortConfigtypes for map markers and cluster payloads.[MODIFY]
apps/web/src/components/map/cluster-utils.ts[MODIFY]
apps/web/src/components/modules/impact-map/ImpactMapSection.tsx[MODIFY]
apps/web/src/hooks/use-map-layer.tsSortConfigand applies it to layer data before rendering; falls back to default ordering when fields are unavailable.[MODIFY]
apps/web/src/graphql/schema.tsPlanterJobSortenum and optionalsortargument to job board queries.[MODIFY]
apps/web/src/graphql/resolvers.tssortargument with null-safe handling for missing pay rate, deadline, or altitude values.[MODIFY]
apps/web/src/lib/utils.tssortByHighestPay,sortBySoonestDeadline, andsortByLowestAltitude.Verification Results
Closes #623