Skip to content

fix(web): fix funnel edit page and metrics display#35

Merged
dviejokfs merged 2 commits intomainfrom
fix/funnel-edit-and-metrics
Mar 14, 2026
Merged

fix(web): fix funnel edit page and metrics display#35
dviejokfs merged 2 commits intomainfrom
fix/funnel-edit-and-metrics

Conversation

@dviejokfs
Copy link
Contributor

@dviejokfs dviejokfs commented Mar 14, 2026

Summary

  • Fix funnel edit "Not Found": EditFunnel used useParams() to get funnelId, but no matching <Route path=":funnelId/edit"> existed — funnelId was always undefined. Now parsed from the URL and passed as a prop (same pattern as FunnelDetail).
  • Fix empty funnel cards: formatDateForAPI produced "2026-03-14 11:00:00" but the backend expects ISO 8601 ("2026-03-14T11:00:00.000Z"). The metrics query string deserialization failed, so cards showed nothing. Fixed by using date.toISOString().
  • Add step pipeline to funnel cards: Each card now shows a horizontal pipeline of steps with completions and conversion rates (e.g., page_view 1,234 → signup 890 (72%)).
  • Add error state: Funnel cards now show "Failed to load metrics" when the API errors instead of silently showing blank content.

Test plan

  • Navigate to /projects/{slug}/analytics/funnels — cards should show metrics and step pipeline
  • Navigate to /projects/{slug}/analytics/funnels/{id}/edit — should load the edit form (not "Funnel Not Found")
  • Create a funnel with multiple steps, verify step pipeline renders correctly on the card

- Fix EditFunnel showing "Funnel Not Found" by passing funnelId as prop
  instead of using useParams() (no matching Route param was defined)
- Fix funnel card metrics not loading due to invalid date format in API
  query (was 'yyyy-MM-dd HH:mm:ss', backend expects ISO 8601)
- Add step conversion pipeline to funnel cards showing step names,
  completions, and conversion rates
- Add error state handling for failed metrics queries
@dviejokfs dviejokfs merged commit ea4ec81 into main Mar 14, 2026
7 checks passed
@dviejokfs dviejokfs deleted the fix/funnel-edit-and-metrics branch March 14, 2026 11:25
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