Commit Graph

198 Commits

Author SHA1 Message Date
Satyam Rastogi c7a9849d1f add subcontractor task assign/list for admin and owner feature 2026-05-18 17:16:11 +05:30
Satyam-Rastogi 4cface49da feat(storm-intel): Phase 2 — storm-sourced lead generation flow
When a canvasser taps "Create Lead from Zone" in the Storm Intel detail drawer,
router state carries the storm context into CreateLeadPage:

- CreateLeadPage reads stormSource from location.state; initialises the form with
  city=Plano, state=TX, leadSource=Door Knock, urgency=high for significant/severe
  storms, and a pre-filled notes field with zone name, hail size, and date
- Amber storm banner renders below the page header showing zone name, hail size,
  and a note that urgency was auto-set; dismissible with X
- stormSource is saved on the lead object via the existing addLead spread
- LeadsListPage LeadCard shows an amber "Storm Zone" badge when lead.stormSource exists
- KanbanCard footer shows a compact amber "Storm" label for storm-sourced leads
2026-05-18 17:06:04 +05:30
Satyam-Rastogi 2e797c89f6 feat(storm-intel): Storm Intelligence Hub — Phase 1
Adds a new Storm Intel section to the sidebar and routes for ADMIN and OWNER roles.

- StormIntelPage: full-height layout with Leaflet map + storm polygon overlays,
  severity-coded color system, horizontal filter bar (date range / severity / sort),
  and a scrollable storm event list
- Storm detail drawer slides in from right with hail size, est. homes, days ago,
  conversion window indicator (Hot Zone / Warm / Cold / Too Fresh), intel text,
  and quick-action buttons (Create Lead, Open in Dispatch, Assign Canvassers stub)
- Clicking a storm card or map polygon zooms the map to that polygon and opens the drawer
- useStormEvents hook with USE_MOCK flag, date-range cutoff filter, type/severity filter,
  sort by date or severity, and conversionWindow() helper
- api/storm-events.js: NWS api.weather.gov proxy (free, no auth needed), parses
  GeoJSON polygons and hail size from alert descriptions
