-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Feat: implement accounting page #39652
Merged
hayata-suenaga
merged 121 commits into
Expensify:main
from
teneeto:feat/37706/implement-accounting-page
Apr 9, 2024
Merged
Changes from 117 commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
7d89088
add initial english strings
teneeto 3492e28
add initial spanish strings
teneeto 6edddee
add accounting navigation param type
teneeto 917451c
add accounting to workspace screens
teneeto 7f529e5
add workspace acoounting route
teneeto e4ba2b0
add workspace accounting to workspace setting navigator
teneeto 4bfc371
add workspace accounting to link to screens
teneeto e05a0b0
add workspace accounting Page
teneeto 24c6143
add workspace accounting Page LHN navigation button
teneeto 6490bdc
fix lint
teneeto 03a3c76
add qbo round icon
teneeto 8b24bb5
export qbo round icon
teneeto 683af46
use qbo round icon
teneeto 1b377df
connection list item should not be interactive
teneeto 3576204
add default Avatar size for menu item icons
teneeto 4bb0dab
add xero round icon
teneeto cdb0a00
export xero round icon
teneeto 89759ea
add xero english strings
teneeto 1e3be49
add xero spanish strings
teneeto 0b0be1b
use xero round icon
teneeto a070d1d
fix lint
teneeto 919fb8d
add more english and spanish strings
teneeto ff4c890
add menu options to setup QBO
teneeto dd57fd6
add more english and spanish strings
teneeto 3937f69
break up qboConnectionMenuItems
teneeto e9cc581
add threeDotsMenu
teneeto 6f368ac
cleanup and add more menu options
teneeto 6b51aa0
add more english and spanish strings
teneeto bdd33e3
add disconnect integration confirm modal
teneeto 1ef2bb1
add more english and spanish strings
teneeto 21e9323
add activity indiccator while importing
teneeto f6d656a
update accounting navigation
teneeto b908d1d
update integration icons structure
teneeto 98530c3
add more english and spanish strings
teneeto 9d29a4e
add iconRight props to PopoverMenu
teneeto b139d28
add three-line bar to Header
teneeto 17faa54
merge conflict
teneeto f213517
add temp. fake qbo connection sync
teneeto 85b168d
revert accounting navigation
teneeto aeb72c6
fix lint
teneeto c275788
fix dep warning
teneeto 9fe235d
Merge branch 'main' into feat/37706/implement-accounting-page
narefyev91 961221e
resolve comments
narefyev91 c0ab3eb
fix lint
narefyev91 916e7a2
Merge branch 'main' of github.com:teneeto/Expensify into feat/37706/i…
teneeto 9ae94cb
Merge branch 'feat/37706/implement-accounting-page' of github.com:ten…
teneeto ee6f957
fix review comments
teneeto a2167a6
resolve more comments
teneeto a6385a0
add key to other integrations
teneeto b6ecfe6
remove shouldOverlay prop
teneeto 2ee9b3a
fix menuItem blank title on mobile
teneeto 0e0cfc4
fix blank avatar icon on mobile
teneeto f4a79b1
fix lint
teneeto 1e2f9f4
fix menuItem large screens wwrapping
teneeto cb98220
add threeDotsMenu to qboMenuItems
teneeto 63e4053
fix lint
teneeto 5fff74a
add onPress to pressable items
teneeto 7a3d215
Merge branch 'main' of github.com:teneeto/Expensify into feat/37706/i…
teneeto 8a99577
Merge branch 'main' of github.com:teneeto/Expensify into feat/37706/i…
teneeto ddceefa
add accounting to workspace settings stack navigator
teneeto 82fcadf
remove disabled connection for Xero
teneeto 4214307
add square icons for xero and qbo
teneeto 9330471
export square icons for xero and qbo
teneeto 7a7907a
use square icon for qbo options
teneeto 9efcee5
threeDotsMenuItems should br renamed to overflowMenu
teneeto f18d9d0
remove styles.pl2
teneeto 53e625e
add top margin to other integrations menu item
teneeto 57b636d
fix lint
teneeto 2eb02a7
Merge branch 'main' of github.com:teneeto/Expensify into feat/37706/i…
teneeto 32fe9aa
remove xero and qbo round icons
teneeto ada272e
remove xero and qbo exports
teneeto 0045693
use permissions for accounting routes
teneeto cdc533b
remove permissions for accounting routes
teneeto 847e61c
add hasAccessToAccountingFeatures
teneeto 57bc34d
use hasAccessToAccountingFeatures and FullPageNotFoundView
teneeto 55cc8ab
add sync progress data
teneeto f85f652
add policy connection sync data types
teneeto b31bc36
export PolicyConnectionSyncProgress
teneeto 69ed02c
map PolicyConnectionSyncProgress in onyx collections
teneeto 125ff9d
add QuickBooksOnline connection lib
teneeto ce7fd8a
add QuickBooksOnline connection button
teneeto c4bd689
use qbo connection button
teneeto 91fa03c
fix lint
teneeto bfbc944
remove hasAccessToAccountingFeatures
teneeto 501485d
fix review comments
teneeto 51fb585
remove fake url
teneeto 7c41337
pass in environmentURL
teneeto 5c063f7
update accounting spanish translations
teneeto 5d2bf13
update accounting translations
teneeto 8b439a3
add PolicyConnectionSyncStage types
teneeto 12077e9
use new PolicyConnectionSyncStage translation
teneeto 5992f8d
Merge branch 'Expensify:main' into feat/37706/implement-accounting-page
teneeto ab34dac
Update src/pages/workspace/accounting/qboConnectionButton/index.tsx
teneeto d568464
Update src/pages/workspace/WorkspaceInitialPage.tsx
teneeto 8783c9e
Update src/pages/workspace/accounting/WorkspaceAccountingPage.tsx
teneeto f4b83c0
Update src/pages/workspace/accounting/WorkspaceAccountingPage.tsx
teneeto b737826
Update src/libs/actions/connections/QuickBooksOnline.ts
teneeto 5d898e7
add ConnectToQuickbooksOnlineButton types
teneeto 2cc629a
use ConnectToQuickbooksOnlineButton types
teneeto 7799aa9
use ConnectToQuickbooksOnlineButton types
teneeto 38f320d
Merge branch 'feat/37706/implement-accounting-page' of github.com:ten…
teneeto 15baf69
fix lint
teneeto a2e6337
remove PolicyConnectionSyncStageParams
teneeto 2801198
update syncStageName params
teneeto da80a9f
update syncStageName args
teneeto db67fec
update filename
teneeto 8bae695
fix lint
teneeto 6c8456a
fix tsc
teneeto f479a4d
Merge branch 'main' of github.com:teneeto/Expensify into feat/37706/i…
teneeto d48e39c
fake a QBO connection sync
teneeto bf62167
Merge branch 'main' of github.com:teneeto/Expensify into feat/37706/i…
teneeto 9070d83
add spacer and do not show other integrations when sync in progress
teneeto a140831
use AdminPolicyAccessOrNotFoundWrapper
teneeto 5ec5257
remove are accounting enabled
teneeto 489acef
remove horizontal line spacer
teneeto 182ca0a
use AdminPolicyAccessOrNotFoundWrapper as parent component
teneeto 1bf076b
fix lint
teneeto c1c33d3
use PaidPolicyAccessOrNotFoundComponent
teneeto 23f1487
revert: use FeatureEnabledAccessOrNotFoundWrapper instead
teneeto 816bf44
remove other integrations
teneeto b1ade8e
use FeatureEnabledAccessOrNotFoundWrapper and PaidPolicyAccessOrNotFo…
teneeto 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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,50 @@ | ||
import type {StyleProp, ViewStyle} from 'react-native'; | ||
import type {OnyxEntry} from 'react-native-onyx'; | ||
import type {PopoverMenuItem} from '@components/PopoverMenu'; | ||
import type {TranslationPaths} from '@src/languages/types'; | ||
import type {AnchorPosition} from '@src/styles'; | ||
import type {Modal} from '@src/types/onyx'; | ||
import type AnchorAlignment from '@src/types/utils/AnchorAlignment'; | ||
import type IconAsset from '@src/types/utils/IconAsset'; | ||
|
||
type ThreeDotsMenuOnyxProps = { | ||
/** Details about any modals being used */ | ||
modal: OnyxEntry<Modal>; | ||
}; | ||
|
||
type ThreeDotsMenuProps = ThreeDotsMenuOnyxProps & { | ||
/** Tooltip for the popup icon */ | ||
iconTooltip?: TranslationPaths; | ||
|
||
/** icon for the popup trigger */ | ||
icon?: IconAsset; | ||
|
||
/** Any additional styles to pass to the icon container. */ | ||
iconStyles?: StyleProp<ViewStyle>; | ||
|
||
/** The fill color to pass into the icon. */ | ||
iconFill?: string; | ||
|
||
/** Function to call on icon press */ | ||
onIconPress?: () => void; | ||
|
||
/** menuItems that'll show up on toggle of the popup menu */ | ||
menuItems: PopoverMenuItem[]; | ||
|
||
/** The anchor position of the menu */ | ||
anchorPosition: AnchorPosition; | ||
|
||
/** The anchor alignment of the menu */ | ||
anchorAlignment?: AnchorAlignment; | ||
|
||
/** Whether the popover menu should overlay the current view */ | ||
shouldOverlay?: boolean; | ||
|
||
/** Whether the menu is disabled */ | ||
disabled?: boolean; | ||
|
||
/** Should we announce the Modal visibility changes? */ | ||
shouldSetModalVisibility?: boolean; | ||
}; | ||
|
||
export default ThreeDotsMenuProps; |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used yet