Enhance: on-chain reputation, breadcrumb consolidation, and NGN/USD escrow preview - #444
Merged
Merged
Conversation
Replace the hardcoded useDriverReputation placeholder with a real Component -> Hook -> Service pipeline (reputationService) that fetches each driver's tokenized Soroban reputation score from the backend, and add an explicit "Verified On-Chain" label to the reputation badge.
Move the breadcrumb rendering into components/shared/BreadcrumbNav.tsx so the Component (BreadcrumbNav) -> Hook (useBreadcrumbs) -> Service (breadcrumbService) chain lives in one place; components/layout/Breadcrumbs now re-exports it for backward compatibility. Behavior is unchanged: raw UUID/numeric slugs still resolve to human-readable labels via breadcrumbService.
Add localizedFxService (cached, per-currency XLM rates) and useLocalizedFiatPreview to compute localized fiat equivalents, then render them below the XLM total in FiatXlmPreview using Intl.NumberFormat. The display recalculates instantly whenever the caller's xlmAmount prop changes.
|
@Dannyorji 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.
Summary
Driver Reputation Token Integration (Enhancement: Driver Reputation Token Integration #294): Replaced the hardcoded
useDriverReputationplaceholder with a real Component → Hook → Servicepipeline. Added
reputationService, which fetches each driver'stokenized on-chain reputation score from the backend API (backed by
Soroban RPC), and gave the on-chain badge an explicit "Verified
On-Chain" label.
Dynamic Breadcrumb Routing Mapping: Consolidated the breadcrumb
rendering logic into
components/shared/BreadcrumbNav.tsxso theComponent → Hook (
useBreadcrumbs) → Service (breadcrumbService)chain lives in the file the ticket specifies.
components/layout/Breadcrumbs.tsxnow re-exports it for backward compatibility. Raw UUID/numeric slugs
(e.g.
/escrow/123) still resolve to human-readable labels (e.g."Escrow > View Contract") via the existing backend-backed service.
Localized Fiat-to-XLM Preview: Added
localizedFxService(acached, per-currency XLM rate fetcher) and the
useLocalizedFiatPreviewhook, then wired live NGN/USD equivalents into
FiatXlmPreview,rendered below the XLM total using
Intl.NumberFormat. The displayrecalculates instantly whenever the XLM amount changes.
Local Landmark Address Integration: No changes — already fully
implemented in
components/deliveries/WorkflowCards.tsx(commitfad729e), including the italicized amber "Landmark" badge andgraceful null handling.
Closes #294
Closes #295
Closes #296
Closes #297