- MOCK_STORM_EVENTS: 7 realistic Plano TX storm events with accurate polygon coords
- Sidebar: CloudLightning "Storm Intel" entry added for OWNER and ADMIN nav
2026-05-18 16:49:37 +05:30
Satyam-Rastogi 4c1c454681 feat(hail-recon): enable live API — USE_MOCK off, KV dynamic import for graceful degradation 2026-05-18 16:13:29 +05:30
Satyam-Rastogi 9e2173fd43 feat(hail-recon): Hail Recon integration — storm intel panel, hail history, auto storm mode, address monitoring 2026-05-18 15:50:59 +05:30
Satyam Rastogi 686325dedb bug-fix/filter dropdowns in dark mode 2026-05-15 18:59:12 +05:30
Satyam-Rastogi 912967fa3a bug-fix/filter dropdowns in dark mode 2026-05-15 18:59:12 +05:30
Satyam Rastogi 2796d2ddb8 adds filter in org commission distribution panel 2026-05-15 18:50:22 +05:30
Satyam-Rastogi d2774b4a1e adds filter in org commission distribution panel 2026-05-15 18:50:22 +05:30
Satyam Rastogi a85b90d283 redesigned createItemModal with responsive and light /dark mode 2026-05-15 15:19:51 +05:30
Satyam-Rastogi 932e1bdbaa redesigned createItemModal with responsive and light /dark mode 2026-05-15 15:19:51 +05:30
Satyam Rastogi ff35b3076b apply commission setting model light mode 2026-05-15 15:06:16 +05:30
Satyam-Rastogi a9d3d1ce48 apply commission setting model light mode 2026-05-15 15:06:16 +05:30
Satyam Rastogi d2be9b1abf responsive new lead forms 2026-05-15 14:30:37 +05:30
Satyam-Rastogi eb34ec4cb3 responsive new lead forms 2026-05-15 14:30:37 +05:30
Satyam Rastogi 949d96a7c7 add leaderboard for canvassar 2026-05-15 12:05:05 +05:30
Satyam-Rastogi b1fdda407d add leaderboard for canvassar 2026-05-15 12:05:05 +05:30
Satyam Rastogi cef4be74b8 adds on /off commission for team members in jobs,when comm is on then owner can edit comm 2026-05-14 19:08:31 +05:30
Satyam-Rastogi 00e9c2af00 adds on /off commission for team members in jobs,when comm is on then owner can edit comm 2026-05-14 19:08:31 +05:30
Satyam Rastogi 7525871510 org team managment removed promotion demotion infor section from org Settings page 2026-05-14 18:21:13 +05:30
Satyam-Rastogi ef9fa1a401 org team managment removed promotion demotion infor section from org Settings page 2026-05-14 18:21:13 +05:30
Satyam Rastogi 72be14369e access control by role plus by person in orgsettings 2026-05-14 18:13:42 +05:30
Satyam-Rastogi d01e699250 access control by role plus by person in orgsettings 2026-05-14 18:13:42 +05:30
Satyam Rastogi 45301dbabd org level commission distribution for each member 2026-05-14 13:24:16 +05:30
Satyam-Rastogi 69d81c78d0 org level commission distribution for each member 2026-05-14 13:24:16 +05:30
Satyam Rastogi 42a1306aca door knock and referral attribution 2026-05-14 12:15:46 +05:30
Satyam-Rastogi 5aff14323c door knock and referral attribution 2026-05-14 12:15:46 +05:30
Satyam Rastogi 1798743dde create Teams tab in projectdetails page and display team managment section, removed from projects lists page 2026-05-13 20:24:33 +05:30
Satyam-Rastogi 8157608ff0 create Teams tab in projectdetails page and display team managment section, removed from projects lists page 2026-05-13 20:24:33 +05:30
Satyam Rastogi 6610054915 change org default commission from 10 to 0 2026-05-13 20:11:30 +05:30
Satyam-Rastogi 138ec168b2 change org default commission from 10 to 0 2026-05-13 20:11:30 +05:30
Satyam Rastogi 46605fd31e Team Members section added in Projects List page 2026-05-13 19:59:37 +05:30
Satyam-Rastogi b051b24fa2 Team Members section added in Projects List page 2026-05-13 19:59:37 +05:30
Satyam Rastogi 2299cda11d org team management section in org Settings module 2026-05-13 18:55:09 +05:30
Satyam-Rastogi b6a7792bf7 org team management section in org Settings module 2026-05-13 18:55:09 +05:30
Satyam Rastogi 315191c01b allow admin to access orgSetting page 2026-05-13 17:47:48 +05:30
Satyam-Rastogi 72d541cab2 allow admin to access orgSetting page 2026-05-13 17:47:48 +05:30
Satyam Rastogi 8f4a0e81fb commission overrides in org Settings page 2026-05-13 12:51:36 +05:30
Satyam-Rastogi 9bc8a42354 commission overrides in org Settings page 2026-05-13 12:51:36 +05:30
Satyam Rastogi 455462ded4 adds access modifiers for each role 2026-05-12 21:08:19 +05:30
Satyam-Rastogi 7598f8982a adds access modifiers for each role 2026-05-12 21:08:19 +05:30
Satyam Rastogi fea4ad2d22 Org settings module and user roles 2026-05-12 20:36:44 +05:30
Satyam-Rastogi e85ecd2571 Org settings module and user roles 2026-05-12 20:36:44 +05:30
Satyam Rastogi 3b1a77f500 team management feature in Owners Box 2026-05-12 19:29:52 +05:30
Satyam-Rastogi 17c3dc7307 team management feature in Owners Box 2026-05-12 19:29:52 +05:30
Satyam Rastogi ab701c5bd9 add name for each entry of budget & cost table 2026-05-12 17:37:11 +05:30
Satyam-Rastogi 91392bebcb add name for each entry of budget & cost table 2026-05-12 17:37:11 +05:30
Satyam Rastogi 87657fa8b3 remove Payments tab and adds sections into budges- costs 2026-05-12 16:58:33 +05:30
Satyam-Rastogi 3a47e1f88f remove Payments tab and adds sections into budges- costs 2026-05-12 16:58:33 +05:30
Satyam Rastogi 6ab3f4c2d4 configurable commission setting 2026-05-12 15:54:01 +05:30