Skip to content

Tree detail page #526#616

Open
muffti123 wants to merge 4 commits into
Farm-credit:mainfrom
muffti123:Tree-detail-page
Open

Tree detail page #526#616
muffti123 wants to merge 4 commits into
Farm-credit:mainfrom
muffti123:Tree-detail-page

Conversation

@muffti123

@muffti123 muffti123 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Closes #526


Summary

Related Issue

Closes #

What Was Implemented

  • [ ]

Implementation Details

Screenshots / Recordings

How to Test

Checklist

  • My code follows the atomic commit convention
  • Each commit message follows Conventional Commits (feat:, fix:, etc.)
  • I have performed a self-review of my code
  • My changes build successfully (pnpm build)
  • My changes pass linting (pnpm lint)
  • I have added/updated relevant documentation
  • New components follow the atomic design pattern (atoms → molecules → organisms)
  • UI changes are responsive and tested on mobile viewports
  • I have added screenshots/recordings for UI changes

… map to donation flow

- Add species selector with per-species CO2 info (kg CO2/yr, maturity years)
- Embed interactive Leaflet map for region picking
- Add species to DonationFlowState and context with setSpecies
- Fix GiftDetails type export error in donor.ts
- Show species info in donation confirmation

Closes Farm-credit#523
feat: add species selection with CO₂ info card and interactive region map to donation flow
@muffti123 muffti123 changed the title Tree detail page Tree detail page #526 Jun 29, 2026
…d CO2 badges

- ImpactMap: null-safe colorForStatus fallback, fixed Leaflet icon race condition
- ImpactMapWrapper: typed props instead of 'any'
- ProjectLocationMap: removed viewMode/locationLabel from init deps (full rebuild on
  toggle), restored resize handler
- ProjectTimeline: unique keys instead of array index, fixed is-active class logic
- MilestoneVerificationForm: fixed falsy accuracy check, added file type/size validation
- FarmerDashboard: fixed PlantingBadge crash on unknown status, replaced
  bg-destructive with bg-red-500, added accept job UI with wallet context
- useFarmerDashboard: real API call instead of mock-only, fixed stale closure,
  added acceptJob/acceptingId
- Created /api/farmer/dashboard route
- app/api/planting/photo: isFinite coordinate check, IPFS error graceful fallback,
  optional EXIF GPS
- Created lib/ipfs/upload.ts with Pinata/IPFS upload support
- lib/tree-status/types: added escrow_dispute -> tree:disputed mapping
- lib/tree-status/poller: fixed unreliable hash-only cursor pagination to use
  composite (created_at, tx_hash) cursor
- hooks/useTreeStatus: clear error on SSE reconnection, move ref assignment to effect
- types/farmer-dashboard: added farmerAddress field
- lib/api/mock/farmerDashboard: added farmerAddress field

Closes Farm-credit#526
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.

feat(frontend): Tree detail page - live planter updates with photo gallery

1 participant