Skip to content

feat: interactive bounty lifecycle flow diagram (Bounty #851)#944

Open
liufang88789-ui wants to merge 3 commits intoSolFoundry:mainfrom
liufang88789-ui:feat/interactive-bounty-flow-851
Open

feat: interactive bounty lifecycle flow diagram (Bounty #851)#944
liufang88789-ui wants to merge 3 commits intoSolFoundry:mainfrom
liufang88789-ui:feat/interactive-bounty-flow-851

Conversation

@liufang88789-ui
Copy link
Copy Markdown

Summary

Adds a new interactive bounty lifecycle flow diagram to the How It Works experience, covering the full path from bounty creation to payout:

post → claim → work → submit → review → payment

This delivers the requested React component with interactive state changes, SVG rendering, tooltips/detail panel behavior, and responsive layout.

What was added

New component

  • frontend/src/components/how-it-works/BountyFlowDiagram.tsx

Features:

  • Responsive SVG-based flow diagram
  • 6 lifecycle stages:
    • Post
    • Claim
    • Work
    • Submit
    • Review
    • Payment
  • Animated connector paths between stages
  • Hover / click interaction for selecting stages
  • Stage detail panel that updates as the user explores the flow
  • Mobile-friendly stage buttons below the diagram for touch interaction
  • Brand-aligned visual treatment using existing forge / emerald / purple / magenta tokens

Page integration

  • frontend/src/pages/HowItWorksPage.tsx
  • Inserts the new diagram above the existing tabbed explainer content
  • Expands layout width slightly to better support the interactive diagram

Tests

  • frontend/src/__tests__/bounty-flow-diagram.test.tsx

Coverage includes:

  • all lifecycle stages render
  • selected stage content updates correctly when interaction changes

Additional compatibility fix

To ensure this page builds correctly under the current framer-motion version, I also updated motion animation typing usage in shared animation code / related hero usage so the frontend build now succeeds cleanly in this repo state.

Acceptance Criteria Mapping

  • Interactive SVG diagram with state transitions
  • Hover/click-driven explanatory stage content
  • Responsive design for mobile and desktop
  • React component integrated into product UI

Validation

  • npm test -- --run bounty-flow-diagram.test.tsx
  • npm run build

Wallet for payout

7UqBdYyy9LG59Un6yzjAW8HPcTC4J63B9cZxBHWhhBHPXK7Y

Closes #851

liufang88789-ui and others added 3 commits April 6, 2026 09:32
- 5 unique templates in 2 sizes: 1080x1080 feed + 1200x675 card
- Dark theme with SolFoundry brand colors (emerald/magenta)
- SVG source files (fully editable in Figma/Canva/Inkscape)
- PNG preview renders for each template
- Python generator script (gen_templates.py) for regenerating
- Full design system documentation (README.md)

Closes SolFoundry#829
- add responsive SVG lifecycle diagram for post → claim → work → submit → review → payment
- add stage detail panel with hover/click interactions
- integrate diagram into How It Works page
- add focused diagram tests
- fix motion typing compatibility required for clean frontend build

Closes SolFoundry#851
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.

🏭 Bounty T2: Interactive Bounty Flow Diagram Component

1 participant