Skip to content

[FEATURE] <Improve Folder Structure> #145

@mohdabdullahmeraj

Description

@mohdabdullahmeraj

💡 Describe the Feature

Refactor the src folder structure to improve organization, scalability, and maintainability. This involves creating separate directories for pages, reusable components, and context providers to create a clear separation of concerns.

🤷‍♂️ Why is this Feature Needed?

Currently, all components—whether they are full pages, reusable UI elements, or state management logic—are mixed together in the src/components directory. As the application grows, this flat structure becomes difficult to navigate and maintain. A more organized folder structure makes the codebase cleaner, more intuitive for new contributors to understand, and easier to scale with new features.

🧩 Additional Context

I propose the following new structure within the src folder:

  1. src/pages/: For top-level components that represent a full page or route.
  • HomePage.jsx
  • Dashboard.jsx
  • GoalsPage.jsx
  • AboutPage.jsx
  • ContactPage.jsx
  1. src/components/: For smaller, reusable components that are used across different pages.
  • Footer.jsx
  • GoalCard.jsx
  • AddGoalModal.jsx
  • AddTransactionModal.jsx
  • ConfirmationModal.jsx
  • ContributeToGoalModal.jsx
  • TransactionPDF.jsx
  1. src/context/: For all React Context providers.
  • TransactionContext.jsx
  • CurrencyContext.jsx

🙋 Your Details

Metadata

Metadata

Labels

Level 1Beginner level IssueenhancementNew feature or requestgssoc25This issue is a part of GirlScript Summer of Code 2025

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions