Skip to content

Create Frontend DTO/models #173

@Vaibhav978

Description

@Vaibhav978

The frontend has no shared types for backend entities. Components will fetch API data without typed responses, leading to typos, inconsistent usage, and harder maintenance.

Describe the solution you'd like
Add TypeScript DTOs/models for User, Project, Expenditure, Donor, Donation, and Report in a shared frontend module (e.g. src/types/). Include a Pagination type and a generic PaginatedResponse for list endpoints.

Additional Context
Backend uses snake_case for most responses and camelCase in some places, choose a frontend convention and apply it consistently. Donations map to project_donations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions