Skip to content

implement-Basic info form#94

Merged
ayshadogo merged 3 commits into
Dfunder:mainfrom
abk-tech:devBranch
Jun 23, 2026
Merged

implement-Basic info form#94
ayshadogo merged 3 commits into
Dfunder:mainfrom
abk-tech:devBranch

Conversation

@abk-tech

Copy link
Copy Markdown

PR Description

This PR introduces a new Basic Info step for the campaign creation flow and integrates it into the multi-step campaign setup.

✨ Changes Made

BasicInfoStep.jsx

Added form fields:
Campaign Title (max 100 chars)
Category (dropdown)
Short Description (max 200 chars)
Full Story (textarea)
Displays live character counters for Title and Short Description
Implements validation using Yup (required fields + length constraints)
Auto-saves form data to draftCampaign in Redux with a 550ms debounce
Exposes a validate() method via validationRef to allow parent-level validation before proceeding

CreateCampaignPage.jsx

Replaced existing first step with BasicInfoStep
Integrated validationRef into step handling
Updated Next button logic:
Runs step validation before advancing
Only proceeds if validation passes
Ensures valid data is saved to Redux draft before moving forward

🧩 Files Changed
BasicInfoStep.jsx
CreateCampaignPage.jsx

closes: #93

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sharrp Cntributor 🫡🫡🫡

Thank you for the effort sir

@ayshadogo ayshadogo merged commit 5bd403d into Dfunder:main Jun 23, 2026
2 checks passed
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.

Basic Info Form

2 participants