-
Notifications
You must be signed in to change notification settings - Fork 1
[MPDX-8973 MPDX-8974 MPDX-8981 MPDX-8982 MPDX-8987 MPDX-8988] - PGA Report Update #1479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b22c6a5
Adds firstDonationDate to PGA
wjames111 81e5c83
Adds ReportsStaffExpenses to PGA
wjames111 f2b81be
Add balance card
wjames111 79782d6
Add cardSkeleton
wjames111 cf6028f
Opens Contact to donations tab
wjames111 5586d43
Adds predefined filters
wjames111 5a3bf98
Adds Print button
wjames111 26382bc
Typo in readme
wjames111 c8f9bc7
Removes duplicate FundFields fragment
wjames111 80da160
Updates BalanceCard and Skeleton
wjames111 83f8fca
Adds totalDonationSum
wjames111 3e81832
Add pledge_frequency to commitment amount
wjames111 76462cb
Update totalDonationSum to donationPeriodTotalSum
wjames111 4c83cac
Fix cardSkeleton currency format
wjames111 23a6b9c
Re-use formatBalance in BalanceCard
wjames111 00adc2f
Fix styles in BalanceCard
wjames111 62bd533
Updates paginationFieldPolicy for PGA
wjames111 245efca
Adds handlePrint functionality; Updates pagination; Update loading st…
wjames111 f9ebeb2
Adds print button
wjames111 cab27aa
Update PGA tests, add print functionality test
wjames111 e45b001
Updates PGA URL test with donations param
wjames111 285d132
Make sortModel uncontrolled
wjames111 18f9d75
Fix for flickering table
wjames111 a3163fc
Remove extra loading spinner
wjames111 012315f
Fix cardSkeleton
wjames111 e37710b
Updates Reports to use a MenuIcon
wjames111 7e4b831
Gives FilterButton background style when open
wjames111 0376e8b
Put getHeaderTitleAccess into a helper function
wjames111 2eae9be
Fix rebase conflict
wjames111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
49 changes: 49 additions & 0 deletions
49
pages/accountLists/[accountListId]/reports/partnerGivingAnalysis/preDefinedFilters.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| import { DateTime } from 'luxon'; | ||
| import { UserOptionFragment } from 'src/components/Shared/Filters/FilterPanel.generated'; | ||
|
|
||
| export const preDefinedFilters: UserOptionFragment[] = [ | ||
| { | ||
| id: 'pre-defined-filter-last-full-12-months', | ||
| key: 'saved_contacts_filter_Last_Full_12_Months', | ||
| value: JSON.stringify({ | ||
| donationDate: { | ||
| min: DateTime.now().minus({ months: 12 }).startOf('month').toISODate(), | ||
| max: DateTime.now().minus({ months: 1 }).endOf('month').toISODate(), | ||
| }, | ||
| }), | ||
| __typename: 'Option' as const, | ||
| }, | ||
| { | ||
| id: 'pre-defined-filter-last-full-month', | ||
| key: 'saved_contacts_filter_Last_Full_Month', | ||
| value: JSON.stringify({ | ||
| donationDate: { | ||
| min: DateTime.now().minus({ months: 1 }).startOf('month').toISODate(), | ||
| max: DateTime.now().minus({ months: 1 }).endOf('month').toISODate(), | ||
| }, | ||
| }), | ||
| __typename: 'Option' as const, | ||
| }, | ||
| { | ||
| id: 'pre-defined-filter-month-to-date', | ||
| key: 'saved_contacts_filter_Month_to_Date', | ||
| value: JSON.stringify({ | ||
| donationDate: { | ||
| min: DateTime.now().startOf('month').toISODate(), | ||
| max: DateTime.now().toISODate(), | ||
| }, | ||
| }), | ||
| __typename: 'Option' as const, | ||
| }, | ||
| { | ||
| id: 'pre-defined-filter-year-to-date', | ||
| key: 'saved_contacts_filter_Year_to_Date', | ||
| value: JSON.stringify({ | ||
| donationDate: { | ||
| min: DateTime.now().startOf('year').toISODate(), | ||
| max: DateTime.now().toISODate(), | ||
| }, | ||
| }), | ||
| __typename: 'Option' as const, | ||
| }, | ||
| ]; |
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
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
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
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
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
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
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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
src/components/Reports/PartnerGivingAnalysisReport/Actions/HeaderActions.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import React from 'react'; | ||
| import PrintIcon from '@mui/icons-material/Print'; | ||
| import { Button, CircularProgress } from '@mui/material'; | ||
| import { useTranslation } from 'react-i18next'; | ||
|
|
||
| interface HeaderActionsProps { | ||
| onPrint: () => void; | ||
| loading?: boolean; | ||
| } | ||
|
|
||
| export const HeaderActions: React.FC<HeaderActionsProps> = ({ | ||
| onPrint, | ||
| loading = false, | ||
| }) => { | ||
| const { t } = useTranslation(); | ||
|
|
||
| return ( | ||
|
wjames111 marked this conversation as resolved.
|
||
| <Button | ||
| startIcon={loading ? <CircularProgress size={20} /> : <PrintIcon />} | ||
| onClick={onPrint} | ||
| variant="outlined" | ||
| disabled={loading} | ||
| > | ||
| {loading ? t('Loading...') : t('Print')} | ||
| </Button> | ||
| ); | ||
| }; | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.