Skip to content

Add FedEx WebHarbor mirror#50

Open
Lxr-max wants to merge 1 commit into
aiming-lab:mainfrom
Lxr-max:add-fedex-site
Open

Add FedEx WebHarbor mirror#50
Lxr-max wants to merge 1 commit into
aiming-lab:mainfrom
Lxr-max:add-fedex-site

Conversation

@Lxr-max

@Lxr-max Lxr-max commented Jun 4, 2026

Copy link
Copy Markdown

Summary

Implementation summary

This PR adds a self-contained FedEx-style logistics mirror under sites/fedex/ with Flask, SQLAlchemy, SQLite, Jinja templates, local CSS/JS, deterministic SVG visuals, seeded tracking timelines, rate estimates, shipment creation, pickup scheduling, invoices, claims, support content, and account flows.

Selected WebSyn port: 40015

Seed row counts

  • users: 4
  • service_levels: 5
  • locations: 15
  • pickup_slots: 45
  • shipments: 60
  • tracking_records: 72
  • tracking_events: 360
  • invoices: 60
  • claims: 12
  • support_articles: 18
  • pickup_requests: 8
  • search_logs: 3+

Benchmark users

Task count and categories

  • 18 tasks in sites/fedex/tasks.jsonl
  • Categories: single-package tracking, multi-package tracking, support/help lookup, rate estimate comparison, location search, mock shipment creation, pickup scheduling, account shipments, invoices, claims, and global search.

Key routes

  • /, /home
  • /track, /track/results, /tracking/<tracking_number>
  • /rate-estimate
  • /ship, /ship/service, /ship/review, /ship/confirmation
  • /pickup
  • /locations, /locations/<location_slug>
  • /support, /support/<article_slug>
  • /search
  • /login, /register, /logout
  • /account, /account/edit, /account/shipments, /invoices, /claims

Verification commands and results

  • py -3 -m py_compile sites/fedex/app.py sites/fedex/seed_data.py sites/fedex/_health.py -> passed
  • py -3 sites/fedex/seed_data.py -> generated deterministic instance_seed/fedex.db and local SVG assets
  • local Flask test-client smoke for homepage, search, login, ship flow, pickup, invoices, and claims -> passed

Docker result

  • docker build -t webharbor:fedex-pr . -> passed
  • Test container: webharbor-fedex-submit
  • Host ports used for verification: 8301 -> 8101, 43000-43015 -> 40000-40015
  • Control plane health -> passed, all 16 registered sites alive

Smoke test result

  • HTTP 200 on /, /home, /track, /track/results, /rate-estimate, /locations, /support, /search?q=delay, /login
  • HTTP flows passed for login/logout, multi-number tracking, shipment creation, shipment confirmation, pickup scheduling, shipment history, invoices, claims, support search, and location search
  • Example generated confirmation values after reset: shipment SH-260061, tracking FDX260000061, pickup PU-2609

Reset + MD5 result

  • POST http://localhost:8301/reset/fedex -> ready: true
  • docker exec webharbor-fedex-submit md5sum /opt/WebSyn/fedex/instance/fedex.db /opt/WebSyn/fedex/instance_seed/fedex.db -> both hashes matched
  • MD5: ea65ea7d0ec6f17af8229806ed8c4317
  • Container restart check also passed; control plane and FedEx homepage still returned healthy / 200

Screenshot paths

Local review-only screenshots were captured at:

  • sites/fedex/scraped_data/submission_review/home.png
  • sites/fedex/scraped_data/submission_review/track.png
  • sites/fedex/scraped_data/submission_review/track_results.png
  • sites/fedex/scraped_data/submission_review/tracking_detail.png
  • sites/fedex/scraped_data/submission_review/rate_estimate.png
  • sites/fedex/scraped_data/submission_review/locations.png
  • sites/fedex/scraped_data/submission_review/support.png
  • sites/fedex/scraped_data/submission_review/login.png
  • sites/fedex/scraped_data/submission_review/mobile_home.png

HF asset status

Known limitations

  • Visual assets are deterministic local SVGs, not official FedEx artwork.
  • No real shipment booking, pickup scheduling, claims filing, address validation, or carrier API integration.
  • scripts/check_assets.sh / scripts/fetch_assets.sh use CRLF-sensitive bash entrypoints in this Windows checkout, so I followed the documented asset workflow with equivalent manual hf/tar commands in PowerShell when needed.
  • Logged-in account screenshots were not captured with full browser automation; those routes were verified via real HTTP smoke instead.

Manual review notes

  • The branch also updates repo-level site counts, exposed port range, and internal skill docs from 15 sites to 16 sites.
  • Runtime artifacts, screenshots, local caches, and HF-managed heavy assets were intentionally left out of the git commit.
  • This is a new website contribution, not a tooling-only PR.

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