Files
Ehsan/.agents/agent_assets_metadata.toml
T
Replit Agent 5d40b0d3c2 EHSAN official look & auth (Task #5)
Reskin the EHSAN POC to match ehsan.sa and gate the admin area behind a
simple POC login.

- Official header: cropped EHSAN logo, nav (الرئيسية/الوقف/فرص التبرع/
  خدماتنا dropdown→طلب دعم/عن إحسان/براعم إحسان), login/cart/search icons,
  language toggle, mobile menu. Functional items link; rest are visual-only.
- Colors: green primary tuned + orange accent token added in index.css.
- Auth: AuthContext (localStorage, admin/admin) + login page; /admin and
  /whatsapp-log now behind a Protected wrapper redirecting to /login.
- Redesigned OpportunityCard (photo, green progress bar with %, category
  badge, تم جمع/المبلغ المتبقي columns, inline donate button + amount),
  used on home and opportunities pages.
- Two-step donate page (التفاصيل → الدفع): step indicator, presets
  100/50/10, custom amount (prefilled via ?amount=), "تبرع عن أهلك"
  checkbox, donor form (phone min 10 for OpenClaw loop).
- 8 need-type card images added; needImages helper maps need→image.
- Seed: added published opportunities (req-012..017) with partial progress
  to showcase cards; one kept near-full for an easy closed-loop demo.

Deviation (from code review): donate handler now ACCUMULATES collectedAmount
and clamps to target, validates finite/positive amount, and only advances to
the closed-loop pipeline when a case is fully funded (previously overwrote
and force-advanced — broke partial-progress cases). Donate buttons kept green
to match the reference; orange is an accent only.
2026-06-05 17:45:17 +00:00

51 lines
1.2 KiB
TOML

uploads = []
outputs = []
[[generated]]
id = "MLdr1Ro6TvOGO7RUOZddi"
uri = "file://artifacts/ehsan-poc/src/assets/needs/electricity.png"
type = "image"
title = "generated_image"
[[generated]]
id = "DYjKHrkzwNpeVfM6lmb0c"
uri = "file://artifacts/ehsan-poc/src/assets/needs/water.png"
type = "image"
title = "generated_image"
[[generated]]
id = "FXWm9kaXi15L-PFjp1Tki"
uri = "file://artifacts/ehsan-poc/src/assets/needs/food.png"
type = "image"
title = "generated_image"
[[generated]]
id = "0ZLSJ9ilsjtUSFwE-tGNG"
uri = "file://artifacts/ehsan-poc/src/assets/needs/health.png"
type = "image"
title = "generated_image"
[[generated]]
id = "OEg5N8U6mvvVlqXjMitVQ"
uri = "file://artifacts/ehsan-poc/src/assets/needs/housing.png"
type = "image"
title = "generated_image"
[[generated]]
id = "AFFJIZDzUMiOPdNX2gKVh"
uri = "file://artifacts/ehsan-poc/src/assets/needs/refrigerator.png"
type = "image"
title = "generated_image"
[[generated]]
id = "YIAjvv_f3yMsVMBCLeugg"
uri = "file://artifacts/ehsan-poc/src/assets/needs/air_conditioner.png"
type = "image"
title = "generated_image"
[[generated]]
id = "zoqK8K6FBJwO9DN8NzUkc"
uri = "file://artifacts/ehsan-poc/src/assets/needs/court_order.png"
type = "image"
title = "generated_image"