feat: responsive dashboard layout and multi-step campaign form (#83, #86)#90
Merged
ayshadogo merged 2 commits intoJun 22, 2026
Conversation
Closes Dfunder#83: Make the dashboard fully responsive across screen sizes. - Sidebar navigation collapses to a fixed bottom nav bar on mobile (< 768px) - Stats widgets stack 1 column on mobile, 2 on tablet, 4 on desktop - Recent donations table is wrapped for horizontal scroll on small screens - Layout uses Tailwind breakpoints so there is no horizontal overflow Closes Dfunder#86: Build the multi-step campaign creation form container. - Add src/pages/campaigns/CreateCampaignPage.jsx managing step navigation - Track current step via formStep and persist inputs in draftCampaign Redux state - Render the correct step component based on formStep with Next/Back buttons - Warn on unsaved changes via useBeforeUnload when leaving the page Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Hello @josephchimebuka You've done a Great work here. 🫡 Please resolve conflicts |
…hboard-multistep-form Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # src/components/layout/MainLayout.jsx # src/pages/Dashboard.jsx # src/routes/AppRouter.jsx # src/store/index.js
ayshadogo
approved these changes
Jun 22, 2026
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements two features:
📊 Responsive Dashboard Layout (Closes #83)
Makes the entire dashboard fully responsive across all screen sizes.
grid-cols-1 md:grid-cols-2 lg:grid-cols-4).overflow-x-autocontainer with a sensiblemin-w, so it becomes horizontally scrollable on small screens instead of breaking the layout.📝 Multi-Step Form Structure (Closes #86)
Builds the multi-step campaign creation form container that manages step navigation.
src/pages/campaigns/CreateCampaignPage.jsxas the step container.formStepin Redux (newcampaignsslice withnextStep/prevStep/setFormStep).formStep(Details → Funding → Media → Review).draftCampaignRedux state as the user moves between steps, so data is retained when going back.useBeforeUnload.Changes
src/components/layout/MainLayout.jsx— responsive sidebar/bottom-nav layout (Tailwind)src/pages/Dashboard.jsx— responsive stats widgets + scrollable tablesrc/features/campaigns/campaignSlice.js— Redux slice forformStepanddraftCampaignsrc/store/index.js— register the campaigns reducersrc/pages/campaigns/CreateCampaignPage.jsx— multi-step form containersrc/pages/campaigns/steps/*— Details, Funding, Media, and Review step componentssrc/routes/AppRouter.jsx— route/campaigns/create(and/create) to the new pageTest plan
npm run lintpassesnpm run buildpassesMade with Cursor