Skip to content

Expand provider tracking lookup and add stateless resolver - #23

Merged
EdgeClaws merged 1 commit into
mainfrom
clawdia/orders-provider-lookup
Nov 19, 2026
Merged

EdgeClaws merged 1 commit into
mainfrom
clawdia/orders-provider-lookup

Conversation

@EdgeClaws

Copy link
Copy Markdown
Collaborator

Summary

  • Cover all 30 current Edge swap registrations and 13 buy/sell providers, plus an explicitly legacy LetsExchange handoff. Direct tracking templates come from pinned Edge integration source; receipt/network-dependent integrations get honest guidance instead of guessed links.
  • Add provider selection, safe allowlisted tracking-link parsing, structured Bridgeless IDs and conservative format candidates. UUIDs, shared trackers and blockchain hashes never establish a unique provider or chain; no live order status/existence is claimed.
  • Correct ChangeNOW/Paybis destinations and remove unsubstantiated Bity/Simplex deep links. Keep matching browser-local, remove Intercom from the ID-entry page, enforce a restrictive CSP, and open only explicit no-referrer destination links.
  • Add the optional stateless POST /api/orders/resolve to the existing Public API Worker. It is a bounded JSON parser/link resolver, not a provider API/credential proxy: no upstream requests, secrets, cache, logs, database or retained orders. Browser use does not depend on it.

Verification

  • sfw npm run check: 100/100 tests, static build, 16 pages/6 external destinations, all three Wrangler dry-runs, and gitleaks pass.
  • 14 order/API tests cover all catalog entries/direct-template round trips, receipt-only behavior, ambiguous IDs, hostile URLs, strict host/path/method/body shape, no upstream/cache access, and a 4096-byte streaming-body limit.
  • Real Chromium interactions at desktop 1440px and touch/mobile-emulated 375px, both light and dark: actual clipboard paste/copy, selection/candidate confirmation, hash ambiguity, receipt handoff, safe new-tab click, reset/edit/error behavior and screenshots. Zero matching requests, browser errors or horizontal overflow. Synthetic destination clicks are intercepted locally, not sent to provider orders.
  • Production dependency audit: zero findings. Existing pinned Wrangler 4.147.0 has four high development-tool dependency audit findings (miniflare/sharp/undici); no dependency change is bundled into this task.

Scope and rollout

  • Provider-source baseline: exchange plugins 5a49641f69eab6c10dc9b0c14db53095dbb294b5; GUI 9b9b5513c025419d0a5cd0cd7309cfe3fc671e34. Full catalog/limitations/API contract: docs/order-lookup.md.
  • Source-contract/synthetic verification only: no customer fixtures, private orders, real swaps or provider status validation. Mobile coverage is browser emulation, not a physical phone.
  • No production deployment, connector configuration, merge, DNS, Access or paid-plan change performed. PR Fix tool assets without trailing slashes #21 is unrelated and untouched.
  • After review/merge, deploy static output and the existing Public API Worker independently, including only the scoped edgetools.app/api/orders/resolve* route. Verify synthetic POST/no-store, 400/405/413/404 behavior and browser CSP behavior in production. Existing workers.dev/previews stay disabled.
  • No new paid resource. Connector calls share the existing Workers allowance (current Free limit 100k/day, 10ms CPU/call); confirm plan/quota before rollout and do not enable billing automatically. Capture current static deployment and Worker version for independent rollback; no data migration.

@EdgeClaws
EdgeClaws merged commit 0a2bf6c into main Nov 19, 2026
1 check 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

Development

Successfully merging this pull request may close these issues.

1 participant