-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(earnings): Implement earnings tabular list UI (#181)
* feat(appcontext): add earnining menu item to the side nav * feat(view): add earnings view component * feat(components): add earnings table component * feat(earnings table): add navbar * feat(app context): add CreditCardIcon for the earnings side menu item * feat(earnings table): style side menu with css * feat(earnings table): move styles to a separate file * feat(earnings top bar): add import and export buttons * feat(earnings top bar): style the title * feat(earnings table): display earnings table filled with dummy data * feat(earnings table): display earnings table with dummy data * feat(treetrackerapi): add getEarnings api * feat(earnings table): style table header * refactor(earnings table): dynamically displaying growers header and rows * feat(earnings table): make renderTableHeaderColumns function completely dynamic * feat(earnings table): style infoIcon horizontally align with effective date column * feat(earnings table): customize earnings table pagination ui * feat(earnings table): remove full colon on rows per page text * feat(tree tracker api): change earnings api end point * refactor(earnings table component): rename growers to earnings * feat(earning table top bar): add and style import export buttons * feat(earnings table columns): relatively position infoIcon * feat(earnings table): call earnings api inside useEffect * feat(earnings view): move side navigation menu to earnings view * feat(earnings table): load earnings from mock api * refactor(earnings table): put table header and body into their own components * chore(earnings table): rename totalCount to total * chore(earnings table): remove unsude MENU_WIDTH contant * chore(earnings view): remove unused classes object * feat(earnings table): add filter button * feat(earnings table): add date filter button * feat(earnings table): style filter button * feat(earnings table ): add filter earnings button * feat(earnings table top bar): arrage well top bar actions * feat(earnings table): add sort icon on table header * feat: enable capture matching for dev deployment * feat(earnings table filter): add filter and style filter header * feat(earnings table filter): add funder and payment system select filters * feat(earnings filter): adding action buttons * feat(earnings table filter): styled filters according to the designs * feat(earnings filters): toggle open filter * feat(earnigs table): add payment date column * feat(earnings table): made earnings table top bar buttons responsive * feat(earnings tool): add env variable to hide/show earnings tool * build(packages): add react-csv libary for exporting data to csv * feat(earnings table): export earnings to csv * feat(earnings table): put earnings meta data in an array of objects * feat(earnings table): display earning details * feat(theme): move all colors to the theme * feat(earnings details): render details page when when earning is not null * feat(earnings table): use them spacing for all spacing in styles * feat(earnings table): change rows per page options * feat(earnings table): use ernings table metadata to handle show/hide info icon * chore(app context): remove unused GrowerProvider variable * feat(earnings details): implement earning details UI * feat(earnings table): highligh select raw Co-authored-by: Zaven Arra <[email protected]> Co-authored-by: Nick Charlton <[email protected]>
- Loading branch information
1 parent
cc512ee
commit b7adb1c
Showing
12 changed files
with
1,061 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
REACT_APP_WEBMAP_DOMAIN=http://test.treetracker.org | ||
|
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"earnings": [ | ||
{ | ||
"id": 1, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 2, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 3, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 4, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 5, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 6, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 7, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
}, | ||
{ | ||
"id": 8, | ||
"grower": "Mohamed Sankoh", | ||
"funder": "Environment for Africa", | ||
"amount": "$2.34", | ||
"paymentSystem": "Visa", | ||
"effectiveDate": "Aug 10,2021", | ||
"paymentDate": "Aug 11,2021" | ||
} | ||
], | ||
"totalCount": 8, | ||
"links": { | ||
"prev": null, | ||
"next": "http://dev-k8s.treetracker.org/earnings?&offset=1" | ||
} | ||
} |
This file contains 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
Oops, something went wrong.