Skip to content

DEV Connect revenue and cost to backend and display them in the card form #370

@prooflesben

Description

@prooflesben

Overview

The main point of this tickets is to call our backend endpoints to populate our frontend with data. You will be updating the frontend store with this data and making sure the data shows up on the page. The graph and revenue and cost cards should be finished so you should just be hooking connecting things moreso than implementing designs. Make sure to call the method to get all of the cashflow only if the account is an admin. When you update the revenue you also will be adding the existing grants we have in the store but only the active grants this is because grants are the main revenue they will have. Since the cashflow data is sensitive info make sure that only admins will get the data from the backend.

Tasks

  • Create method to retrieve all cashflow data and call the method on an admins login
  • In said method retrieve the grants from the store and append the active grants to the revenues
  • For appending the active grants to revenue just use the grant fields to create revenue object and add it to the store
  • Update store with cashflow data
  • Update Revenue and Cost dropdowns to show all of the cashflow data

Acceptance Criteria

  • On login an admin account fetch's the cashflow data
  • Cashflow data shows in the cashflow screen including the cost cards and revenue cards

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