Skip to content

Enhance: on-chain reputation, breadcrumb consolidation, and NGN/USD escrow preview - #444

Merged
johdanike merged 3 commits into
SwiftChainn:mainfrom
Dannyorji:feat/enhancements
Aug 2, 2026
Merged

Enhance: on-chain reputation, breadcrumb consolidation, and NGN/USD escrow preview#444
johdanike merged 3 commits into
SwiftChainn:mainfrom
Dannyorji:feat/enhancements

Conversation

@Dannyorji

Copy link
Copy Markdown
Contributor

Summary

  • Driver Reputation Token Integration (Enhancement: Driver Reputation Token Integration #294): Replaced the hardcoded
    useDriverReputation placeholder with a real Component → Hook → Service
    pipeline. Added reputationService, which fetches each driver's
    tokenized 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.tsx so the
    Component → Hook (useBreadcrumbs) → Service (breadcrumbService)
    chain lives in the file the ticket specifies. components/layout/Breadcrumbs.tsx
    now 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 (a
    cached, per-currency XLM rate fetcher) and the useLocalizedFiatPreview
    hook, then wired live NGN/USD equivalents into FiatXlmPreview,
    rendered below the XLM total using Intl.NumberFormat. The display
    recalculates instantly whenever the XLM amount changes.

  • Local Landmark Address Integration: No changes — already fully
    implemented in components/deliveries/WorkflowCards.tsx (commit
    fad729e), including the italicized amber "Landmark" badge and
    graceful null handling.

Closes #294
Closes #295
Closes #296
Closes #297

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.
@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@johdanike
johdanike merged commit 7496ea5 into SwiftChainn:main Aug 2, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants