From 1c984573daad99254dde07471100bdb8e7aff5a8 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 8 May 2023 01:15:56 +0530 Subject: [PATCH 01/39] Pass client's lastReadTime to server --- src/libs/actions/Report.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 7eff22d315c0..d3c88b16d48c 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -63,6 +63,17 @@ Onyx.connect({ }, }); +let currentReportData = {}; +Onyx.connect({ + key: ONYXKEYS.COLLECTION.REPORT, + callback: (val) => { + if (!val) { + return; + } + currentReportData = val; + }, +}); + const allReports = {}; let conciergeChatReportID; const typingWatchTimers = {}; @@ -326,6 +337,8 @@ function addComment(reportID, text) { * @param {Object} newReportObject The optimistic report object created when making a new chat, saved as optimistic data */ function openReport(reportID, participantList = [], newReportObject = {}) { + const currentLastReadTime = currentReportData.lastReadTime; + console.log(`~~Monil clrt ${currentLastReadTime}`); const optimisticReportData = { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, @@ -398,6 +411,9 @@ function openReport(reportID, participantList = [], newReportObject = {}) { // Add the createdReportActionID parameter to the API call params.createdReportActionID = optimisticCreatedAction.reportActionID; } + if (currentLastReadTime) { + params.currentLastReadTime = currentLastReadTime; + } API.write('OpenReport', params, onyxData); } From 5189784bd755839d66f8b09c7dfe0cd6872526ae Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 8 May 2023 02:20:22 +0530 Subject: [PATCH 02/39] Listen for new messages --- src/pages/home/report/ReportActionsView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index d06075dc047f..85acf3b9baf4 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -238,6 +238,11 @@ class ReportActionsView extends React.Component { Report.subscribeToReportTypingEvents(this.props.report.reportID); this.didSubscribeToReportTypingEvents = true; } + + const wasNewMessageReceived = (this.props.reportActions.length > prevProps.reportActions.length); + if (wasNewMessageReceived) { + console.log(`~~Monil new message received ${this.props.report.lastMessageText}`); + } } componentWillUnmount() { From 8895b61df58f294b1e2d87fe3fb7d0f43b4160e3 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 8 May 2023 02:40:07 +0530 Subject: [PATCH 03/39] Mark comments as read --- src/libs/actions/Report.js | 1 + src/pages/home/report/ReportActionsView.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index d3c88b16d48c..b161ca130cb3 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -600,6 +600,7 @@ function openMoneyRequestsReportPage(chatReportID, linkedReportID) { * @param {String} reportID */ function readNewestAction(reportID) { + console.log(`~~Monil marking comment as read ${reportID}`); API.write('ReadNewestAction', { reportID, diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 85acf3b9baf4..983211c3f795 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -242,6 +242,7 @@ class ReportActionsView extends React.Component { const wasNewMessageReceived = (this.props.reportActions.length > prevProps.reportActions.length); if (wasNewMessageReceived) { console.log(`~~Monil new message received ${this.props.report.lastMessageText}`); + Report.readNewestAction(this.props.report.reportID); } } From 7f1314421796d9294c653d0d62b213045c2bde6e Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 8 May 2023 14:32:18 +0530 Subject: [PATCH 04/39] Add and update logic to set new marker --- src/pages/home/report/ReportActionsView.js | 85 ++++++++++++++++------ 1 file changed, 62 insertions(+), 23 deletions(-) diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 983211c3f795..db21eaff1600 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -24,6 +24,7 @@ import reportPropTypes from '../../reportPropTypes'; import * as ReactionList from './ReactionList/ReactionList'; import PopoverReactionList from './ReactionList/PopoverReactionList'; import getIsReportFullyVisible from '../../../libs/getIsReportFullyVisible'; +import {getSortedReportActions} from "../../../libs/ReportActionsUtils"; const propTypes = { /** The report currently being looked at */ @@ -81,42 +82,62 @@ class ReportActionsView extends React.Component { // e.g. they could have read these messages on another device and only just become active here const hasUnreadActions = ReportUtils.isUnread(this.props.report); if (!hasUnreadActions) { - this.setState({newMarkerReportActionID: ''}); + console.log(`~~Monil clearing`); + // this.setState({newMarkerReportActionID: ''}); } }); if (this.isReportFullyVisible()) { this.openReportIfNecessary(); } + } + + unreadLogic(reportActions) { + if (!reportActions) { + return; + } + const currentUserAccountID = Report.getCurrentUserAccountID(); + const isFromCurrentUser = false; + const lastReadTime = this.props.report.lastReadTime; + + const sortedReportActions = ReportActionsUtils.getSortedReportActions(reportActions, true); + const unreadReportAction = _.find(sortedReportActions, (reportAction) => { + return reportAction.actorAccountID !== currentUserAccountID && reportAction.created > lastReadTime; + }); + if (!unreadReportAction) { + return; + } + console.log(`~~Monil nra ${JSON.stringify(unreadReportAction)}`); + const newActionID = unreadReportAction.reportActionID; // This callback is triggered when a new action arrives via Pusher and the event is emitted from Report.js. This allows us to maintain // a single source of truth for the "new action" event instead of trying to derive that a new action has appeared from looking at props. - this.unsubscribeFromNewActionEvent = Report.subscribeToNewActionEvent(this.props.report.reportID, (isFromCurrentUser, newActionID) => { - const isNewMarkerReportActionIDSet = !_.isEmpty(this.state.newMarkerReportActionID); + const isNewMarkerReportActionIDSet = !_.isEmpty(this.state.newMarkerReportActionID); - // If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where - // they are now in the list. - if (isFromCurrentUser) { - ReportScrollManager.scrollToBottom(); + // If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where + // they are now in the list. + if (isFromCurrentUser) { + ReportScrollManager.scrollToBottom(); - // If the current user sends a new message in the chat we clear the new marker since they have "read" the report + // If the current user sends a new message in the chat we clear the new marker since they have "read" the report + console.log(`~~Monil 11`); + this.setState({newMarkerReportActionID: ''}); + } else if (this.isReportFullyVisible()) { + console.log(`~~Monil 12`); + // We use the scroll position to determine whether the report should be marked as read and the new line indicator reset. + // If the user is scrolled up and no new line marker is set we will set it otherwise we will do nothing so the new marker + // stays in it's previous position. + if (this.currentScrollOffset === 0) { + Report.readNewestAction(this.props.report.reportID); this.setState({newMarkerReportActionID: ''}); - } else if (this.isReportFullyVisible()) { - // We use the scroll position to determine whether the report should be marked as read and the new line indicator reset. - // If the user is scrolled up and no new line marker is set we will set it otherwise we will do nothing so the new marker - // stays in it's previous position. - if (this.currentScrollOffset === 0) { - Report.readNewestAction(this.props.report.reportID); - this.setState({newMarkerReportActionID: ''}); - } else if (!isNewMarkerReportActionIDSet) { - this.setState({newMarkerReportActionID: newActionID}); - } } else if (!isNewMarkerReportActionIDSet) { - // The report is not in view and we received a comment from another user while the new marker is not set - // so we will set the new marker now. this.setState({newMarkerReportActionID: newActionID}); } - }); + } else if (!isNewMarkerReportActionIDSet) { + // The report is not in view and we received a comment from another user while the new marker is not set + // so we will set the new marker now. + this.setState({newMarkerReportActionID: newActionID}); + } } shouldComponentUpdate(nextProps, nextState) { @@ -175,7 +196,7 @@ class ReportActionsView extends React.Component { return !_.isEqual(lodashGet(this.props.report, 'icons', []), lodashGet(nextProps.report, 'icons', [])); } - componentDidUpdate(prevProps) { + componentDidUpdate(prevProps, prevState) { const isReportFullyVisible = this.isReportFullyVisible(); // When returning from offline to online state we want to trigger a request to OpenReport which @@ -239,9 +260,27 @@ class ReportActionsView extends React.Component { this.didSubscribeToReportTypingEvents = true; } + // Check if we receive a new reportAction, either on an active chat or an inactive chat + // The find out the reportActions that arrived latest (i.e. we didn't had in our Onyx data) + // And the determine if and where to set the newMarker based on those newly received reportActions + // Finally ask the server to mark the report as read + console.log(this.props.report.reportID); + console.log(prevProps.report.reportID); + console.log(this.props.reportActions); + console.log(prevProps.reportActions); const wasNewMessageReceived = (this.props.reportActions.length > prevProps.reportActions.length); if (wasNewMessageReceived) { - console.log(`~~Monil new message received ${this.props.report.lastMessageText}`); + const newReportAction = _.filter(this.props.reportActions, obj => !_.findWhere(prevProps.reportActions, {reportActionID: obj.reportActionID})); + console.log(`~~Monil new message received ${this.props.report.lastMessageText} marker prevState ${JSON.stringify(prevState)}`); + this.unreadLogic(newReportAction); + // if (_.isEmpty(prevState.newMarkerReportActionID)) { + // console.log(`~~Monil setting new marker`); + // this.setState({ + // newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions), + // }, () => { + // console.log(`~~Monil's state ${JSON.stringify(this.state)}`); + // }); + // } Report.readNewestAction(this.props.report.reportID); } } From 87ef4b39e92db477589e1a6384efa8e1d65568e7 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 8 May 2023 15:44:51 +0530 Subject: [PATCH 05/39] Update more logic and fix active chat case --- src/pages/home/report/ReportActionsView.js | 51 ++++++++++------------ 1 file changed, 22 insertions(+), 29 deletions(-) diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index db21eaff1600..a6dc7f0d7c80 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -25,6 +25,7 @@ import * as ReactionList from './ReactionList/ReactionList'; import PopoverReactionList from './ReactionList/PopoverReactionList'; import getIsReportFullyVisible from '../../../libs/getIsReportFullyVisible'; import {getSortedReportActions} from "../../../libs/ReportActionsUtils"; +import {getReportActionsFromOnyx} from "../../../libs/actions/Report"; const propTypes = { /** The report currently being looked at */ @@ -57,6 +58,7 @@ class ReportActionsView extends React.Component { this.unsubscribeVisibilityListener = null; this.hasCachedActions = _.size(props.reportActions) > 0; + console.log(`~~Monil constructor`); this.state = { isFloatingMessageCounterVisible: false, newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, props.reportActions), @@ -97,7 +99,6 @@ class ReportActionsView extends React.Component { return; } const currentUserAccountID = Report.getCurrentUserAccountID(); - const isFromCurrentUser = false; const lastReadTime = this.props.report.lastReadTime; const sortedReportActions = ReportActionsUtils.getSortedReportActions(reportActions, true); @@ -107,37 +108,28 @@ class ReportActionsView extends React.Component { if (!unreadReportAction) { return; } - console.log(`~~Monil nra ${JSON.stringify(unreadReportAction)}`); const newActionID = unreadReportAction.reportActionID; + console.log(`~~Monil nra ${JSON.stringify(unreadReportAction)} na ${newActionID}`); // This callback is triggered when a new action arrives via Pusher and the event is emitted from Report.js. This allows us to maintain // a single source of truth for the "new action" event instead of trying to derive that a new action has appeared from looking at props. const isNewMarkerReportActionIDSet = !_.isEmpty(this.state.newMarkerReportActionID); + console.log(`~~Monil state ${this.state.newMarkerReportActionID}`); + if (!isNewMarkerReportActionIDSet) { + console.log(`~~Monil 11`); + this.setState({newMarkerReportActionID: newActionID}, () => { + console.log(`~~Monil after setting ${JSON.stringify(this.state)}`); + }); + } // If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where // they are now in the list. - if (isFromCurrentUser) { - ReportScrollManager.scrollToBottom(); - - // If the current user sends a new message in the chat we clear the new marker since they have "read" the report - console.log(`~~Monil 11`); - this.setState({newMarkerReportActionID: ''}); - } else if (this.isReportFullyVisible()) { - console.log(`~~Monil 12`); - // We use the scroll position to determine whether the report should be marked as read and the new line indicator reset. - // If the user is scrolled up and no new line marker is set we will set it otherwise we will do nothing so the new marker - // stays in it's previous position. - if (this.currentScrollOffset === 0) { - Report.readNewestAction(this.props.report.reportID); - this.setState({newMarkerReportActionID: ''}); - } else if (!isNewMarkerReportActionIDSet) { - this.setState({newMarkerReportActionID: newActionID}); - } - } else if (!isNewMarkerReportActionIDSet) { - // The report is not in view and we received a comment from another user while the new marker is not set - // so we will set the new marker now. - this.setState({newMarkerReportActionID: newActionID}); - } + // if (isFromCurrentUser) { + // ReportScrollManager.scrollToBottom(); + // + // // If the current user sends a new message in the chat we clear the new marker since they have "read" the report + // this.setState({newMarkerReportActionID: ''}); + // } } shouldComponentUpdate(nextProps, nextState) { @@ -246,7 +238,8 @@ class ReportActionsView extends React.Component { const didManuallyMarkReportAsUnread = (prevProps.report.lastReadTime !== this.props.report.lastReadTime) && ReportUtils.isUnread(this.props.report); if (didManuallyMarkReportAsUnread) { - this.setState({newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions)}); + console.log(`~~Monil possibly wrong logic!`); + // this.setState({newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions)}); } // Ensures subscription event succeeds when the report/workspace room is created optimistically. @@ -264,10 +257,10 @@ class ReportActionsView extends React.Component { // The find out the reportActions that arrived latest (i.e. we didn't had in our Onyx data) // And the determine if and where to set the newMarker based on those newly received reportActions // Finally ask the server to mark the report as read - console.log(this.props.report.reportID); - console.log(prevProps.report.reportID); - console.log(this.props.reportActions); - console.log(prevProps.reportActions); + // console.log(this.props.report.reportID); + // console.log(prevProps.report.reportID); + // console.log(this.props.reportActions); + // console.log(prevProps.reportActions); const wasNewMessageReceived = (this.props.reportActions.length > prevProps.reportActions.length); if (wasNewMessageReceived) { const newReportAction = _.filter(this.props.reportActions, obj => !_.findWhere(prevProps.reportActions, {reportActionID: obj.reportActionID})); From 3ce360eaa3ab1db26bc28256674af348729607fc Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 8 May 2023 17:43:15 +0530 Subject: [PATCH 06/39] Pass correct report actions --- src/libs/actions/Report.js | 11 +++++++++++ src/pages/home/ReportScreen.js | 2 +- src/pages/home/report/ReportActionsView.js | 5 ++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index b161ca130cb3..472d4c5052fa 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -1517,6 +1517,16 @@ function getCurrentUserAccountID() { return currentUserAccountID; } + +/** + * @param {String|null} reportID + */ +function getAllReportActions(reportID) { + if (reportID) { + return allReportActions[reportID]; + } + return allReportActions; +} export { addComment, addAttachment, @@ -1558,4 +1568,5 @@ export { hasAccountIDReacted, getCurrentUserAccountID, shouldShowReportActionNotification, + getAllReportActions, }; diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 6d573fe567bc..9dd32a948834 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -312,7 +312,7 @@ class ReportScreen extends React.Component { > {(this.isReportReadyForDisplay() && !isLoadingInitialReportActions && !isLoading) && ( 0; - console.log(`~~Monil constructor`); + console.log(`~~Monil In constructor`); + console.log(this.props.reportActions); this.state = { isFloatingMessageCounterVisible: false, newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, props.reportActions), From 3931f71ea7b10c7c79aec1ca28112822f51f48f9 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Tue, 9 May 2023 15:08:19 +0200 Subject: [PATCH 07/39] if reportActions exist, use onyx local data to render the messages --- src/libs/actions/Report.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 472d4c5052fa..28326d65f530 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -328,6 +328,10 @@ function addComment(reportID, text) { addActions(reportID, text); } +function reportActionsExist(reportID) { + return allReportActions[reportID] !== undefined; +} + /** * Gets the latest page of report actions and updates the last read message * If a chat with the passed reportID is not found, we will create a chat based on the passed participantList @@ -342,7 +346,7 @@ function openReport(reportID, participantList = [], newReportObject = {}) { const optimisticReportData = { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, - value: { + value: reportActionsExist(reportID) ? {} : { isLoadingReportActions: true, isLoadingMoreReportActions: false, lastReadTime: DateUtils.getDBTime(), @@ -1517,7 +1521,6 @@ function getCurrentUserAccountID() { return currentUserAccountID; } - /** * @param {String|null} reportID */ From f39a6741c7219373f8365d33d5f6e305c70276f5 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Wed, 10 May 2023 17:35:25 +0530 Subject: [PATCH 08/39] Don't set lastReadTime optimistically --- src/libs/actions/Report.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index f0565e6ff8dc..81b195974153 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -347,7 +347,6 @@ function openReport(reportID, participantList = [], newReportObject = {}) { value: { isLoadingReportActions: true, isLoadingMoreReportActions: false, - lastReadTime: DateUtils.getDBTime(), reportName: lodashGet(allReports, [reportID, 'reportName'], CONST.REPORT.DEFAULT_REPORT_NAME), }, }; @@ -627,7 +626,8 @@ function openMoneyRequestsReportPage(chatReportID, linkedReportID) { */ function readNewestAction(reportID) { console.log(`~~Monil marking comment as read ${reportID}`); - API.write('ReadNewestAction', + API.write( + 'ReadNewestAction', { reportID, }, @@ -1557,7 +1557,6 @@ function getCurrentUserAccountID() { return currentUserAccountID; } - /** * @param {String|null} reportID */ From 9a7ef68b709351d6b99602b8718b3a3edc9f56d7 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 10 May 2023 15:22:09 +0200 Subject: [PATCH 09/39] handling the unread line on report list --- src/pages/home/ReportScreen.js | 2 +- src/pages/home/report/ReportActionsList.js | 52 +++++++++++++++++++--- 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 9dd32a948834..a6cc084b270a 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -242,7 +242,7 @@ class ReportScreen extends React.Component { // the moment the ReportScreen becomes unfrozen we want to start the animation of the placeholder skeleton content // (which is shown, until all the actual views of the ReportScreen have been rendered) const shouldAnimate = !shouldFreeze; - + console.log('ReportScreen:render(): ', this.props.reportActions); return ( { const opacity = useSharedValue(0); + const currentUnreadMarker = useRef(null); const animatedStyles = useAnimatedStyle(() => ({ opacity: withTiming(opacity.value, {duration: 100}), })); @@ -92,7 +100,7 @@ const ReportActionsList = (props) => { * the height of the smallest report action possible. * @return {Number} */ - const calculateInitialNumToRender = useCallback(() => { + const initialNumToRender = useMemo(() => { const minimumReportActionHeight = styles.chatItem.paddingTop + styles.chatItem.paddingBottom + variables.fontSizeNormalHeight; const availableHeight = windowHeight @@ -102,7 +110,6 @@ const ReportActionsList = (props) => { const report = props.report; const hasOutstandingIOU = props.report.hasOutstandingIOU; - const newMarkerReportActionID = props.newMarkerReportActionID; const sortedReportActions = props.sortedReportActions; const mostRecentIOUReportActionID = props.mostRecentIOUReportActionID; @@ -116,7 +123,40 @@ const ReportActionsList = (props) => { index, }) => { // When the new indicator should not be displayed we explicitly set it to null - const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; + // const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; + + // console.log('----------Start renderItem----------'); + let shouldDisplayNewMarker = false; + + // console.log('currentUnreadMarker.current', currentUnreadMarker.current); + if (!currentUnreadMarker.current) { + // When the new indicator should not be displayed we explicitly set it to null + const nextMessage = sortedReportActions[index + 1]; + + // console.log('1) reportAction', reportAction, report.lastReadTime); + + // console.log('nextMessage', nextMessage); + const isCurrentMessageUnread = !!isUnreadMsg(reportAction, report.lastReadTime); + + shouldDisplayNewMarker = isCurrentMessageUnread && !isUnreadMsg(nextMessage, report.lastReadTime); + + // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); + + // console.log('shouldDisplayNewMarker', shouldDisplayNewMarker); + + if (!currentUnreadMarker.current && shouldDisplayNewMarker) { + currentUnreadMarker.current = {id: reportAction.reportActionID, index, created: reportAction.created}; + + // console.log('1) currentUnreadMarker.current', currentUnreadMarker.current); + } + } else { + // console.log('2) reportAction', reportAction, report.lastReadTime, currentUnreadMarker.current); + shouldDisplayNewMarker = reportAction.reportActionID === currentUnreadMarker.current.id; + + // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); + + // console.log('2) currentUnreadMarker.current', currentUnreadMarker.current); + } return ( { index={index} /> ); - }, [report, hasOutstandingIOU, newMarkerReportActionID, sortedReportActions, mostRecentIOUReportActionID]); + }, [report, hasOutstandingIOU, sortedReportActions, mostRecentIOUReportActionID]); // Native mobile does not render updates flatlist the changes even though component did update called. // To notify there something changes we can use extraData prop to flatlist @@ -151,7 +191,7 @@ const ReportActionsList = (props) => { ]} keyExtractor={keyExtractor} initialRowHeight={32} - initialNumToRender={calculateInitialNumToRender()} + initialNumToRender={initialNumToRender} onEndReached={props.loadMoreChats} onEndReachedThreshold={0.75} ListFooterComponent={() => { From e022a7a70675a9556b4058c1eb1694f6b6a5365b Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 10 May 2023 16:15:37 +0200 Subject: [PATCH 10/39] using the reportsActions from onyx --- src/pages/home/ReportScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index a6cc084b270a..ba2002031de4 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -312,7 +312,7 @@ class ReportScreen extends React.Component { > {(this.isReportReadyForDisplay() && !isLoadingInitialReportActions && !isLoading) && ( Date: Wed, 10 May 2023 16:55:09 +0200 Subject: [PATCH 11/39] style updated --- src/libs/actions/Report.js | 14 ++-- src/pages/home/report/ReportActionsList.js | 96 +++++++++++----------- src/pages/home/report/ReportActionsView.js | 4 +- 3 files changed, 56 insertions(+), 58 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index be28b9b78415..cfd2985da3f7 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -348,12 +348,14 @@ function openReport(reportID, participantList = [], newReportObject = {}) { const optimisticReportData = { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, - value: reportActionsExist(reportID) ? {} : { - isLoadingReportActions: true, - isLoadingMoreReportActions: false, - lastReadTime: DateUtils.getDBTime(), - reportName: lodashGet(allReports, [reportID, 'reportName'], CONST.REPORT.DEFAULT_REPORT_NAME), - }, + value: reportActionsExist(reportID) + ? {} + : { + isLoadingReportActions: true, + isLoadingMoreReportActions: false, + lastReadTime: DateUtils.getDBTime(), + reportName: lodashGet(allReports, [reportID, 'reportName'], CONST.REPORT.DEFAULT_REPORT_NAME), + }, }; const reportSuccessData = { onyxMethod: Onyx.METHOD.MERGE, diff --git a/src/pages/home/report/ReportActionsList.js b/src/pages/home/report/ReportActionsList.js index 0389df6cf462..e82c775fae3f 100644 --- a/src/pages/home/report/ReportActionsList.js +++ b/src/pages/home/report/ReportActionsList.js @@ -1,7 +1,5 @@ import PropTypes from 'prop-types'; -import React, { - useCallback, useEffect, useState, useRef, useMemo, -} from 'react'; +import React, {useCallback, useEffect, useState, useRef, useMemo} from 'react'; import Animated, {useSharedValue, useAnimatedStyle, withTiming} from 'react-native-reanimated'; import _ from 'underscore'; import InvertedFlatList from '../../../components/InvertedFlatList'; @@ -101,10 +99,8 @@ const ReportActionsList = (props) => { * @return {Number} */ const initialNumToRender = useMemo(() => { - const minimumReportActionHeight = styles.chatItem.paddingTop + styles.chatItem.paddingBottom - + variables.fontSizeNormalHeight; - const availableHeight = windowHeight - - (CONST.CHAT_FOOTER_MIN_HEIGHT + variables.contentHeaderHeight); + const minimumReportActionHeight = styles.chatItem.paddingTop + styles.chatItem.paddingBottom + variables.fontSizeNormalHeight; + const availableHeight = windowHeight - (CONST.CHAT_FOOTER_MIN_HEIGHT + variables.contentHeaderHeight); return Math.ceil(availableHeight / minimumReportActionHeight); }, [windowHeight]); @@ -118,58 +114,58 @@ const ReportActionsList = (props) => { * @param {Number} args.index * @returns {React.Component} */ - const renderItem = useCallback(({ - item: reportAction, - index, - }) => { - // When the new indicator should not be displayed we explicitly set it to null - // const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; - - // console.log('----------Start renderItem----------'); - let shouldDisplayNewMarker = false; - - // console.log('currentUnreadMarker.current', currentUnreadMarker.current); - if (!currentUnreadMarker.current) { + const renderItem = useCallback( + ({item: reportAction, index}) => { // When the new indicator should not be displayed we explicitly set it to null - const nextMessage = sortedReportActions[index + 1]; + // const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; - // console.log('1) reportAction', reportAction, report.lastReadTime); + // console.log('----------Start renderItem----------'); + let shouldDisplayNewMarker = false; - // console.log('nextMessage', nextMessage); - const isCurrentMessageUnread = !!isUnreadMsg(reportAction, report.lastReadTime); + // console.log('currentUnreadMarker.current', currentUnreadMarker.current); + if (!currentUnreadMarker.current) { + // When the new indicator should not be displayed we explicitly set it to null + const nextMessage = sortedReportActions[index + 1]; - shouldDisplayNewMarker = isCurrentMessageUnread && !isUnreadMsg(nextMessage, report.lastReadTime); + // console.log('1) reportAction', reportAction, report.lastReadTime); - // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); + // console.log('nextMessage', nextMessage); + const isCurrentMessageUnread = !!isUnreadMsg(reportAction, report.lastReadTime); - // console.log('shouldDisplayNewMarker', shouldDisplayNewMarker); + shouldDisplayNewMarker = isCurrentMessageUnread && !isUnreadMsg(nextMessage, report.lastReadTime); - if (!currentUnreadMarker.current && shouldDisplayNewMarker) { - currentUnreadMarker.current = {id: reportAction.reportActionID, index, created: reportAction.created}; + // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); - // console.log('1) currentUnreadMarker.current', currentUnreadMarker.current); + // console.log('shouldDisplayNewMarker', shouldDisplayNewMarker); + + if (!currentUnreadMarker.current && shouldDisplayNewMarker) { + currentUnreadMarker.current = {id: reportAction.reportActionID, index, created: reportAction.created}; + + // console.log('1) currentUnreadMarker.current', currentUnreadMarker.current); + } + } else { + // console.log('2) reportAction', reportAction, report.lastReadTime, currentUnreadMarker.current); + shouldDisplayNewMarker = reportAction.reportActionID === currentUnreadMarker.current.id; + + // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); + + // console.log('2) currentUnreadMarker.current', currentUnreadMarker.current); } - } else { - // console.log('2) reportAction', reportAction, report.lastReadTime, currentUnreadMarker.current); - shouldDisplayNewMarker = reportAction.reportActionID === currentUnreadMarker.current.id; - - // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); - - // console.log('2) currentUnreadMarker.current', currentUnreadMarker.current); - } - return ( - - ); - }, [report, hasOutstandingIOU, sortedReportActions, mostRecentIOUReportActionID]); + return ( + + ); + }, + [report, hasOutstandingIOU, sortedReportActions, mostRecentIOUReportActionID], + ); // Native mobile does not render updates flatlist the changes even though component did update called. // To notify there something changes we can use extraData prop to flatlist diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 868bddadc32c..767bcc4f481b 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -253,9 +253,9 @@ class ReportActionsView extends React.Component { // console.log(prevProps.report.reportID); // console.log(this.props.reportActions); // console.log(prevProps.reportActions); - const wasNewMessageReceived = (this.props.reportActions.length > prevProps.reportActions.length); + const wasNewMessageReceived = this.props.reportActions.length > prevProps.reportActions.length; if (wasNewMessageReceived) { - const newReportAction = _.filter(this.props.reportActions, obj => !_.findWhere(prevProps.reportActions, {reportActionID: obj.reportActionID})); + const newReportAction = _.filter(this.props.reportActions, (obj) => !_.findWhere(prevProps.reportActions, {reportActionID: obj.reportActionID})); console.log(`~~Monil new message received ${this.props.report.lastMessageText} marker prevState ${JSON.stringify(prevState)}`); this.unreadLogic(newReportAction); // if (_.isEmpty(prevState.newMarkerReportActionID)) { From 15377c7b82f5bd4833821b8ae7cd447586d6bd24 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Wed, 10 May 2023 21:32:48 +0530 Subject: [PATCH 12/39] Some more updates to logic to fix 2 1:1 and switch cases --- src/libs/ReportUtils.js | 2 +- src/pages/home/report/ReportActionsView.js | 31 +++++++++++----------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index c15cf97a9afb..74cfd40db654 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -1680,7 +1680,7 @@ function getNewMarkerReportActionID(report, sortedAndFilteredReportActions) { return ''; } - const newMarkerIndex = _.findLastIndex(sortedAndFilteredReportActions, (reportAction) => (reportAction.created || '') > report.lastReadTime); + const newMarkerIndex = _.findLastIndex(sortedAndFilteredReportActions, (reportAction) => (reportAction.actorAccountID !== currentUserAccountID) && (reportAction.created || '') > report.lastReadTime ); return _.has(sortedAndFilteredReportActions[newMarkerIndex], 'reportActionID') ? sortedAndFilteredReportActions[newMarkerIndex].reportActionID : ''; } diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 868bddadc32c..4a15e89bd8df 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -60,7 +60,6 @@ class ReportActionsView extends React.Component { console.log(this.props.reportActions); this.state = { isFloatingMessageCounterVisible: false, - newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, props.reportActions), }; this.currentScrollOffset = 0; @@ -91,29 +90,31 @@ class ReportActionsView extends React.Component { if (this.isReportFullyVisible()) { this.openReportIfNecessary(); } + + console.log(`~~Monil not active action`); + this.unreadLogic(this.props.reportActions); + Report.readNewestAction(this.props.report.reportID); } - unreadLogic(reportActions) { + unreadLogic(reportActions, isActiveOnChat = false) { if (!reportActions) { return; } - const currentUserAccountID = Report.getCurrentUserAccountID(); - const lastReadTime = this.props.report.lastReadTime; - - const sortedReportActions = ReportActionsUtils.getSortedReportActions(reportActions, true); - const unreadReportAction = _.find(sortedReportActions, (reportAction) => { - return reportAction.actorAccountID !== currentUserAccountID && reportAction.created > lastReadTime; - }); - if (!unreadReportAction) { + console.log(`~~Monil state ${this.state.newMarkerReportActionID}`); + const isNewMarkerReportActionIDSet = !_.isEmpty(this.state.newMarkerReportActionID); + if (isNewMarkerReportActionIDSet) { return; } - const newActionID = unreadReportAction.reportActionID; - console.log(`~~Monil nra ${JSON.stringify(unreadReportAction)} na ${newActionID}`); + if (isActiveOnChat) { + console.log(`~~Monil returning as active`); + return; + } + + const newActionID = ReportUtils.getNewMarkerReportActionID(this.props.report, reportActions); + console.log(`~~Monil newActionID ${newActionID}`); // This callback is triggered when a new action arrives via Pusher and the event is emitted from Report.js. This allows us to maintain // a single source of truth for the "new action" event instead of trying to derive that a new action has appeared from looking at props. - const isNewMarkerReportActionIDSet = !_.isEmpty(this.state.newMarkerReportActionID); - console.log(`~~Monil state ${this.state.newMarkerReportActionID}`); if (!isNewMarkerReportActionIDSet) { console.log(`~~Monil 11`); this.setState({newMarkerReportActionID: newActionID}, () => { @@ -257,7 +258,7 @@ class ReportActionsView extends React.Component { if (wasNewMessageReceived) { const newReportAction = _.filter(this.props.reportActions, obj => !_.findWhere(prevProps.reportActions, {reportActionID: obj.reportActionID})); console.log(`~~Monil new message received ${this.props.report.lastMessageText} marker prevState ${JSON.stringify(prevState)}`); - this.unreadLogic(newReportAction); + this.unreadLogic(newReportAction, true); // if (_.isEmpty(prevState.newMarkerReportActionID)) { // console.log(`~~Monil setting new marker`); // this.setState({ From 279e1a230e3ce9655a87fd5a9cab276407651084 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Wed, 10 May 2023 21:55:39 +0530 Subject: [PATCH 13/39] Attempt to fix unread marker logic --- src/pages/home/report/ReportActionsView.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 4a15e89bd8df..4267ab500d7b 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -228,12 +228,13 @@ class ReportActionsView extends React.Component { this.setState({newMarkerReportActionID: ''}); } + console.log(`~~Monil component updated prev ${prevProps.report.lastReadTime} now ${this.props.report.lastReadTime}`); // Checks to see if a report comment has been manually "marked as unread". All other times when the lastReadTime // changes it will be because we marked the entire report as read. - const didManuallyMarkReportAsUnread = prevProps.report.lastReadTime !== this.props.report.lastReadTime && ReportUtils.isUnread(this.props.report); + const didManuallyMarkReportAsUnread = prevProps.report.lastReadTime > this.props.report.lastReadTime && ReportUtils.isUnread(this.props.report); if (didManuallyMarkReportAsUnread) { - console.log(`~~Monil possibly wrong logic!`); - // this.setState({newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions)}); + console.log(`~~Monil marking report as unread?`); + this.setState({newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions)}); } // Ensures subscription event succeeds when the report/workspace room is created optimistically. From 0843baee6e107b1b96ac23cb260334a339c4a04d Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 15 May 2023 09:00:34 +0200 Subject: [PATCH 14/39] Clean up, and handling unread cases --- src/pages/home/ReportScreen.js | 2 +- src/pages/home/report/ReportActionsList.js | 60 +++++----- src/pages/home/report/ReportActionsView.js | 125 ++------------------- 3 files changed, 47 insertions(+), 140 deletions(-) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 00fb964b2f2b..7eb837346b12 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -245,7 +245,7 @@ class ReportScreen extends React.Component { // the moment the ReportScreen becomes unfrozen we want to start the animation of the placeholder skeleton content // (which is shown, until all the actual views of the ReportScreen have been rendered) const shouldAnimate = !shouldFreeze; - console.log('ReportScreen:render(): ', this.props.reportActions); + return ( { +function ReportActionsList(props) { const opacity = useSharedValue(0); const currentUnreadMarker = useRef(null); + const report = props.report; + const lastReadTimeRef = useRef(report.lastReadTime); + const sortedReportActions = props.sortedReportActions; + const [reportActionSize, setReportActionSize] = useState(sortedReportActions.lenght); const animatedStyles = useAnimatedStyle(() => ({ opacity: withTiming(opacity.value, {duration: 100}), })); @@ -93,6 +98,31 @@ const ReportActionsList = (props) => { const windowHeight = props.windowHeight; + useEffect(() => { + if (currentUnreadMarker.current) { + return; + } + + if (reportActionSize === sortedReportActions.length) { + return; + } + + setReportActionSize(sortedReportActions.length); + Report.readNewestAction(report.reportID); + currentUnreadMarker.current = null; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [sortedReportActions.length, report.reportID]); + + useEffect(() => { + if (lastReadTimeRef.current === report.lastReadTime && !ReportUtils.isUnread(report)) { + return; + } + + lastReadTimeRef.current = report.lastReadTime; + currentUnreadMarker.current = null; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [report.lastReadTime]); + /** * Calculates the ideal number of report actions to render in the first render, based on the screen height and on * the height of the smallest report action possible. @@ -104,9 +134,8 @@ const ReportActionsList = (props) => { return Math.ceil(availableHeight / minimumReportActionHeight); }, [windowHeight]); - const report = props.report; const hasOutstandingIOU = props.report.hasOutstandingIOU; - const sortedReportActions = props.sortedReportActions; + const mostRecentIOUReportActionID = props.mostRecentIOUReportActionID; /** @@ -116,40 +145,18 @@ const ReportActionsList = (props) => { */ const renderItem = useCallback( ({item: reportAction, index}) => { - // When the new indicator should not be displayed we explicitly set it to null - // const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; - - // console.log('----------Start renderItem----------'); let shouldDisplayNewMarker = false; - // console.log('currentUnreadMarker.current', currentUnreadMarker.current); if (!currentUnreadMarker.current) { - // When the new indicator should not be displayed we explicitly set it to null const nextMessage = sortedReportActions[index + 1]; - - // console.log('1) reportAction', reportAction, report.lastReadTime); - - // console.log('nextMessage', nextMessage); const isCurrentMessageUnread = !!isUnreadMsg(reportAction, report.lastReadTime); - shouldDisplayNewMarker = isCurrentMessageUnread && !isUnreadMsg(nextMessage, report.lastReadTime); - // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); - - // console.log('shouldDisplayNewMarker', shouldDisplayNewMarker); - if (!currentUnreadMarker.current && shouldDisplayNewMarker) { currentUnreadMarker.current = {id: reportAction.reportActionID, index, created: reportAction.created}; - - // console.log('1) currentUnreadMarker.current', currentUnreadMarker.current); } } else { - // console.log('2) reportAction', reportAction, report.lastReadTime, currentUnreadMarker.current); shouldDisplayNewMarker = reportAction.reportActionID === currentUnreadMarker.current.id; - - // console.log('>>>>>>>>>>shouldDisplayNewMarker', shouldDisplayNewMarker); - - // console.log('2) currentUnreadMarker.current', currentUnreadMarker.current); } return ( { // To notify there something changes we can use extraData prop to flatlist const extraData = [!props.isDrawerOpen && props.isSmallScreenWidth ? props.newMarkerReportActionID : undefined, ReportUtils.isArchivedRoom(props.report)]; const shouldShowReportRecipientLocalTime = ReportUtils.canShowReportRecipientLocalTime(props.personalDetails, props.report); + return ( { /> ); -}; +} ReportActionsList.propTypes = propTypes; ReportActionsList.defaultProps = defaultProps; diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 39dbec93900e..25b292534957 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -4,7 +4,6 @@ import _ from 'underscore'; import lodashGet from 'lodash/get'; import * as Report from '../../../libs/actions/Report'; import reportActionPropTypes from './reportActionPropTypes'; -import Visibility from '../../../libs/Visibility'; import Timing from '../../../libs/actions/Timing'; import CONST from '../../../CONST'; import compose from '../../../libs/compose'; @@ -19,7 +18,6 @@ import networkPropTypes from '../../../components/networkPropTypes'; import ReportActionsList from './ReportActionsList'; import CopySelectionHelper from '../../../components/CopySelectionHelper'; import * as ReportActionsUtils from '../../../libs/ReportActionsUtils'; -import * as ReportUtils from '../../../libs/ReportUtils'; import reportPropTypes from '../../reportPropTypes'; import * as ReactionList from './ReactionList/ReactionList'; import PopoverReactionList from './ReactionList/PopoverReactionList'; @@ -56,8 +54,8 @@ class ReportActionsView extends React.Component { this.unsubscribeVisibilityListener = null; this.hasCachedActions = _.size(props.reportActions) > 0; - console.log(`~~Monil In constructor`); - console.log(this.props.reportActions); + // console.log(`~~Monil In constructor`); + // console.log(this.props.reportActions); this.state = { isFloatingMessageCounterVisible: false, }; @@ -73,63 +71,10 @@ class ReportActionsView extends React.Component { } componentDidMount() { - this.unsubscribeVisibilityListener = Visibility.onVisibilityChange(() => { - if (!this.isReportFullyVisible()) { - return; - } - - // If the app user becomes active and they have no unread actions we clear the new marker to sync their device - // e.g. they could have read these messages on another device and only just become active here - const hasUnreadActions = ReportUtils.isUnread(this.props.report); - if (!hasUnreadActions) { - console.log(`~~Monil clearing`); - // this.setState({newMarkerReportActionID: ''}); - } - }); - - if (this.isReportFullyVisible()) { - this.openReportIfNecessary(); - } - - console.log(`~~Monil not active action`); - this.unreadLogic(this.props.reportActions); - Report.readNewestAction(this.props.report.reportID); - } - - unreadLogic(reportActions, isActiveOnChat = false) { - if (!reportActions) { - return; - } - console.log(`~~Monil state ${this.state.newMarkerReportActionID}`); - const isNewMarkerReportActionIDSet = !_.isEmpty(this.state.newMarkerReportActionID); - if (isNewMarkerReportActionIDSet) { - return; - } - if (isActiveOnChat) { - console.log(`~~Monil returning as active`); + if (!this.isReportFullyVisible()) { return; } - - const newActionID = ReportUtils.getNewMarkerReportActionID(this.props.report, reportActions); - console.log(`~~Monil newActionID ${newActionID}`); - - // This callback is triggered when a new action arrives via Pusher and the event is emitted from Report.js. This allows us to maintain - // a single source of truth for the "new action" event instead of trying to derive that a new action has appeared from looking at props. - if (!isNewMarkerReportActionIDSet) { - console.log(`~~Monil 11`); - this.setState({newMarkerReportActionID: newActionID}, () => { - console.log(`~~Monil after setting ${JSON.stringify(this.state)}`); - }); - } - - // If a new comment is added and it's from the current user scroll to the bottom otherwise leave the user positioned where - // they are now in the list. - // if (isFromCurrentUser) { - // ReportScrollManager.scrollToBottom(); - // - // // If the current user sends a new message in the chat we clear the new marker since they have "read" the report - // this.setState({newMarkerReportActionID: ''}); - // } + this.openReportIfNecessary(); } shouldComponentUpdate(nextProps, nextState) { @@ -185,7 +130,7 @@ class ReportActionsView extends React.Component { return !_.isEqual(lodashGet(this.props.report, 'icons', []), lodashGet(nextProps.report, 'icons', [])); } - componentDidUpdate(prevProps, prevState) { + componentDidUpdate(prevProps) { const isReportFullyVisible = this.isReportFullyVisible(); // When returning from offline to online state we want to trigger a request to OpenReport which @@ -206,37 +151,12 @@ class ReportActionsView extends React.Component { const didScreenSizeIncrease = prevProps.isSmallScreenWidth && !this.props.isSmallScreenWidth; const didReportBecomeVisible = isReportFullyVisible && (didSidebarClose || didScreenSizeIncrease); if (didReportBecomeVisible) { - this.setState({ - newMarkerReportActionID: ReportUtils.isUnread(this.props.report) ? ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions) : '', - }); + // this.setState({ + // newMarkerReportActionID: ReportUtils.isUnread(this.props.report) ? ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions) : '', + // }); this.openReportIfNecessary(); } - // If the report is unread, we want to check if the number of actions has decreased. If so, then it seems that one of them was deleted. In this case, if the deleted action was the - // one marking the unread point, we need to recalculate which action should be the unread marker. - if (ReportUtils.isUnread(this.props.report) && prevProps.reportActions.length > this.props.reportActions.length) { - this.setState({ - newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions), - }); - } - - // When the user navigates to the LHN the ReportActionsView doesn't unmount and just remains hidden. - // The next time we navigate to the same report (e.g. by swiping or tapping the LHN row) we want the new marker to clear. - const didSidebarOpen = !prevProps.isDrawerOpen && this.props.isDrawerOpen; - const didUserNavigateToSidebarAfterReadingReport = didSidebarOpen && !ReportUtils.isUnread(this.props.report); - if (didUserNavigateToSidebarAfterReadingReport) { - this.setState({newMarkerReportActionID: ''}); - } - - console.log(`~~Monil component updated prev ${prevProps.report.lastReadTime} now ${this.props.report.lastReadTime}`); - // Checks to see if a report comment has been manually "marked as unread". All other times when the lastReadTime - // changes it will be because we marked the entire report as read. - const didManuallyMarkReportAsUnread = prevProps.report.lastReadTime > this.props.report.lastReadTime && ReportUtils.isUnread(this.props.report); - if (didManuallyMarkReportAsUnread) { - console.log(`~~Monil marking report as unread?`); - this.setState({newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions)}); - } - // Ensures subscription event succeeds when the report/workspace room is created optimistically. // Check if the optimistic `OpenReport` or `AddWorkspaceRoom` has succeeded by confirming // any `pendingFields.createChat` or `pendingFields.addWorkspaceRoom` fields are set to null. @@ -246,30 +166,6 @@ class ReportActionsView extends React.Component { Report.subscribeToReportTypingEvents(this.props.report.reportID); this.didSubscribeToReportTypingEvents = true; } - - // Check if we receive a new reportAction, either on an active chat or an inactive chat - // The find out the reportActions that arrived latest (i.e. we didn't had in our Onyx data) - // And the determine if and where to set the newMarker based on those newly received reportActions - // Finally ask the server to mark the report as read - // console.log(this.props.report.reportID); - // console.log(prevProps.report.reportID); - // console.log(this.props.reportActions); - // console.log(prevProps.reportActions); - const wasNewMessageReceived = this.props.reportActions.length > prevProps.reportActions.length; - if (wasNewMessageReceived) { - const newReportAction = _.filter(this.props.reportActions, (obj) => !_.findWhere(prevProps.reportActions, {reportActionID: obj.reportActionID})); - console.log(`~~Monil new message received ${this.props.report.lastMessageText} marker prevState ${JSON.stringify(prevState)}`); - this.unreadLogic(newReportAction, true); - // if (_.isEmpty(prevState.newMarkerReportActionID)) { - // console.log(`~~Monil setting new marker`); - // this.setState({ - // newMarkerReportActionID: ReportUtils.getNewMarkerReportActionID(this.props.report, this.props.reportActions), - // }, () => { - // console.log(`~~Monil's state ${JSON.stringify(this.state)}`); - // }); - // } - Report.readNewestAction(this.props.report.reportID); - } } componentWillUnmount() { @@ -280,7 +176,7 @@ class ReportActionsView extends React.Component { if (this.unsubscribeFromNewActionEvent) { this.unsubscribeFromNewActionEvent(); } - + console.log('unsubscribing from report channel: reportID: ', this.props.report.reportID, 'reportName: ', this.props.report.name); Report.unsubscribeFromReportChannel(this.props.report.reportID); } @@ -294,9 +190,11 @@ class ReportActionsView extends React.Component { // If the report is optimistic (AKA not yet created) we don't need to call openReport again openReportIfNecessary() { if (this.props.report.isOptimisticReport) { + console.log('optimistic report'); return; } + console.log('opening report'); Report.openReport(this.props.report.reportID); } @@ -374,6 +272,7 @@ class ReportActionsView extends React.Component { if (!_.size(this.props.reportActions)) { return null; } + // console.log(`REPORT VIEW render - ID(${this.props.report.reportID}): `, this.props.reportActions); return ( <> Date: Fri, 19 May 2023 19:16:44 +0530 Subject: [PATCH 15/39] Revert to another approach --- .../javascript/authorChecklist/index.js | 1 + .../javascript/awaitStagingDeploys/index.js | 1 + .../javascript/checkDeployBlockers/index.js | 1 + .../createOrUpdateStagingDeploy/index.js | 1 + .../getDeployPullRequestList/index.js | 1 + .../getPullRequestDetails.js | 56 +- .../javascript/getPullRequestDetails/index.js | 57 +- .../javascript/getReleaseBody/index.js | 1 + .../isPullRequestMergeable/index.js | 1 + .../javascript/isStagingDeployLocked/index.js | 1 + .../markPullRequestsAsDeployed/index.js | 1 + .../javascript/postTestBuildComment/index.js | 1 + .../reopenIssueWithComment/index.js | 1 + .../javascript/reviewerChecklist/index.js | 1 + .../triggerWorkflowAndWait/index.js | 1 + .../javascript/verifySignedCommits/index.js | 1 + .github/libs/GithubUtils.js | 1 + .github/workflows/e2ePerformanceTests.yml | 119 +-- .github/workflows/lint.yml | 9 + .github/workflows/platformDeploy.yml | 7 + .github/workflows/testBuild.yml | 17 +- .prettierignore | 2 + __mocks__/react-native.js | 1 + android/app/build.gradle | 4 +- android/app/src/main/AndroidManifest.xml | 4 +- .../com/expensify/chat/MainApplication.java | 1 + .../chat/RNTextInputResetModule.java | 46 ++ .../chat/RNTextInputResetPackage.java | 28 + .../chat/bootsplash/BootSplashDialog.java | 2 - .../chat/bootsplash/BootSplashModule.java | 75 +- .../chat/bootsplash/BootSplashQueue.java | 28 + android/app/src/main/res/anim/fade_out.xml | 7 - .../main/res/mipmap-hdpi/bootsplash_logo.png | Bin 3846 -> 3833 bytes .../main/res/mipmap-mdpi/bootsplash_logo.png | Bin 2645 -> 2706 bytes .../main/res/mipmap-xhdpi/bootsplash_logo.png | Bin 4917 -> 4899 bytes .../res/mipmap-xxhdpi/bootsplash_logo.png | Bin 7108 -> 7103 bytes .../res/mipmap-xxxhdpi/bootsplash_logo.png | Bin 9839 -> 9952 bytes android/app/src/main/res/values/colors.xml | 1 + android/app/src/main/res/values/styles.xml | 10 +- assets/images/avatars/room.png | Bin 0 -> 3032 bytes assets/images/expensify-logo--dev.svg | 19 +- assets/images/expensify-logo--staging.svg | 19 +- assets/images/expensify-logo-round-dark.png | Bin 0 -> 14185 bytes assets/images/expensify_wordmark_white.svg | 26 + assets/images/new-expensify-dark.svg | 1 + assets/images/qrcode.svg | 5 + config/webpack/webpack.common.js | 22 +- contributingGuides/STYLE.md | 91 +-- ...ok-for-Small-to-Medium-Sized-Businesses.md | 2 +- .../bootsplash_logo.png | Bin 2379 -> 2428 bytes .../bootsplash_logo@2x.png | Bin 4073 -> 4056 bytes .../bootsplash_logo@3x.png | Bin 5701 -> 5717 bytes ios/NewExpensify/Info.plist | 4 +- ios/NewExpensify/RCTBootSplash.m | 79 +- ios/NewExpensifyTests/Info.plist | 4 +- ios/Podfile | 19 +- ios/Podfile.lock | 46 +- jest/setup.js | 1 + package-lock.json | 487 +++++++++-- package.json | 33 +- patches/react-native-fast-image+8.6.3.patch | 300 +++++++ patches/react-native-reanimated+3.1.0.patch | 177 ++++ src/CONST.js | 81 +- src/Expensify.js | 26 +- src/ONYXKEYS.js | 9 + src/ROUTES.js | 16 +- src/components/AddPaymentMethodMenu.js | 11 +- src/components/AddressSearch/index.js | 8 + src/components/ArrowKeyFocusManager.js | 100 +-- src/components/AttachmentCarousel/index.js | 44 +- src/components/AttachmentModal.js | 14 +- src/components/AttachmentView.js | 7 +- src/components/Avatar.js | 10 +- .../AvatarCropModal/ImageCropView.js | 17 +- src/components/AvatarCropModal/Slider.js | 3 +- src/components/AvatarWithDisplayName.js | 6 +- src/components/AvatarWithImagePicker.js | 1 + src/components/Badge.js | 7 +- src/components/Button/index.js | 89 +- src/components/ButtonWithDropdown.js | 65 -- src/components/ButtonWithDropdownMenu.js | 139 ++++ src/components/ButtonWithMenu.js | 105 --- src/components/Checkbox.js | 5 + .../DeeplinkWrapper/index.website.js | 6 +- src/components/EmojiPicker/EmojiPicker.js | 18 +- .../EmojiPicker/EmojiPickerMenu/index.js | 19 +- .../EmojiPickerMenu/index.native.js | 17 +- src/components/EnvironmentBadge.js | 3 +- src/components/Header.js | 21 +- src/components/HeaderWithCloseButton.js | 5 +- src/components/Icon/Expensicons.js | 2 + src/components/ImageView/index.native.js | 1 - src/components/KYCWall/BaseKYCWall.js | 59 +- src/components/KYCWall/kycWallPropTypes.js | 17 +- src/components/LHNOptionsList/OptionRowLHN.js | 13 +- src/components/MagicCodeInput.js | 464 +++++------ src/components/MentionSuggestions.js | 111 +++ src/components/MenuItem.js | 3 +- src/components/Modal/BaseModal.js | 7 + .../MoneyRequestConfirmationList.js | 22 +- src/components/MoneyRequestHeader.js | 128 ++- src/components/MultipleAvatars.js | 17 +- src/components/OpacityView.js | 2 +- src/components/OptionRow.js | 4 +- src/components/OptionsList/BaseOptionsList.js | 63 +- .../OptionsList/optionsListPropTypes.js | 4 + ...etonView.js => OptionsListSkeletonView.js} | 10 +- .../OptionsSelector/BaseOptionsSelector.js | 19 +- src/components/PDFView/index.js | 3 +- src/components/Popover/index.js | 2 + src/components/PopoverMenu/index.js | 190 ++--- src/components/PopoverWithMeasuredContent.js | 31 +- .../GenericPressable/BaseGenericPressable.js | 92 ++- .../Pressable/PressableWithFeedback.js | 33 +- .../index.js | 2 +- src/components/QRCode/index.js | 63 ++ .../QRShare/QRShareWithDownload/index.js | 39 + .../QRShareWithDownload/index.native.js | 35 + .../QRShare/getQrCodeDownloadFileName.js | 4 + src/components/QRShare/index.js | 98 +++ src/components/QRShare/propTypes.js | 27 + src/components/Reactions/AddReactionBubble.js | 2 +- .../Reactions/ReactionTooltipContent.js | 20 +- .../Reactions/ReportActionItemReactions.js | 9 +- src/components/ReportActionItem/IOUPreview.js | 118 +-- src/components/ReportActionItem/IOUQuote.js | 81 -- .../{IOUAction.js => MoneyRequestAction.js} | 93 ++- .../ReportActionItem/ReportPreview.js | 170 ++++ src/components/ReportActionItem/TaskAction.js | 95 +++ .../ReportActionItem/TaskPreview.js | 102 +++ src/components/ReportWelcomeText.js | 5 +- src/components/Section.js | 7 +- src/components/SettlementButton.js | 77 +- src/components/SplashScreenHider/index.js | 28 + .../SplashScreenHider/index.native.js | 87 ++ src/components/SubscriptAvatar.js | 32 +- src/components/Switch.js | 29 +- src/components/TaskHeader.js | 121 +++ src/components/TaskSelectorLink.js | 9 +- src/components/TestToolMenu.js | 3 + src/components/TextInput/BaseTextInput.js | 7 +- src/components/UnreadActionIndicator.js | 4 +- .../withCurrentUserPersonalDetails.js | 9 +- src/components/withLocalize.js | 5 +- src/components/withNavigationFallback.js | 2 +- src/components/withNavigationFocus.js | 2 +- src/hooks/useArrowKeyFocusManager.js | 72 ++ src/hooks/useKeyboardShortcut.js | 37 + src/hooks/useWindowDimensions.js | 20 + src/languages/en.js | 108 ++- src/languages/es.js | 111 ++- src/libs/Accessibility/index.js | 2 +- src/libs/BootSplash/index.js | 28 +- src/libs/BootSplash/index.native.js | 3 +- src/libs/CurrencyUtils.js | 3 +- src/libs/DateUtils.js | 29 +- src/libs/E2E/apiMocks/openApp.js | 25 - src/libs/E2E/apiMocks/openReport.js | 1 - src/libs/EmojiUtils.js | 101 ++- src/libs/GetStyledTextArray.js | 2 +- src/libs/HttpUtils.js | 9 + src/libs/IOUUtils.js | 9 +- src/libs/Middleware/Logging.js | 3 + src/libs/Middleware/Reauthentication.js | 10 +- .../AppNavigator/ModalStackNavigators.js | 82 +- src/libs/Navigation/NavigationRoot.js | 3 - src/libs/Navigation/linkingConfig.js | 36 +- src/libs/Network/SequentialQueue.js | 3 +- .../LocalNotification/BrowserNotifications.js | 22 +- .../LocalNotification/index.desktop.js | 4 +- .../LocalNotification/index.website.js | 4 +- src/libs/OptionsListUtils.js | 53 +- src/libs/Permissions.js | 9 + src/libs/PersonalDetailsUtils.js | 7 +- src/libs/Pusher/EventType.js | 7 +- src/libs/PusherUtils.js | 24 + src/libs/ReportActionsUtils.js | 117 ++- src/libs/ReportUtils.js | 501 ++++++++++-- src/libs/SelectionScraper/index.js | 20 +- src/libs/SidebarUtils.js | 43 +- .../Device/getDeviceInfo/getBaseInfo.js | 8 + .../getDeviceInfo/getOSAndName/index.js | 3 + .../getOSAndName/index.native.js | 11 + .../Device/getDeviceInfo/index.android.js | 10 + .../Device/getDeviceInfo/index.desktop.js | 10 + .../actions/Device/getDeviceInfo/index.ios.js | 10 + .../actions/Device/getDeviceInfo/index.js | 23 + src/libs/actions/Device/index.js | 3 +- src/libs/actions/IOU.js | 761 ++++++++++-------- src/libs/actions/Policy.js | 41 +- src/libs/actions/Report.js | 191 ++++- src/libs/actions/Session/index.js | 119 ++- src/libs/actions/Task.js | 411 +++++++++- src/libs/actions/TwoFactorAuthActions.js | 14 + src/libs/actions/User.js | 199 +++-- src/libs/convertToLTR/index.android.js | 9 + src/libs/convertToLTR/index.js | 3 + src/libs/fileDownload/index.android.js | 33 +- src/libs/isReportMessageAttachment.js | 7 +- src/libs/localFileDownload/index.android.js | 36 + src/libs/localFileDownload/index.ios.js | 21 + src/libs/localFileDownload/index.js | 16 + .../index.js | 6 +- .../index.native.js | 6 +- .../toggleReportActionComposeView/index.js | 9 - .../index.native.js | 3 - src/pages/NewChatPage.js | 48 +- .../BankAccountManualStep.js | 8 +- .../BankAccountPlaidStep.js | 29 +- src/pages/ReimbursementAccount/EnableStep.js | 2 - src/pages/ReportDetailsPage.js | 23 +- src/pages/ReportParticipantsPage.js | 49 +- src/pages/ReportSettingsPage.js | 277 ------- src/pages/SearchPage.js | 12 +- src/pages/ShareCodePage.js | 95 +++ src/pages/home/HeaderView.js | 68 +- src/pages/home/ReportScreen.js | 32 +- src/pages/home/TaskHeaderView.js | 34 - .../BaseReportActionContextMenu.js | 12 +- .../report/ContextMenu/ContextMenuActions.js | 33 +- .../PopoverReportActionContextMenu.js | 39 +- .../ContextMenu/ReportActionContextMenu.js | 4 +- .../ReactionList/PopoverReactionList.js | 177 +++- .../home/report/ReactionList/ReactionList.js | 10 +- src/pages/home/report/ReportActionCompose.js | 306 +++++-- src/pages/home/report/ReportActionItem.js | 84 +- .../home/report/ReportActionItemCreated.js | 6 +- .../home/report/ReportActionItemFragment.js | 8 +- .../report/ReportActionItemMessageEdit.js | 20 +- .../report/ReportActionItemParentAction.js | 91 +++ .../home/report/ReportActionItemSingle.js | 7 +- .../home/report/ReportActionItemThread.js | 78 ++ src/pages/home/report/ReportActionsList.js | 82 +- src/pages/home/report/ReportActionsView.js | 130 +-- .../home/report/ReportDetailsShareCodePage.js | 36 + src/pages/home/report/ReportFooter.js | 2 +- .../home/report/reportActionPropTypes.js | 1 - src/pages/home/sidebar/SidebarLinks.js | 19 +- .../FloatingActionButtonAndPopover.js | 2 +- src/pages/iou/IOUCurrencySelection.js | 1 + src/pages/iou/IOUDetailsModal.js | 34 +- src/pages/iou/IOUTransactions.js | 6 +- src/pages/iou/MoneyRequestModal.js | 30 +- .../iou/steps/MoneyRequestConfirmPage.js | 4 + .../MoneyRequestParticipantsSelector.js | 11 + .../MoneyRequestParticipantsSplitSelector.js | 11 + src/pages/personalDetailsPropType.js | 4 +- src/pages/settings/InitialSettingsPage.js | 7 + src/pages/settings/PasswordPage.js | 2 +- .../settings/Payments/AddDebitCardPage.js | 2 +- .../Payments/PaymentsPage/BasePaymentsPage.js | 15 +- .../settings/Preferences/PreferencesPage.js | 1 + .../Contacts/ContactMethodDetailsPage.js | 101 ++- .../Profile/Contacts/NewContactMethodPage.js | 110 +-- src/pages/settings/Profile/ProfilePage.js | 6 +- .../settings/Profile/TimezoneInitialPage.js | 1 + .../Report/NotificationPreferencePage.js | 66 ++ .../settings/Report/ReportSettingsPage.js | 189 +++++ src/pages/settings/Report/RoomNamePage.js | 108 +++ .../settings/Security/SecuritySettingsPage.js | 41 +- .../Security/TwoFactorAuth/CodesPage.js | 139 ++++ .../Security/TwoFactorAuth/DisablePage.js | 59 ++ .../Security/TwoFactorAuth/IsEnabledPage.js | 70 ++ .../Security/TwoFactorAuth/SuccessPage.js | 44 + .../BaseTwoFactorAuthForm.js | 93 +++ .../TwoFactorAuthForm/index.android.js | 8 + .../TwoFactorAuth/TwoFactorAuthForm/index.js | 8 + .../Security/TwoFactorAuth/VerifyPage.js | 151 ++++ src/pages/signin/PasswordForm.js | 2 +- src/pages/signin/SignInPageLayout/Footer.js | 35 +- src/pages/signin/SignInPageLayout/index.js | 17 +- .../ValidateCodeForm/BaseValidateCodeForm.js | 37 +- src/pages/tasks/NewTaskDescriptionPage.js | 16 +- src/pages/tasks/NewTaskPage.js | 38 +- src/pages/tasks/NewTaskTitlePage.js | 17 +- src/pages/tasks/TaskAssigneeSelectorModal.js | 45 +- src/pages/tasks/TaskDescriptionPage.js | 54 +- src/pages/tasks/TaskTitlePage.js | 53 +- src/pages/workspace/WorkspaceInitialPage.js | 4 +- .../workspace/WorkspaceInviteMessagePage.js | 31 +- src/pages/workspace/WorkspaceInvitePage.js | 43 +- src/pages/workspace/WorkspaceMembersPage.js | 25 +- src/pages/workspace/WorkspaceSettingsPage.js | 6 +- src/pages/workspace/WorkspacesListPage.js | 1 + .../card/WorkspaceCardVBANoECardView.js | 2 - src/setup/index.js | 8 - ...s.js => ButtonWithDropdownMenu.stories.js} | 12 +- src/styles/StyleUtils.js | 49 +- .../getModalStyles/getBaseModalStyles.js | 12 +- src/styles/styles.js | 209 ++++- src/styles/themes/default.js | 4 +- src/styles/utilities/spacing.js | 8 + src/styles/variables.js | 9 +- tests/actions/IOUTest.js | 293 +++++-- tests/ui/UnreadIndicatorsTest.js | 1 + tests/unit/CurrencyUtilsTest.js | 12 +- tests/unit/EmojiTest.js | 334 +++++++- tests/unit/IOUUtilsTest.js | 14 +- tests/unit/OptionsListUtilsTest.js | 8 +- tests/unit/ReportUtilsTest.js | 4 +- tests/unit/SidebarOrderTest.js | 21 +- tests/unit/isReportMessageAttachmentTest.js | 22 + web/index.html | 36 +- web/splash/splash.css | 25 - web/splash/splash.js | 41 - 305 files changed, 9987 insertions(+), 3536 deletions(-) create mode 100644 android/app/src/main/java/com/expensify/chat/RNTextInputResetModule.java create mode 100644 android/app/src/main/java/com/expensify/chat/RNTextInputResetPackage.java create mode 100644 android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashQueue.java delete mode 100644 android/app/src/main/res/anim/fade_out.xml create mode 100644 assets/images/avatars/room.png create mode 100644 assets/images/expensify-logo-round-dark.png create mode 100644 assets/images/expensify_wordmark_white.svg create mode 100644 assets/images/new-expensify-dark.svg create mode 100644 assets/images/qrcode.svg create mode 100644 patches/react-native-fast-image+8.6.3.patch create mode 100644 patches/react-native-reanimated+3.1.0.patch delete mode 100644 src/components/ButtonWithDropdown.js create mode 100644 src/components/ButtonWithDropdownMenu.js delete mode 100644 src/components/ButtonWithMenu.js create mode 100644 src/components/MentionSuggestions.js rename src/components/{LHNSkeletonView.js => OptionsListSkeletonView.js} (92%) create mode 100644 src/components/QRCode/index.js create mode 100644 src/components/QRShare/QRShareWithDownload/index.js create mode 100644 src/components/QRShare/QRShareWithDownload/index.native.js create mode 100644 src/components/QRShare/getQrCodeDownloadFileName.js create mode 100644 src/components/QRShare/index.js create mode 100644 src/components/QRShare/propTypes.js delete mode 100644 src/components/ReportActionItem/IOUQuote.js rename src/components/ReportActionItem/{IOUAction.js => MoneyRequestAction.js} (55%) create mode 100644 src/components/ReportActionItem/ReportPreview.js create mode 100644 src/components/ReportActionItem/TaskAction.js create mode 100644 src/components/ReportActionItem/TaskPreview.js create mode 100644 src/components/SplashScreenHider/index.js create mode 100644 src/components/SplashScreenHider/index.native.js create mode 100644 src/components/TaskHeader.js create mode 100644 src/hooks/useArrowKeyFocusManager.js create mode 100644 src/hooks/useKeyboardShortcut.js create mode 100644 src/hooks/useWindowDimensions.js create mode 100644 src/libs/actions/Device/getDeviceInfo/getBaseInfo.js create mode 100644 src/libs/actions/Device/getDeviceInfo/getOSAndName/index.js create mode 100644 src/libs/actions/Device/getDeviceInfo/getOSAndName/index.native.js create mode 100644 src/libs/actions/Device/getDeviceInfo/index.android.js create mode 100644 src/libs/actions/Device/getDeviceInfo/index.desktop.js create mode 100644 src/libs/actions/Device/getDeviceInfo/index.ios.js create mode 100644 src/libs/actions/Device/getDeviceInfo/index.js create mode 100644 src/libs/actions/TwoFactorAuthActions.js create mode 100644 src/libs/convertToLTR/index.android.js create mode 100644 src/libs/convertToLTR/index.js create mode 100644 src/libs/localFileDownload/index.android.js create mode 100644 src/libs/localFileDownload/index.ios.js create mode 100644 src/libs/localFileDownload/index.js delete mode 100644 src/libs/toggleReportActionComposeView/index.js delete mode 100644 src/libs/toggleReportActionComposeView/index.native.js delete mode 100644 src/pages/ReportSettingsPage.js create mode 100644 src/pages/ShareCodePage.js delete mode 100644 src/pages/home/TaskHeaderView.js create mode 100644 src/pages/home/report/ReportActionItemParentAction.js create mode 100644 src/pages/home/report/ReportActionItemThread.js create mode 100644 src/pages/home/report/ReportDetailsShareCodePage.js create mode 100644 src/pages/settings/Report/NotificationPreferencePage.js create mode 100644 src/pages/settings/Report/ReportSettingsPage.js create mode 100644 src/pages/settings/Report/RoomNamePage.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/CodesPage.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/DisablePage.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/IsEnabledPage.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/SuccessPage.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/index.android.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/index.js create mode 100644 src/pages/settings/Security/TwoFactorAuth/VerifyPage.js rename src/stories/{ButtonWithDropdown.stories.js => ButtonWithDropdownMenu.stories.js} (64%) create mode 100644 tests/unit/isReportMessageAttachmentTest.js delete mode 100644 web/splash/splash.css delete mode 100644 web/splash/splash.js diff --git a/.github/actions/javascript/authorChecklist/index.js b/.github/actions/javascript/authorChecklist/index.js index bc663653b382..4b10443a1c03 100644 --- a/.github/actions/javascript/authorChecklist/index.js +++ b/.github/actions/javascript/authorChecklist/index.js @@ -619,6 +619,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/awaitStagingDeploys/index.js b/.github/actions/javascript/awaitStagingDeploys/index.js index 7ff2243b602b..c2206b6a434f 100644 --- a/.github/actions/javascript/awaitStagingDeploys/index.js +++ b/.github/actions/javascript/awaitStagingDeploys/index.js @@ -656,6 +656,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/checkDeployBlockers/index.js b/.github/actions/javascript/checkDeployBlockers/index.js index a3a77ad1c85b..dd9754626448 100644 --- a/.github/actions/javascript/checkDeployBlockers/index.js +++ b/.github/actions/javascript/checkDeployBlockers/index.js @@ -623,6 +623,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js index d39e2c38fd93..b52a1016c7d8 100644 --- a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js +++ b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js @@ -847,6 +847,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/getDeployPullRequestList/index.js b/.github/actions/javascript/getDeployPullRequestList/index.js index 5ce8db17589d..2a7573aba9f1 100644 --- a/.github/actions/javascript/getDeployPullRequestList/index.js +++ b/.github/actions/javascript/getDeployPullRequestList/index.js @@ -782,6 +782,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.js b/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.js index c55b4ff57a1f..e87c58ebaa65 100644 --- a/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.js +++ b/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.js @@ -26,35 +26,53 @@ if (titleRegex) { } /** - * Process a pull request and outputs it's merge commit hash. + * Output pull request merge actor. * * @param {Object} PR */ -function outputMergeCommitHash(PR) { - if (!_.isEmpty(PR)) { - console.log(`Found matching pull request: ${PR.html_url}`); - core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); +function outputMergeActor(PR) { + if (user === 'OSBotify') { + core.setOutput('MERGE_ACTOR', PR.merged_by.login); } else { - const err = new Error('Could not find matching pull request'); - console.error(err); - core.setFailed(err); + core.setOutput('MERGE_ACTOR', user); } } /** - * Process a pull request and outputs it's merge actor + * Output forked repo URL if PR includes changes from a fork. * * @param {Object} PR */ -function outputMergeActor(PR) { +function outputForkedRepoUrl(PR) { + if (PR.head.repo.html_url === GithubUtils.APP_REPO_URL) { + core.setOutput('FORKED_REPO_URL', ''); + } else { + core.setOutput('FORKED_REPO_URL', `${PR.head.repo.html_url}.git`); + } +} + +/** + * Output pull request data. + * + * @param {Object} PR + */ +function outputPullRequestData(PR) { + core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); + core.setOutput('HEAD_COMMIT_SHA', PR.head.sha); + core.setOutput('IS_MERGED', PR.merged); + outputMergeActor(PR); + outputForkedRepoUrl(PR); +} + +/** + * Process a pull request and output its data. + * + * @param {Object} PR + */ +function processPullRequest(PR) { if (!_.isEmpty(PR)) { console.log(`Found matching pull request: ${PR.html_url}`); - - if (user === 'OSBotify') { - core.setOutput('MERGE_ACTOR', PR.merged_by.login); - } else { - core.setOutput('MERGE_ACTOR', user); - } + outputPullRequestData(PR); } else { const err = new Error('Could not find matching pull request'); console.error(err); @@ -79,8 +97,7 @@ if (pullRequestNumber) { pull_number: pullRequestNumber, }) .then(({data}) => { - outputMergeCommitHash(data); - outputMergeActor(data); + processPullRequest(data); }) .catch(handleUnknownError); } else { @@ -97,7 +114,6 @@ if (pullRequestNumber) { }), ) .then(({data}) => { - outputMergeCommitHash(data); - outputMergeActor(data); + processPullRequest(data); }); } diff --git a/.github/actions/javascript/getPullRequestDetails/index.js b/.github/actions/javascript/getPullRequestDetails/index.js index 0a674dd9fd23..ffb65dee71ae 100644 --- a/.github/actions/javascript/getPullRequestDetails/index.js +++ b/.github/actions/javascript/getPullRequestDetails/index.js @@ -36,35 +36,53 @@ if (titleRegex) { } /** - * Process a pull request and outputs it's merge commit hash. + * Output pull request merge actor. * * @param {Object} PR */ -function outputMergeCommitHash(PR) { - if (!_.isEmpty(PR)) { - console.log(`Found matching pull request: ${PR.html_url}`); - core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); +function outputMergeActor(PR) { + if (user === 'OSBotify') { + core.setOutput('MERGE_ACTOR', PR.merged_by.login); } else { - const err = new Error('Could not find matching pull request'); - console.error(err); - core.setFailed(err); + core.setOutput('MERGE_ACTOR', user); } } /** - * Process a pull request and outputs it's merge actor + * Output forked repo URL if PR includes changes from a fork. * * @param {Object} PR */ -function outputMergeActor(PR) { +function outputForkedRepoUrl(PR) { + if (PR.head.repo.html_url === GithubUtils.APP_REPO_URL) { + core.setOutput('FORKED_REPO_URL', ''); + } else { + core.setOutput('FORKED_REPO_URL', `${PR.head.repo.html_url}.git`); + } +} + +/** + * Output pull request data. + * + * @param {Object} PR + */ +function outputPullRequestData(PR) { + core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); + core.setOutput('HEAD_COMMIT_SHA', PR.head.sha); + core.setOutput('IS_MERGED', PR.merged); + outputMergeActor(PR); + outputForkedRepoUrl(PR); +} + +/** + * Process a pull request and output its data. + * + * @param {Object} PR + */ +function processPullRequest(PR) { if (!_.isEmpty(PR)) { console.log(`Found matching pull request: ${PR.html_url}`); - - if (user === 'OSBotify') { - core.setOutput('MERGE_ACTOR', PR.merged_by.login); - } else { - core.setOutput('MERGE_ACTOR', user); - } + outputPullRequestData(PR); } else { const err = new Error('Could not find matching pull request'); console.error(err); @@ -89,8 +107,7 @@ if (pullRequestNumber) { pull_number: pullRequestNumber, }) .then(({data}) => { - outputMergeCommitHash(data); - outputMergeActor(data); + processPullRequest(data); }) .catch(handleUnknownError); } else { @@ -107,8 +124,7 @@ if (pullRequestNumber) { }), ) .then(({data}) => { - outputMergeCommitHash(data); - outputMergeActor(data); + processPullRequest(data); }); } @@ -701,6 +717,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/getReleaseBody/index.js b/.github/actions/javascript/getReleaseBody/index.js index fd806e74f723..77f88e3c9dd5 100644 --- a/.github/actions/javascript/getReleaseBody/index.js +++ b/.github/actions/javascript/getReleaseBody/index.js @@ -611,6 +611,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/isPullRequestMergeable/index.js b/.github/actions/javascript/isPullRequestMergeable/index.js index d3a7d800cd5d..9883486a6887 100644 --- a/.github/actions/javascript/isPullRequestMergeable/index.js +++ b/.github/actions/javascript/isPullRequestMergeable/index.js @@ -647,6 +647,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/isStagingDeployLocked/index.js b/.github/actions/javascript/isStagingDeployLocked/index.js index dbd403528867..a82fe3486964 100644 --- a/.github/actions/javascript/isStagingDeployLocked/index.js +++ b/.github/actions/javascript/isStagingDeployLocked/index.js @@ -575,6 +575,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/markPullRequestsAsDeployed/index.js b/.github/actions/javascript/markPullRequestsAsDeployed/index.js index 262a847ed7d0..1726291d9876 100644 --- a/.github/actions/javascript/markPullRequestsAsDeployed/index.js +++ b/.github/actions/javascript/markPullRequestsAsDeployed/index.js @@ -751,6 +751,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/postTestBuildComment/index.js b/.github/actions/javascript/postTestBuildComment/index.js index 8c88dd0165ce..8df171035a40 100644 --- a/.github/actions/javascript/postTestBuildComment/index.js +++ b/.github/actions/javascript/postTestBuildComment/index.js @@ -619,6 +619,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/reopenIssueWithComment/index.js b/.github/actions/javascript/reopenIssueWithComment/index.js index 3f455dede78f..22451764648d 100644 --- a/.github/actions/javascript/reopenIssueWithComment/index.js +++ b/.github/actions/javascript/reopenIssueWithComment/index.js @@ -587,6 +587,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/reviewerChecklist/index.js b/.github/actions/javascript/reviewerChecklist/index.js index 8dc962290c37..a1268b7f822f 100644 --- a/.github/actions/javascript/reviewerChecklist/index.js +++ b/.github/actions/javascript/reviewerChecklist/index.js @@ -654,6 +654,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/triggerWorkflowAndWait/index.js b/.github/actions/javascript/triggerWorkflowAndWait/index.js index 3e86e2d315ba..ce6f6331f0b8 100644 --- a/.github/actions/javascript/triggerWorkflowAndWait/index.js +++ b/.github/actions/javascript/triggerWorkflowAndWait/index.js @@ -752,6 +752,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/actions/javascript/verifySignedCommits/index.js b/.github/actions/javascript/verifySignedCommits/index.js index d9b58110c91f..25261573cd91 100644 --- a/.github/actions/javascript/verifySignedCommits/index.js +++ b/.github/actions/javascript/verifySignedCommits/index.js @@ -576,6 +576,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/libs/GithubUtils.js b/.github/libs/GithubUtils.js index d98cb93c0983..ce5cd58e8528 100644 --- a/.github/libs/GithubUtils.js +++ b/.github/libs/GithubUtils.js @@ -535,6 +535,7 @@ class GithubUtils { module.exports = GithubUtils; module.exports.GITHUB_OWNER = GITHUB_OWNER; module.exports.APP_REPO = APP_REPO; +module.exports.APP_REPO_URL = APP_REPO_URL; module.exports.STAGING_DEPLOY_CASH_LABEL = STAGING_DEPLOY_CASH_LABEL; module.exports.DEPLOY_BLOCKER_CASH_LABEL = DEPLOY_BLOCKER_CASH_LABEL; module.exports.APPLAUSE_BOT = APPLAUSE_BOT; diff --git a/.github/workflows/e2ePerformanceTests.yml b/.github/workflows/e2ePerformanceTests.yml index cf990343a7fc..d66a59bfbc27 100644 --- a/.github/workflows/e2ePerformanceTests.yml +++ b/.github/workflows/e2ePerformanceTests.yml @@ -4,26 +4,27 @@ on: workflow_call: inputs: PR_NUMBER: - description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the test merge commit will be used. + description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the PR will be merged locally before running the performance tests. type: string required: true workflow_dispatch: inputs: PR_NUMBER: - description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the test merge commit will be used. + description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the PR will be merged locally before running the performance tests. type: string required: true jobs: - prepare: - runs-on: ubuntu-latest - name: Prepare to run builds + buildBaseline: + runs-on: ubuntu-20.04-64core + name: Build apk from latest release as a baseline outputs: VERSION: ${{ steps.getMostRecentRelease.outputs.VERSION }} - DELTA_REF: ${{ steps.getMergeCommitSha.outputs.MERGE_COMMIT_SHA }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + with: + fetch-depth: 0 - name: Get most recent release version id: getMostRecentRelease @@ -31,92 +32,118 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} - - name: Get pull request details - id: getPullRequestDetails - uses: Expensify/App/.github/actions/javascript/getPullRequestDetails@main - with: - GITHUB_TOKEN: ${{ github.token }} - PULL_REQUEST_NUMBER: ${{ inputs.PR_NUMBER }} - user: ${{ github.actor }} - - - name: Get merge commit sha for the pull request - id: getMergeCommitSha - run: echo "MERGE_COMMIT_SHA=${{ steps.getPullRequestDetails.outputs.MERGE_COMMIT_SHA }}" >> "$GITHUB_OUTPUT" - env: - GITHUB_TOKEN: ${{ github.token }} - - buildBaseline: - runs-on: ubuntu-20.04-64core - needs: [prepare] - name: Build apk from latest release as a baseline - steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - with: - fetch-depth: 0 - - name: Check if there's an existing artifact for this baseline id: checkForExistingArtifact uses: xSAVIKx/artifact-exists-action@3c5206b1411c0d2fc0840f56b7140646933d9d6a with: - name: baseline-apk-${{ needs.prepare.outputs.VERSION }} + name: baseline-apk-${{ steps.getMostRecentRelease.outputs.VERSION }} - name: Skip build if there's already an existing artifact for the baseline if: ${{ fromJSON(steps.checkForExistingArtifact.outputs.exists) }} - run: echo 'APK for baseline ${{ needs.prepare.outputs.VERSION }} already exists, reusing existing build' + run: echo 'APK for baseline ${{ steps.getMostRecentRelease.outputs.VERSION }} already exists, reusing existing build' - name: Checkout "Baseline" commit (last release) if: ${{ !fromJSON(steps.checkForExistingArtifact.outputs.exists) }} - run: git checkout ${{ needs.prepare.outputs.VERSION }} + run: git checkout ${{ steps.getMostRecentRelease.outputs.VERSION }} - name: Build APK if: ${{ !fromJSON(steps.checkForExistingArtifact.outputs.exists) }} uses: Expensify/App/.github/actions/composite/buildAndroidAPK@main with: - ARTIFACT_NAME: baseline-apk-${{ needs.prepare.outputs.VERSION }} + ARTIFACT_NAME: baseline-apk-${{ steps.getMostRecentRelease.outputs.VERSION }} buildDelta: runs-on: ubuntu-20.04-64core - needs: [prepare] name: Build apk from delta ref + outputs: + DELTA_REF: ${{ steps.getDeltaRef.outputs.DELTA_REF }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 with: fetch-depth: 0 - - name: Checkout "delta ref" - run: git checkout ${{ needs.prepare.outputs.DELTA_REF }} + - name: Get pull request details + id: getPullRequestDetails + uses: Expensify/App/.github/actions/javascript/getPullRequestDetails@main + with: + GITHUB_TOKEN: ${{ github.token }} + PULL_REQUEST_NUMBER: ${{ inputs.PR_NUMBER }} + user: ${{ github.actor }} + + - name: Merged PR - Get merge commit sha for the pull request + if: ${{ fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) }} + id: getMergeCommitShaIfMergedPR + run: | + echo "MERGE_COMMIT_SHA=${{ steps.getPullRequestDetails.outputs.MERGE_COMMIT_SHA }}" >> "$GITHUB_OUTPUT" + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Unmerged PR - Fetch changes from forked repository if necessary + if: ${{ !fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) && (steps.getPullRequestDetails.outputs.FORKED_REPO_URL != '') }} + run: | + git remote add pr_remote ${{ steps.getPullRequestDetails.outputs.FORKED_REPO_URL }} + git fetch pr_remote + + - name: Unmerged PR - Set dummy git credentials before merging + if: ${{ !fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) }} + run: | + git config --global user.email "test@test.com" + git config --global user.name "Test" + + - name: Unmerged PR - Merge pull request locally and get merge commit sha + if: ${{ !fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) }} + id: getMergeCommitShaIfUnmergedPR + run: | + git merge --no-commit ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} + git checkout ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} + echo "MERGE_COMMIT_SHA=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Determine "delta ref" + id: getDeltaRef + run: echo "DELTA_REF=${{ steps.getMergeCommitShaIfMergedPR.outputs.MERGE_COMMIT_SHA || steps.getMergeCommitShaIfUnmergedPR.outputs.MERGE_COMMIT_SHA }}" >> "$GITHUB_OUTPUT" env: GITHUB_TOKEN: ${{ github.token }} + - name: Checkout "delta ref" + run: git checkout ${{ steps.getDeltaRef.outputs.DELTA_REF }} + - name: Build APK uses: Expensify/App/.github/actions/composite/buildAndroidAPK@main with: - ARTIFACT_NAME: delta-apk-${{ needs.prepare.outputs.DELTA_REF }} + ARTIFACT_NAME: delta-apk-${{ steps.getDeltaRef.outputs.DELTA_REF }} runTestsInAWS: runs-on: ubuntu-20.04-64core - needs: [prepare, buildBaseline, buildDelta] + needs: [buildBaseline, buildDelta] name: Run E2E tests in AWS device farm steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - with: - ref: ${{ needs.prepare.outputs.DELTA_REF }} - name: Make zip directory for everything to send to AWS Device Farm run: mkdir zip - name: Download baseline APK uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b + id: downloadBaselineAPK with: - name: baseline-apk-${{ needs.prepare.outputs.VERSION }} + name: baseline-apk-${{ needs.buildBaseline.outputs.VERSION }} path: zip + # The downloaded artifact will be a file named "app-e2eRelease.apk" so we have to rename it + - name: Rename baseline APK + run: mv "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease.apk" "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease-baseline.apk" + - name: Download delta APK uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b with: - name: delta-apk-${{ needs.prepare.outputs.DELTA_REF }} + name: delta-apk-${{ needs.buildDelta.outputs.DELTA_REF }} path: zip + - name: Rename delta APK + run: mv "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease.apk" "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease-compare.apk" + - name: Copy e2e code into zip folder run: cp -r tests/e2e zip @@ -144,19 +171,19 @@ jobs: test_spec_file: tests/e2e/TestSpec.yml test_spec_type: APPIUM_NODE_TEST_SPEC remote_src: false - file_artifacts: CustomerArtifacts.zip + file_artifacts: Customer Artifacts.zip cleanup: true - name: Unzip AWS Device Farm results if: ${{ always() }} - run: unzip CustomerArtifacts.zip + run: unzip "Customer Artifacts.zip" - name: Print AWS Device Farm run results if: ${{ always() }} run: cat "./Host_Machine_Files/\$WORKING_DIRECTORY/output.md" - name: Print AWS Device Farm verbose run results - if: ${{ always() && fromJSON(runner.debug) }} + if: ${{ always() && runner.debug != null && fromJSON(runner.debug) }} run: cat "./Host_Machine_Files/\$WORKING_DIRECTORY/debug.log" - name: Check if test failed, if so post the results and add the DeployBlocker label @@ -170,4 +197,4 @@ jobs: echo '✅ no performance regression detected' fi env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a6562bbef58c..795271cab60a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,3 +22,12 @@ jobs: - name: Lint shell scripts with ShellCheck run: npm run shellcheck + + - name: Verify there's no Prettier diff + run: | + npm run prettier -- --loglevel silent + if ! git diff --name-only --exit-code; then + # shellcheck disable=SC2016 + echo 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.' + exit 1 + fi diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index e1b38b713d7b..92a0d361981f 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -157,6 +157,13 @@ jobs: ruby-version: '2.7' bundler-cache: true + - uses: actions/cache@v3 + with: + path: ios/Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + - name: Install cocoapods uses: nick-invision/retry@0711ba3d7808574133d713a0d92d2941be03a350 with: diff --git a/.github/workflows/testBuild.yml b/.github/workflows/testBuild.yml index e8027674442d..428986d271a7 100644 --- a/.github/workflows/testBuild.yml +++ b/.github/workflows/testBuild.yml @@ -31,7 +31,7 @@ jobs: run: | echo "HAS_READY_TO_BUILD_LABEL=$(gh pr view "${{ env.PULL_REQUEST_NUMBER }}" --repo Expensify/App --json labels --jq '.labels[].name' | grep -q 'Ready To Build' && echo 'true')" >> "$GITHUB_OUTPUT" if [[ "$HAS_READY_TO_BUILD_LABEL" != 'true' ]]; then - echo "The 'Ready to Build' label is not attached to the PR #${{ env.PULL_REQUEST_NUMBER }}" + echo "The 'Ready to Build' label is not attached to the PR #${{ env.PULL_REQUEST_NUMBER }}" fi env: PULL_REQUEST_NUMBER: ${{ github.event.number || github.event.inputs.PULL_REQUEST_NUMBER }} @@ -74,7 +74,7 @@ jobs: - name: Create .env.adhoc file based on staging and add PULL_REQUEST_NUMBER env to it run: | cp .env.staging .env.adhoc - sed -i 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc + sed -i 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc echo "PULL_REQUEST_NUMBER=$PULL_REQUEST_NUMBER" >> .env.adhoc - uses: Expensify/App/.github/actions/composite/setupNode@main @@ -130,7 +130,7 @@ jobs: - name: Create .env.adhoc file based on staging and add PULL_REQUEST_NUMBER env to it run: | cp .env.staging .env.adhoc - sed -i '' 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc + sed -i '' 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc echo "PULL_REQUEST_NUMBER=$PULL_REQUEST_NUMBER" >> .env.adhoc - uses: Expensify/App/.github/actions/composite/setupNode@main @@ -140,6 +140,13 @@ jobs: ruby-version: '2.7' bundler-cache: true + - uses: actions/cache@v3 + with: + path: ios/Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + - name: Install cocoapods uses: nick-invision/retry@0711ba3d7808574133d713a0d92d2941be03a350 with: @@ -193,7 +200,7 @@ jobs: - name: Create .env.adhoc file based on staging and add PULL_REQUEST_NUMBER env to it run: | cp .env.staging .env.adhoc - sed -i '' 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc + sed -i '' 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc echo "PULL_REQUEST_NUMBER=$PULL_REQUEST_NUMBER" >> .env.adhoc - uses: Expensify/App/.github/actions/composite/setupNode@main @@ -235,7 +242,7 @@ jobs: - name: Create .env.adhoc file based on staging and add PULL_REQUEST_NUMBER env to it run: | cp .env.staging .env.adhoc - sed -i 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc + sed -i 's/ENVIRONMENT=staging/ENVIRONMENT=adhoc/' .env.adhoc echo "PULL_REQUEST_NUMBER=$PULL_REQUEST_NUMBER" >> .env.adhoc - uses: Expensify/App/.github/actions/composite/setupNode@main diff --git a/.prettierignore b/.prettierignore index c7a5913c6ef8..5cad6e04b900 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,4 @@ # The GH actions don't seem to compile and verify themselves well when Prettier is applied to them .github/actions/javascript/**/index.js +desktop/dist/**/*.js +dist/**/*.js diff --git a/__mocks__/react-native.js b/__mocks__/react-native.js index 47f4b7968566..d3f5ecfc0a5c 100644 --- a/__mocks__/react-native.js +++ b/__mocks__/react-native.js @@ -24,6 +24,7 @@ jest.doMock('react-native', () => { BootSplash: { getVisibilityStatus: jest.fn(), hide: jest.fn(), + navigationBarHeight: 0, }, StartupTimer: {stop: jest.fn()}, }, diff --git a/android/app/build.gradle b/android/app/build.gradle index 9717b8bdb5ae..a1a33b723a54 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -106,8 +106,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001031200 - versionName "1.3.12-0" + versionCode 1001031603 + versionName "1.3.16-3" } splits { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4202dd4162fb..05302f43ef8d 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -8,10 +8,10 @@ + getPackages() { // packages.add(new MyReactNativePackage()); packages.add(new BootSplashPackage()); packages.add(new ExpensifyAppPackage()); + packages.add(new RNTextInputResetPackage()); return packages; } diff --git a/android/app/src/main/java/com/expensify/chat/RNTextInputResetModule.java b/android/app/src/main/java/com/expensify/chat/RNTextInputResetModule.java new file mode 100644 index 000000000000..37ec8f5c58f2 --- /dev/null +++ b/android/app/src/main/java/com/expensify/chat/RNTextInputResetModule.java @@ -0,0 +1,46 @@ +package com.expensify.chat; + +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.bridge.ReactContextBaseJavaModule; +import com.facebook.react.bridge.ReactMethod; +import com.facebook.react.bridge.Callback; +import com.facebook.react.uimanager.UIManagerModule; +import com.facebook.react.uimanager.UIBlock; +import com.facebook.react.uimanager.NativeViewHierarchyManager; +import android.content.Context; +import android.view.View; +import android.widget.TextView; +import android.view.inputmethod.InputMethodManager; +import android.util.Log; + +public class RNTextInputResetModule extends ReactContextBaseJavaModule { + + private final ReactApplicationContext reactContext; + + public RNTextInputResetModule(ReactApplicationContext reactContext) { + super(reactContext); + this.reactContext = reactContext; + } + + @Override + public String getName() { + return "RNTextInputReset"; + } + + // Props to https://github.com/MattFoley for this temporary hack + // https://github.com/facebook/react-native/pull/12462#issuecomment-298812731 + @ReactMethod + public void resetKeyboardInput(final int reactTagToReset) { + UIManagerModule uiManager = getReactApplicationContext().getNativeModule(UIManagerModule.class); + uiManager.addUIBlock(new UIBlock() { + @Override + public void execute(NativeViewHierarchyManager nativeViewHierarchyManager) { + InputMethodManager imm = (InputMethodManager) getReactApplicationContext().getBaseContext().getSystemService(Context.INPUT_METHOD_SERVICE); + if (imm != null) { + View viewToReset = nativeViewHierarchyManager.resolveView(reactTagToReset); + imm.restartInput(viewToReset); + } + } + }); + } +} diff --git a/android/app/src/main/java/com/expensify/chat/RNTextInputResetPackage.java b/android/app/src/main/java/com/expensify/chat/RNTextInputResetPackage.java new file mode 100644 index 000000000000..8e5d9994fd4b --- /dev/null +++ b/android/app/src/main/java/com/expensify/chat/RNTextInputResetPackage.java @@ -0,0 +1,28 @@ +package com.expensify.chat; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import com.facebook.react.ReactPackage; +import com.facebook.react.bridge.NativeModule; +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.uimanager.ViewManager; +import com.facebook.react.bridge.JavaScriptModule; + +public class RNTextInputResetPackage implements ReactPackage { + @Override + public List createNativeModules(ReactApplicationContext reactContext) { + return Arrays.asList(new RNTextInputResetModule(reactContext)); + } + + // Deprecated from RN 0.47 + public List> createJSModules() { + return Collections.emptyList(); + } + + @Override + public List createViewManagers(ReactApplicationContext reactContext) { + return Collections.emptyList(); + } +} diff --git a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashDialog.java b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashDialog.java index db7c84bc9630..f5b1ceff60e2 100644 --- a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashDialog.java +++ b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashDialog.java @@ -6,7 +6,6 @@ import android.view.Window; import android.view.WindowManager.LayoutParams; import androidx.annotation.NonNull; -import com.expensify.chat.R; public class BootSplashDialog extends Dialog { @@ -27,7 +26,6 @@ protected void onCreate(Bundle savedInstanceState) { if (window != null) { window.setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); - window.setWindowAnimations(R.style.Theme_SplashScreen_Dialog); } super.onCreate(savedInstanceState); diff --git a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java index c6b597975433..c286ebf7a935 100644 --- a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java +++ b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java @@ -1,9 +1,13 @@ package com.expensify.chat.bootsplash; +import android.annotation.SuppressLint; import android.app.Activity; +import android.content.Context; import android.content.DialogInterface; +import android.content.res.Resources; import android.os.Build; import android.view.View; +import android.view.ViewConfiguration; import android.view.ViewTreeObserver; import android.window.SplashScreen; import android.window.SplashScreenView; @@ -18,6 +22,9 @@ import com.facebook.react.bridge.UiThreadUtil; import com.facebook.react.common.ReactConstants; import com.facebook.react.module.annotations.ReactModule; +import com.facebook.react.uimanager.PixelUtil; +import java.util.HashMap; +import java.util.Map; import java.util.Timer; import java.util.TimerTask; @@ -25,6 +32,7 @@ public class BootSplashModule extends ReactContextBaseJavaModule { public static final String NAME = "BootSplash"; + private static final BootSplashQueue mPromiseQueue = new BootSplashQueue<>(); private static boolean mShouldKeepOnScreen = true; @Nullable @@ -39,6 +47,24 @@ public String getName() { return NAME; } + @Override + public Map getConstants() { + final HashMap constants = new HashMap<>(); + final Context context = getReactApplicationContext(); + final Resources resources = context.getResources(); + + @SuppressLint({"DiscouragedApi", "InternalInsetResource"}) final int heightResId = + resources.getIdentifier("navigation_bar_height", "dimen", "android"); + + final float height = + heightResId > 0 && !ViewConfiguration.get(context).hasPermanentMenuKey() + ? Math.round(PixelUtil.toDIPFromPixel(resources.getDimensionPixelSize(heightResId))) + : 0; + + constants.put("navigationBarHeight", height); + return constants; + } + protected static void init(@Nullable final Activity activity) { if (activity == null) { FLog.w(ReactConstants.TAG, NAME + ": Ignored initialization, current activity is null."); @@ -68,13 +94,14 @@ public boolean onPreDraw() { }); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { - // This is not called on Android 12 when activity is started using Android studio / notifications + // This is not called on Android 12 when activity is started using intent + // (Android studio / CLI / notification / widget…) activity .getSplashScreen() .setOnExitAnimationListener(new SplashScreen.OnExitAnimationListener() { @Override public void onSplashScreenExit(@NonNull SplashScreenView view) { - view.remove(); // Remove it without animation + view.remove(); // Remove it immediately, without animation } }); } @@ -96,35 +123,39 @@ public void run() { }); } - private void waitAndHide() { - final Timer timer = new Timer(); + private void clearPromiseQueue() { + while (!mPromiseQueue.isEmpty()) { + Promise promise = mPromiseQueue.shift(); - timer.schedule(new TimerTask() { - @Override - public void run() { - hide(); - timer.cancel(); - } - }, 250); + if (promise != null) + promise.resolve(true); + } } - @ReactMethod - public void hide() { + private void hideAndClearPromiseQueue() { UiThreadUtil.runOnUiThread(new Runnable() { @Override public void run() { final Activity activity = getReactApplicationContext().getCurrentActivity(); - if (activity == null || activity.isFinishing()) { - waitAndHide(); - return; - } + if (mShouldKeepOnScreen || activity == null || activity.isFinishing()) { + final Timer timer = new Timer(); - if (mDialog != null) { + timer.schedule(new TimerTask() { + @Override + public void run() { + timer.cancel(); + hideAndClearPromiseQueue(); + } + }, 100); + } else if (mDialog == null) { + clearPromiseQueue(); + } else { mDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { @Override public void onDismiss(DialogInterface dialog) { mDialog = null; + clearPromiseQueue(); } }); @@ -134,8 +165,14 @@ public void onDismiss(DialogInterface dialog) { }); } + @ReactMethod + public void hide(final Promise promise) { + mPromiseQueue.push(promise); + hideAndClearPromiseQueue(); + } + @ReactMethod public void getVisibilityStatus(final Promise promise) { - promise.resolve(mDialog != null ? "visible" : "hidden"); + promise.resolve(mShouldKeepOnScreen || mDialog != null ? "visible" : "hidden"); } } diff --git a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashQueue.java b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashQueue.java new file mode 100644 index 000000000000..4e35a066708c --- /dev/null +++ b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashQueue.java @@ -0,0 +1,28 @@ +package com.expensify.chat.bootsplash; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import java.util.Vector; + +/** + * Represents a first-in-first-out (FIFO) thread safe queue of objects. + * Its source code is based on Java internal Stack. + */ +public class BootSplashQueue extends Vector { + + @Nullable + public synchronized T shift() { + if (size() == 0) { + return null; + } + + T item = elementAt(0); + removeElementAt(0); + + return item; + } + + public void push(@NonNull T item) { + addElement(item); + } +} diff --git a/android/app/src/main/res/anim/fade_out.xml b/android/app/src/main/res/anim/fade_out.xml deleted file mode 100644 index 049a8e36ddad..000000000000 --- a/android/app/src/main/res/anim/fade_out.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/android/app/src/main/res/mipmap-hdpi/bootsplash_logo.png b/android/app/src/main/res/mipmap-hdpi/bootsplash_logo.png index 5fc519ee898ac0c3deaf9b735c02a9e16fd6b38b..95124d59275eb9baa2a8b5230c6932b2bc2eb95e 100644 GIT binary patch literal 3833 zcmcImi9eKU8=jInWcg4eTgVbK)&`kSvSvB3$N7E#z&F2V-rsXy&vjq-bwAHD^LxYebk*r;FVjLG5PD4w6$1$5 zQ~~(?g9<>7qiQcfAg8DGw2f4?9WVd_5#s}&Fg^&37Xsr3Lor_R;DdSIHA#i4P(q1d+K4k>-Yoh@5BwI6uUgT!>Ny&<7^sKovfS2oG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XC|^<^sn$e?#s-|?5p*! z{F3vH(8D60&ier}Uu|QGnaE7fb}^K4A~4#geH@&FXwA<-yXvvR zxY43$X!pz9wwWJntX$gc zw%{*4yG+&B$}$D! zQo}Y{kc54{s8r;)jcIpKjs->-W>z19J s1hErdh7Yx(4s7^O{``TY*Vk}|6nc~~K^9ca`lKS->bh!Ws<6NR2l!ekkN^Mx diff --git a/android/app/src/main/res/mipmap-mdpi/bootsplash_logo.png b/android/app/src/main/res/mipmap-mdpi/bootsplash_logo.png index 2cacc654e77c7bd8673c8fcd8f0f4885b78fdd7a..c6b62d8cac9b5c0a010a0eaddbdb120131903ddb 100644 GIT binary patch literal 2706 zcmb7Fc{r497k@?}MMc(#F-**0yo@Nu_A(7w8hf@;NHm`_(O> zc|Q?TqLd}e*a>Az##-O=%%to3{(PV7JmncrO3|e8xtG zmH+^QL+_ql00781lV||Ikw-MO#+!Qi14`0>5(4tdG5`i#%K%D9=u=S|z#t$4A26Xx3&qtLc`x28+>`ZHMdhn3H>}JI^YYxf zM()r#kRdG7w&)h>ZN2ntPJ}~FSUS#5E4zCwXzX38T{z- z&)e>&8jgM=S{4WIH>bUM*A&N@(EGJ#6?ubJKJf?&0zQ$6VM&+Z0)G5t#_ z!jFEc(ynPgd&o1s`oz`eQ?Zzre)GdpV6!}aM)m;!uW!FE_K=AyJ?F=`YV-{D(yYAXF{-(PHak9Oud!|BBn-NAek#5V_DIX7$3f21%l zwuDVi*IgN-x*=DrX_{P#ebEwIL1ZM|o1@UJcqDp-hs0(4RaQB&^mBAA&0N?e&2G8v z!ubgX{}CcLgN&mq-nS`FG2~9crG0lWPz|HnsF;N4t#Hf<;Z+AjMq+vuvO68c*6Z44 zT0)EA>E~(a{Tf}8XA4Fbv;s4aR3y5mwiSpf>cD?Yduz~(lnY(+*P}YyKQ$dJYcvP-kV!L?- zdiBPFnr^&x4RH{ulkFK~3Zs9a5c3Wb9K>6=RJs#3=Vz^L@wIF8i?IUC{Rhg>C$IZH zmuV)f%C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PSTBY5$d2VG@Y_uD)FQO7b8K#P7_iJMo5UHQi6+lK&Efs^uUerwm${lf$K-5ipbGVIhPMHi`It@6Krw} znRsIR--FVE+r*3gVk?ZMS;~5bG8E-sDh&~Cd9Nk(OR(Ecx#TMtQ>8%Jx`ef3>D3rl zo)_x)Roj(N$HoogR#iW~*ORq(=1IpAipB#^oVs(D6ZSUhoM6$eOfx;|@jtx|_VYT& z4~s9p6D>{f+?aCIwQ12+A|;6uv+uNTQs8rZtCXhlWGT2HBEwxB; zAdpH2uTc)S?;Z^y!om9i-BFu3BLjDZH2y<<2%H7c-v{9)hnicAGd@zABWOK;tI*@_ zL201%(V%{|*pEBEfHSyY6Zx6_8Bg~br{T#T>de8?8?O_|mN3+S$b@wSw!T?O1d zY1yp}9X>k!h($Ux&w0Wf+KuSmNtZ1a=_Y)VzFJ zNDOZhzj`IaPeER27$01Avfs2DK^G3G8+(>~GP5vSr_Ar@H#!gnN`E@25oxS#mU-_p z`{7hU$$^yb;lxYe)(4%bS2*bhA3NMX>NYOMCwM*Zg}WqrkkIVzFFbW&ED0(U(8|l0 z4|qzA_kGz*eX%TVM{_<~2`17XsIrf6kog@tmu$CnYxox)nLX@UeY~1(4HUX(V;1J+ z5Sxq`4OEFBO}jF3N&9=kYhZjmL<7N7TL?VSL- zktww|{F5!dE@FhbnPOXlbzxF=#BhAk>`458fqbYl({g<>eS@Ly&0=#>{2fUriBVqqH7s5cIoG(UCE(|{otk+`QkvL6UNnTy9KnD8uKRG1^F#rGn diff --git a/android/app/src/main/res/mipmap-xxxhdpi/bootsplash_logo.png b/android/app/src/main/res/mipmap-xxxhdpi/bootsplash_logo.png index 7959763c13c25711bb559c0b8ae1fd679a231e95..c49a0f3bb854eb24515f75553f8b50a706b6f316 100644 GIT binary patch literal 9952 zcmeHN_g52Lw+^BpN)e<;2LVy45Tt|-3MwtqqzIvdROt}90xDe)l-_&qB@~s8LMWm4 zCJ=h>a3|q?zxCb!;Qny4CbLfVJp0+t-sjAo!x}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A^y;>ROT`l5jGjxn&sVKxU1Q~A?vA?tw6zz zS=*RZWb9T98J(^t4DE5k^a)d^dx2KhhaD2;ba&IFFcqkvcs5nusSPuSV@s{02F`o= z9f|_(vZ33el}`EA!E31c8Jwa)uDp~0swUW}H5V^Cf1ldwFmvb@9SB5rO8j4dPuFEQ z3%&-TIgVekIEkC1T^r`j4tRT1B~}LUIs{#ow^<&mN|0?v!pT^1>(s{YJKurdjg?`T zmwaXc802$cQj7gf9jbzV8+D|-TP#`2@jqMf|DXLYtU$Q7+ZlH#1j #03D47C + #061B09 #FFFFFF #03D47C #0b1b34 diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 19d4257a8a77..c789cdfef09f 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -6,7 +6,7 @@ - - diff --git a/assets/images/avatars/room.png b/assets/images/avatars/room.png new file mode 100644 index 0000000000000000000000000000000000000000..dca457fbfdf7f227d98e147777ef9ad3072322b9 GIT binary patch literal 3032 zcmV;}3n%o6P)!n4F45M6;gG;qQMLpz z-<_8;>x7f`<0UBs@vrt@A5b1Zxf>Yfp=$+pBdoK8wYd-F9`ew4SP~}4!W9dxt=4oKHj$o}YxLS1-NJ7YsgzFdOLZwf_jIKyUZ=BSq@QNw+{QQUVk9*y{5!1Swu#+yl$^ zBBH-`!+sL*Hg$m+1v3iHIBnQ*K^Cok?q;#&b)b*awv!6sjM#Gj+?+Z8cGj#zsH!Yp z^?V`dUjfr8yGc$EW&VI}eg86b>eQeU1|1Q^zsBD^5a2C@+nli13i%)yteNV>w@ciD zELyXumjr$90VCqI)ymmr`t**x-{qZ*$4Fd)6tDbS783XXxFH@pZ3TfNV%t;lAI<+d z4jZwt=q3LM4Bi*$8LN%9h(ehu_LTgG^S_FveoTTaTCsGHnD!RXUa{0q0lu+CCeC|! z&i-gC8qroLUS8Zo%;0FLA$7jMoyImWZqI*Yc1cSGTNI>td2tVX)(+Zw+my>Flws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- diff --git a/assets/images/expensify-logo--staging.svg b/assets/images/expensify-logo--staging.svg index 335c41a294e3..12b0b9bf6e79 100644 --- a/assets/images/expensify-logo--staging.svg +++ b/assets/images/expensify-logo--staging.svg @@ -4,7 +4,6 @@ viewBox="0 0 162 34" style="enable-background:new 0 0 162 34;" xml:space="preserve"> @@ -16,22 +15,22 @@ - - - + + - - - - - + + - diff --git a/assets/images/expensify-logo-round-dark.png b/assets/images/expensify-logo-round-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..106d28274fd3b2fb885b9f5dd698e72342166cb5 GIT binary patch literal 14185 zcmX9_bzD@>*S_=;!U6(HE+I$=2uR1$-6b6g0@B?qT>?u=OLt3mcL@@b0@B?L?|y&p zANRALooCLyXXc!_=ggVshN~z^zrZ5J0s!EJtc-*j03gBtyFloO7FY-ODB=gxUPi|W z0I&)FyO4m?^jC;RBqud#F`#0cd>8Qt^^2&YC;(K)U_Y3k0RZ=ttc0kBJJR8@m%aX+ z57o(PQwuf=COjxZCP-{5K*oIUBZsVde7{6INR34&s*qmNEnSHwC1Q$OO(5!}tZSOm z0L`N`XSJD-d0hAs*DtREr2?9i6t04Q)t#eZ31677vJ~ei315DWBcS4(RYM&@Blc3B zI6h!)1c*C@kA$wDjvjsc*`X(9gprR&$JYXQl7Q^5xi8NGKiIAm317TD@Bg7f`NAUq z?q#v&!zab&GY^B?+t*g(F(f&b4|~U|Xy@BRC4Pq4cN^Gp`vF&$`izx-zjkB|Z;BQF z=2Qw6^9KmT@L}NFC&3P~lf(weuN^UgU3op1$46GalpWUDbuWGiFZef`> zCsT=DB0B^E{)3|$FEfkZww_%MUx&Qa6#Z2qSCve;P;@-aE{2v90wD2}Bua7{E#=gB za(2_O7rc<7T{sWDtR zA_Id(6k8hx97$u{H2oinO*W^Wim%y@X<@_=sIfzxS>5eA?r@R8*2X(f6zX*Cghu?m z-1oElUwZ-hhz{+1+5WQ{{C~7acDKRwRbW(*#;C2bkW>*@R%Wq+OzHNotpHCD_^-(g z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NeKg$nUA@0DsK + + + + + + + + + + + + + diff --git a/assets/images/new-expensify-dark.svg b/assets/images/new-expensify-dark.svg new file mode 100644 index 000000000000..567cc667e972 --- /dev/null +++ b/assets/images/new-expensify-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/images/qrcode.svg b/assets/images/qrcode.svg new file mode 100644 index 000000000000..d6a5201512cc --- /dev/null +++ b/assets/images/qrcode.svg @@ -0,0 +1,5 @@ + + + diff --git a/config/webpack/webpack.common.js b/config/webpack/webpack.common.js index 45b855a72730..12ecd9168fa2 100644 --- a/config/webpack/webpack.common.js +++ b/config/webpack/webpack.common.js @@ -1,11 +1,11 @@ const path = require('path'); +const fs = require('fs'); const {IgnorePlugin, DefinePlugin, ProvidePlugin, EnvironmentPlugin} = require('webpack'); const {CleanWebpackPlugin} = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const dotenv = require('dotenv'); const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer'); -const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin'); const FontPreloadPlugin = require('webpack-font-preload-plugin'); const CustomVersionFilePlugin = require('./CustomVersionFilePlugin'); @@ -21,6 +21,8 @@ const includeModules = [ 'react-native-flipper', 'react-native-google-places-autocomplete', '@react-navigation/drawer', + 'react-native-qrcode-svg', + 'react-native-view-shot', ].join('|'); const envToLogoSuffixMap = { @@ -50,7 +52,6 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({ devtool: 'source-map', entry: { main: ['babel-polyfill', './index.js'], - splash: ['./web/splash/splash.js'], }, output: { filename: '[name]-[contenthash].bundle.js', @@ -71,11 +72,9 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({ new HtmlWebpackPlugin({ template: 'web/index.html', filename: 'index.html', + splashLogo: fs.readFileSync(path.resolve(__dirname, `../../assets/images/new-expensify${mapEnvToLogoSuffix(envFile)}.svg`), 'utf-8'), usePolyfillIO: platform === 'web', }), - new HtmlInlineScriptPlugin({ - scriptMatchPattern: [/splash.+[.]js$/], - }), new FontPreloadPlugin({ extensions: ['woff2'], }), @@ -171,18 +170,6 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({ }, ], }, - { - test: /splash.css$/i, - use: [ - { - loader: 'style-loader', - options: { - insert: 'head', - injectType: 'singletonStyleTag', - }, - }, - ], - }, { test: /\.css$/i, use: ['style-loader', 'css-loader'], @@ -199,7 +186,6 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({ }, resolve: { alias: { - logo$: path.resolve(__dirname, `../../assets/images/new-expensify${mapEnvToLogoSuffix(envFile)}.svg`), 'react-native-config': 'react-web-config', 'react-native$': '@expensify/react-native-web', 'react-native-web': '@expensify/react-native-web', diff --git a/contributingGuides/STYLE.md b/contributingGuides/STYLE.md index 9d94623f0e33..8cc9ff7dc4e4 100644 --- a/contributingGuides/STYLE.md +++ b/contributingGuides/STYLE.md @@ -4,94 +4,11 @@ For almost all of our code style rules, refer to the [Airbnb JavaScript Style Gu When writing ES6 or React code, please also refer to the [Airbnb React/JSX Style Guide](https://github.com/airbnb/javascript/tree/master/react). -There are a few things that we have customized for our tastes which will take precedence over Airbnb's guide. - -## Functions - - Always wrap the function expression for immediately-invoked function expressions (IIFE) in parens: - - ```javascript - // Bad - (function () { - console.log('Welcome to the Internet. Please follow me.'); - }()); - - // Good - (function () { - console.log('Welcome to the Internet. Please follow me.'); - })(); - ``` - -## Whitespace - - Use soft tabs set to 4 spaces. - - ```javascript - // Bad - function () { - ∙∙const name; - } - - // Bad - function () { - ∙const name; - } - - // Good - function () { - ∙∙∙∙const name; - } - ``` - - - Place 1 space before the function keyword and the opening parent for anonymous functions. This does not count for named functions. - - ```javascript - // Bad - function() { - ... - } +We use Prettier to automatically style our code. +- You can run Prettier to fix the style on all files with `npm run prettier` +- You can run Prettier in watch mode to fix the styles when they are saved with `npm run prettier-watch` - // Bad - function getValue (element) { - ... - } - - // Good - function∙() { - ... - } - - // Good - function getValue(element) { - ... - } - ``` - - - Do not add spaces inside curly braces. - - ```javascript - // Bad - const foo = { clark: 'kent' }; - - // Good - const foo = {clark: 'kent'}; - ``` - - Aligning tokens should be avoided as it rarely aids in readability and often - produces inconsistencies and larger diffs when updating the code. - - ```javascript - // Good - const foo = { - foo: 'bar', - foobar: 'foobar', - foobarbaz: 'foobarbaz', - }; - - // Bad - const foo = { - foo : 'bar', - foobar : 'foobar', - foobarbaz: 'foobarbaz', - }; - ``` +There are a few things that we have customized for our tastes which will take precedence over Airbnb's guide. ## Naming Conventions diff --git a/docs/articles/playbooks/Expensify-Playbook-for-Small-to-Medium-Sized-Businesses.md b/docs/articles/playbooks/Expensify-Playbook-for-Small-to-Medium-Sized-Businesses.md index c818ce5dcfaf..d26d85e90cd3 100644 --- a/docs/articles/playbooks/Expensify-Playbook-for-Small-to-Medium-Sized-Businesses.md +++ b/docs/articles/playbooks/Expensify-Playbook-for-Small-to-Medium-Sized-Businesses.md @@ -51,7 +51,6 @@ You do this by synchronizing Expensify and your accounting package as follows: 1. Click *Settings > Policies* 2. Navigate to the *Connections* tab 3. Select your accounting system - - If you don’t see your accounting solution in the list of integrations we support, you can review an alternative solution in the Feature Deep Dives section below. 4. Follow the prompts to connect your accounting package Check out the links below for more information on how to connect to your accounting solution: @@ -59,6 +58,7 @@ Check out the links below for more information on how to connect to your account - *[Xero](https://community.expensify.com/discussion/5282/how-to-connect-your-policy-to-xero)* - *[NetSuite](https://community.expensify.com/discussion/5212/how-to-connect-your-policy-to-netsuite-token-based-authentication)* - *[Sage Intacct](https://community.expensify.com/discussion/4777/how-to-connect-to-sage-intacct-user-based-permissions-expense-reports)* +- *[Other Accounting System](https://community.expensify.com/discussion/5271/how-to-set-up-an-indirect-accounting-integration) *“Employees really appreciate how easy it is to use, and the fact that the reimbursement drops right into their bank account. Since most employees are submitting expenses from their phones, the ease of use of the app is critical.”* diff --git a/ios/NewExpensify/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo.png b/ios/NewExpensify/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo.png index 8fbef1c5ab06a55d035c06a8606028df254856b3..6b031c1bd43de11b5b8c5f81ae69a72a107965e1 100644 GIT binary patch literal 2428 zcmX|B2|QG56u-7Gl%27JF=HEM#Jm1vZfS+EF)WFw3<{zi=J$$Xdz^& z7m!_Y)3Qpz?c^}c&2-QRb=Irp6Za=vqacTU^eS*=AWp&$raOQl%Qz^@N{iwJ<- z%EZ?Xg81|8ZJaD^0_YF{0}(Xf-2e*_L5zh6nn)4@5jEfiE;z3W$A;_S5_p6c!osUS zdjUY+Hi)4G*pN5)!;`QuL_I+R|6s`LTYNz1|)`kH6T15F6m<+JuGBq zhDaej{IP@GK?XE~v}%CJ0-^y}JXs8+uZ~nPztvztM4U(Yt$>5=^Z*^`APcU7mXKz) zsH|Fpv1r2aA91)zpa#H*iyorGPJWWmJ1BX8*gO~6G;07fFgBCtMhdaD%B z21yHsfiZ3XreJi)5MUS&i3B|TKc?_uc`%+1?;xu?&y;r-xD5mYQ$W1>-g#a;7m$Zx ztBxS4qw`xIyfr`vi=ur1jPY$4&CU^u|8dhi#ZSZH*~%BbS*awY?@Pl!m!$>777niq z$Xq-9a#2lZUig?t|810r<~WJE=7Z&W!Kyfusm6knxtP&C>P#2^9sl*1dHo~)S>Aqb z#)#2n7^GXU1^Z;O3?q3PS8F_g}a5!^*$`zumV6I5_wn&Bu zKR=2h#qyYPpKkBzd3^n54L6)o!ySn(`JTWp@fs) zv$4713nt5n-R&;3>9~g4g3mefcngoo8284?pE5M`_C3Kn&!l(AOSs6HcF0RPdVmW=OM`*`60sWdI;e@1v57`nA!Hu%Q7EUpndK{o?kMnaO^Fi9`UXw zjQQ_7Ub$Ew@XaPF^1lXq-vq16UdmNj_8sa_`=fL5K_)MCycN4LzbtIrrX6H;$2=?L zpm6#OJwkCpuWiL?c&z+WtX~|ZqDp+RYp}~QHhOJ~&hcw}S6<(=F5`sP#JL=@RC*jaq3PU5S zc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?l9$N|HS*+) V>I@H8AMocLWT0!TQ>S$e{Xf47qZ0rC diff --git a/ios/NewExpensify/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo@3x.png b/ios/NewExpensify/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo@3x.png index e208d1e0f8abc0ffe0677c5e52aedc4b1604149b..32c8c76a2a3775b454cb881a07d71a747b5cdc53 100644 GIT binary patch literal 5717 zcmYjV1z3~a`yL&WW|IvN21qvof`l|uO3g_#1*8O2LQ+tW4hbc7bc`4>rBu2_>FzE? zq!fYwJNUl;_uF;e=eo~x?sGr)bKYI&+O>#V23j=KaB2_;L~}!1-3SCC5+*#9BtXU> zCr}FnB0j#QXQH9!=m8SB3=%;Ac|rt+C@{D{V%#7RZUP2Az*JcoWO@cfxIj`;ggk-F zMHqsDgsBvaKm&jn2O$FZDjP@?5IMsDjj#oXXIlWk!vhk%2oeN1=S9y5GCXIR|HB0M z;%Ao5b;K_JqXQKEM-2hu-~dUmgT($-J~zh4cUFtzKLbEs2L5cp>X06@TJe4?|ggFTr0s#Pk{#glv4FpIWI6Y2~&{=o?Z%G_ro;P^LA>@H6Aj<`k z0Lq;K00SEdw$G;jcsuKYuyh812w;FiFb05ghv!btI8s3Jf3^bzf-7L~5Z(eX2=>l* z0lffSpSuE%3ov}9Ody}@BS3=Z@95vD5YXn?Dj@1zEycfSEA}6CzkxZ{^^S|s& z>&b|;Yg*K(4Z6yEaKqfal-DZ_>}1=T>LFSJL(yIM%aUm^`af>ozQG|>RsC2)d%NPj zx>4A(=MOzy?v?0#yxW}JN+;L(25p<0B%y04m|lozQ3(j)za!cg|EilMILrnkRIE3};s`&zgzy|yS9LG>II%q)%|CB_^~=N-_7Xj2do5jlo1 zGu%qMqEh=f-kv1X0W;eD?qFx!f0|EK-0tgS;EzqcPp8wVQY$B32j3@CAN7JN8Ws}y zGS?2QTItM8_$P$9=E+pG@2RVs>@*a#Yn8Je>2H>;Ox)Q*kQ{zd{Jhte(zCDraz8bF z#xK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;FjwsRYfg@3OUPH{{tdE-S+?h diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index 0b9fed869cfb..90b6ca439b3c 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.3.12 + 1.3.16 CFBundleSignature ???? CFBundleURLTypes @@ -30,7 +30,7 @@ CFBundleVersion - 1.3.12.0 + 1.3.16.3 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensify/RCTBootSplash.m b/ios/NewExpensify/RCTBootSplash.m index 5e32ffc659ff..bceac70efdcf 100644 --- a/ios/NewExpensify/RCTBootSplash.m +++ b/ios/NewExpensify/RCTBootSplash.m @@ -10,8 +10,9 @@ #import "RCTBootSplash.h" +static NSMutableArray *_resolverQueue = nil; static RCTRootView *_rootView = nil; -static bool _hideHasBeenCalled = false; +static bool _nativeHidden = false; @implementation RCTBootSplash @@ -39,11 +40,22 @@ + (void)initWithStoryboard:(NSString * _Nonnull)storyboardName UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil]; UIView *loadingView = [[storyboard instantiateInitialViewController] view]; - if (_hideHasBeenCalled) + if ([self resolverQueueExists]) return; [_rootView setLoadingView:loadingView]; + [NSTimer scheduledTimerWithTimeInterval:0.35 + repeats:NO + block:^(NSTimer * _Nonnull timer) { + // wait for native iOS launch screen to fade out + _nativeHidden = true; + + // hide has been called before native launch screen fade out + if ([self resolverQueueExists]) + [self hideAndClearResolverQueue]; + }]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onContentDidAppear) name:RCTContentDidAppearNotification @@ -59,28 +71,29 @@ + (bool)isHidden { return _rootView == nil || _rootView.loadingView == nil || [_rootView.loadingView isHidden]; } -+ (void)hideWithFade:(bool)fade { - if ([self isHidden]) ++ (bool)resolverQueueExists { + return _resolverQueue != nil; +} + ++ (void)clearResolverQueue { + if (![self resolverQueueExists]) return; - if (fade) { - dispatch_async(dispatch_get_main_queue(), ^{ - [UIView transitionWithView:_rootView - duration:0.250 - options:UIViewAnimationOptionTransitionCrossDissolve - animations:^{ - _rootView.loadingView.hidden = YES; - } - completion:^(__unused BOOL finished) { - [_rootView.loadingView removeFromSuperview]; - _rootView.loadingView = nil; - }]; - }); - } else { + while ([_resolverQueue count] > 0) { + RCTPromiseResolveBlock resolve = [_resolverQueue objectAtIndex:0]; + [_resolverQueue removeObjectAtIndex:0]; + resolve(@(true)); + } +} + ++ (void)hideAndClearResolverQueue { + if (![self isHidden]) { _rootView.loadingView.hidden = YES; [_rootView.loadingView removeFromSuperview]; _rootView.loadingView = nil; } + + [RCTBootSplash clearResolverQueue]; } + (void)onContentDidAppear { @@ -89,28 +102,36 @@ + (void)onContentDidAppear { block:^(NSTimer * _Nonnull timer) { [timer invalidate]; - _hideHasBeenCalled = true; - [self hideWithFade:true]; + if (_resolverQueue == nil) + _resolverQueue = [[NSMutableArray alloc] init]; + + [self hideAndClearResolverQueue]; }]; [[NSNotificationCenter defaultCenter] removeObserver:self]; } + (void)onJavaScriptDidFailToLoad { - [self hideWithFade:false]; + [self hideAndClearResolverQueue]; [[NSNotificationCenter defaultCenter] removeObserver:self]; } -RCT_EXPORT_METHOD(hide) { - if (!_hideHasBeenCalled && !RCTRunningInAppExtension()) { - _hideHasBeenCalled = true; - [RCTBootSplash hideWithFade:true]; - } +RCT_EXPORT_METHOD(hide:(RCTPromiseResolveBlock)resolve + rejecter:(RCTPromiseRejectBlock)reject) { + if (_resolverQueue == nil) + _resolverQueue = [[NSMutableArray alloc] init]; + + [_resolverQueue addObject:resolve]; + + if ([RCTBootSplash isHidden] || RCTRunningInAppExtension()) + return [RCTBootSplash clearResolverQueue]; + + if (_nativeHidden) + return [RCTBootSplash hideAndClearResolverQueue]; } -RCT_REMAP_METHOD(getVisibilityStatus, - getVisibilityStatusWithResolver:(RCTPromiseResolveBlock)resolve - rejecter:(RCTPromiseRejectBlock)reject) { +RCT_EXPORT_METHOD(getVisibilityStatus:(RCTPromiseResolveBlock)resolve + rejecter:(RCTPromiseRejectBlock)reject) { resolve([RCTBootSplash isHidden] ? @"hidden" : @"visible"); } diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index 16721dc12277..bb36de4efe79 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -15,10 +15,10 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.3.12 + 1.3.16 CFBundleSignature ???? CFBundleVersion - 1.3.12.0 + 1.3.16.3 diff --git a/ios/Podfile b/ios/Podfile index dd2fbbd2eeea..6eb84320a77c 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,7 +1,8 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, min_ios_version_supported +# Our min supported iOS version is higher than the default (min_ios_version_supported) to support libraires such as Airship +platform :ios, 13 prepare_react_native_project! # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set. @@ -21,6 +22,21 @@ if linkage != nil use_frameworks! :linkage => linkage.to_sym end +# Force pods to match minimum iOS version for React Native +# Fixes build issue on Xcode Cloud where some pods +# Use iOS 12 calls despite being set as iOS 11 +def __apply_Xcode_14_3_RC_post_install_workaround(installer) + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + current_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + minimum_target = min_ios_version_supported + if current_target.to_f < minimum_target.to_f + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = minimum_target + end + end + end +end + target 'NewExpensify' do permissions_path = '../node_modules/react-native-permissions/ios' @@ -64,6 +80,7 @@ target 'NewExpensify' do :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + __apply_Xcode_14_3_RC_post_install_workaround(installer) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e81f2d2c640c..0c0bcc6b6b78 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -183,29 +183,29 @@ PODS: - GoogleUtilities/Network (~> 7.4) - "GoogleUtilities/NSData+zlib (~> 7.4)" - nanopb (~> 2.30908.0) - - GoogleDataTransport (9.2.1): + - GoogleDataTransport (9.2.3): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/AppDelegateSwizzler (7.11.0): + - GoogleUtilities/AppDelegateSwizzler (7.11.1): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - - GoogleUtilities/Environment (7.11.0): + - GoogleUtilities/Environment (7.11.1): - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/ISASwizzler (7.11.0) - - GoogleUtilities/Logger (7.11.0): + - GoogleUtilities/ISASwizzler (7.11.1) + - GoogleUtilities/Logger (7.11.1): - GoogleUtilities/Environment - - GoogleUtilities/MethodSwizzler (7.11.0): + - GoogleUtilities/MethodSwizzler (7.11.1): - GoogleUtilities/Logger - - GoogleUtilities/Network (7.11.0): + - GoogleUtilities/Network (7.11.1): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (7.11.0)" - - GoogleUtilities/Reachability (7.11.0): + - "GoogleUtilities/NSData+zlib (7.11.1)" + - GoogleUtilities/Reachability (7.11.1): - GoogleUtilities/Logger - - GoogleUtilities/UserDefaults (7.11.0): + - GoogleUtilities/UserDefaults (7.11.1): - GoogleUtilities/Logger - hermes-engine (0.71.2): - hermes-engine/Pre-built (= 0.71.2) @@ -541,6 +541,8 @@ PODS: - RCTTypeSafety - React-Core - ReactCommon/turbomodule/core + - react-native-view-shot (3.6.0): + - React-Core - react-native-webview (11.23.0): - React-Core - React-perflogger (0.71.2-alpha.3) @@ -668,7 +670,7 @@ PODS: - React-Core - RNReactNativeHapticFeedback (1.14.0): - React-Core - - RNReanimated (3.0.0-rc.10): + - RNReanimated (3.1.0): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -698,7 +700,7 @@ PODS: - RNScreens (3.17.0): - React-Core - React-RCTImage - - RNSVG (13.5.0): + - RNSVG (13.9.0): - React-Core - SDWebImage (5.11.1): - SDWebImage/Core (= 5.11.1) @@ -781,6 +783,7 @@ DEPENDENCIES: - react-native-quick-sqlite (from `../node_modules/react-native-quick-sqlite`) - react-native-render-html (from `../node_modules/react-native-render-html`) - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) + - react-native-view-shot (from `../node_modules/react-native-view-shot`) - react-native-webview (from `../node_modules/react-native-webview`) - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) @@ -944,6 +947,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-render-html" react-native-safe-area-context: :path: "../node_modules/react-native-safe-area-context" + react-native-view-shot: + :path: "../node_modules/react-native-view-shot" react-native-webview: :path: "../node_modules/react-native-webview" React-perflogger: @@ -1014,7 +1019,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Airship: c70eed50e429f97f5adb285423c7291fb7a032ae AirshipFrameworkProxy: 2eefb77bb77b5120b0f48814b0d44439aa3ad415 - boost: a7c83b31436843459a1961bfd74b96033dc77234 + boost: 57d2868c099736d80fcd648bf211b4431e51a558 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 FBLazyVector: ff54429f0110d3c722630a98096ba689c39f6d5f @@ -1040,8 +1045,8 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b GoogleAppMeasurement: 5ba1164e3c844ba84272555e916d0a6d3d977e91 - GoogleDataTransport: ea169759df570f4e37bdee1623ec32a7e64e67c4 - GoogleUtilities: c2bdc4cf2ce786c4d2e6b3bcfd599a25ca78f06f + GoogleDataTransport: f0308f5905a745f94fb91fea9c6cbaf3831cb1bd + GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749 hermes-engine: 6351580c827b3b03e5f25aadcf989f582d0b0a86 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef @@ -1057,7 +1062,7 @@ SPEC CHECKSUMS: Permission-LocationWhenInUse: 3ba99e45c852763f730eabecec2870c2382b7bd4 Plaid: 7d340abeadb46c7aa1a91f896c5b22395a31fcf2 PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef - RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda + RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: e9e7b8b45aa9bedb2fdad71740adf07a7265b9be RCTTypeSafety: 9ae0e9206625e995f0df4d5b9ddc94411929fb30 React: a71c8e1380f07e01de721ccd52bcf9c03e81867d @@ -1089,6 +1094,7 @@ SPEC CHECKSUMS: react-native-quick-sqlite: bcc7a7a250a40222f18913a97cd356bf82d0a6c4 react-native-render-html: 96c979fe7452a0a41559685d2f83b12b93edac8c react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a + react-native-view-shot: 705f999ac2a24e4e6c909c0ca65c732ed33ca2ff react-native-webview: e771bc375f789ebfa02a26939a57dbc6fa897336 React-perflogger: 9f7c5a9d22d104ae0348f38235ee636d156b5938 React-RCTActionSheet: 43e74f3a54967bb1d0e9ff261bc076843fb50ca1 @@ -1118,15 +1124,15 @@ SPEC CHECKSUMS: RNLocalize: d4b8af4e442d4bcca54e68fc687a2129b4d71a81 RNPermissions: dcdb7b99796bbeda6975a6e79ad519c41b251b1c RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c - RNReanimated: fbc356493970e3acddc15586b1bccb5eab3ff1ec + RNReanimated: b1220a0e5168745283ff5d53bfc7d2144b2cee1b RNScreens: 0df01424e9e0ed7827200d6ed1087ddd06c493f9 - RNSVG: 38ca962c970dbce1ca38991a5aebf26d163f9efb + RNSVG: 53c661b76829783cdaf9b7a57258f3d3b4c28315 SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 Yoga: f87bd008d34c18bf990d4371200802f2866ce18c YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: cd132e281e9e3d7e6ec2c99c08e6ec32b37886f8 +PODFILE CHECKSUM: 4ed1c7b099741c82e2b0411b95f6468e72be6c76 -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.0 diff --git a/jest/setup.js b/jest/setup.js index 407059251579..228f3a22f33b 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -1,3 +1,4 @@ +import 'setimmediate'; import 'react-native-gesture-handler/jestSetup'; import * as reanimatedJestUtils from 'react-native-reanimated/src/reanimated2/jestUtils'; import setupMockImages from './setupMockImages'; diff --git a/package-lock.json b/package-lock.json index f776c2474aaf..1ad7842a24fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "new.expensify", - "version": "1.3.12-0", + "version": "1.3.16-3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "new.expensify", - "version": "1.3.12-0", + "version": "1.3.16-3", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -17,7 +17,7 @@ "@formatjs/intl-numberformat": "^8.5.0", "@formatjs/intl-pluralrules": "^5.2.2", "@gorhom/portal": "^1.0.14", - "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", + "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", "@onfido/react-native-sdk": "7.4.0", "@react-native-async-storage/async-storage": "^1.17.10", "@react-native-camera-roll/camera-roll": "5.4.0", @@ -40,7 +40,7 @@ "babel-polyfill": "^6.26.0", "dom-serializer": "^0.2.2", "domhandler": "^4.3.0", - "expensify-common": "git+ssh://git@github.com/Expensify/expensify-common.git#d9c8b08ca67363e4442291ae283326d25f445cc5", + "expensify-common": "git+ssh://git@github.com/Expensify/expensify-common.git#c20d572ebb4bcfc4963c1f2d58d133c24ec90f9f", "fbjs": "^3.0.2", "html-entities": "^1.3.1", "htmlparser2": "^7.2.0", @@ -67,7 +67,7 @@ "react-native-dev-menu": "^4.1.1", "react-native-device-info": "^10.3.0", "react-native-document-picker": "^8.0.0", - "react-native-fast-image": "git+https://github.com/Expensify/react-native-fast-image.git#afedf204bfc253d18f08fdcc5356a2bb82f6a87c", + "react-native-fast-image": "^8.6.3", "react-native-gesture-handler": "2.9.0", "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#6f436a06a3018cb49750bb110b89df75f6a865d5", "react-native-haptic-feedback": "^1.13.0", @@ -83,12 +83,14 @@ "react-native-permissions": "^3.0.1", "react-native-picker-select": "git+https://github.com/Expensify/react-native-picker-select.git#107b3786ae6bc155dec05c7fc5ee525d3421dc21", "react-native-plaid-link-sdk": "^10.0.0", + "react-native-qrcode-svg": "^6.2.0", "react-native-quick-sqlite": "^8.0.0-beta.2", - "react-native-reanimated": "3.0.0-rc.10", + "react-native-reanimated": "3.1.0", "react-native-render-html": "6.3.1", "react-native-safe-area-context": "4.4.1", "react-native-screens": "3.17.0", - "react-native-svg": "^13.5.0", + "react-native-svg": "^13.9.0", + "react-native-view-shot": "^3.6.0", "react-native-web-lottie": "^1.4.4", "react-native-webview": "^11.17.2", "react-pdf": "5.7.2", @@ -152,7 +154,6 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-storybook": "^0.5.13", "flipper-plugin-bridgespy-client": "^0.1.9", - "html-inline-script-webpack-plugin": "^3.1.0", "html-webpack-plugin": "^5.5.0", "jest": "29.4.1", "jest-circus": "29.4.1", @@ -169,6 +170,7 @@ "react-native-performance-flipper-reporter": "^2.0.0", "react-native-svg-transformer": "^1.0.0", "react-test-renderer": "18.1.0", + "setimmediate": "^1.0.5", "shellcheck": "^1.1.0", "style-loader": "^2.0.0", "time-analytics-webpack-plugin": "^0.1.17", @@ -4669,8 +4671,8 @@ }, "node_modules/@oguzhnatly/react-native-image-manipulator": { "version": "1.0.5", - "resolved": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", - "integrity": "sha512-PvrSoCq5PS1MA5ZWUpB0khfzH6sM8SI6YiVl4i2SItPr7IeRxiWfI4n45VhBCCElc1z5GhAwTZOBaIzXTX7/og==", + "resolved": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", + "integrity": "sha512-C9Br1BQqm6io6lvYHptlLcOHbzlaqxp9tS35P8Qj3pdiiYRTzU3KPvZ61rQ+ZnZ4FOQ6MwPsKsmB8+6WHkAY6Q==", "license": "MIT" }, "node_modules/@onfido/active-video-capture": { @@ -20909,6 +20911,11 @@ "version": "4.12.0", "license": "MIT" }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, "node_modules/dir-compare": { "version": "2.4.0", "dev": true, @@ -21594,6 +21601,11 @@ "node": ">= 4" } }, + "node_modules/encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, "node_modules/encodeurl": { "version": "1.0.2", "license": "MIT", @@ -23463,8 +23475,8 @@ }, "node_modules/expensify-common": { "version": "1.0.0", - "resolved": "git+ssh://git@github.com/Expensify/expensify-common.git#d9c8b08ca67363e4442291ae283326d25f445cc5", - "integrity": "sha512-Gg9iry9Wa5+ot73mZ6c8GetDcfqfW20e70mA1JyxKsmZ5frUmFWZ3dbQ8GgHZeaAzEKMVvQfGKDM9QfIQaz0FA==", + "resolved": "git+ssh://git@github.com/Expensify/expensify-common.git#c20d572ebb4bcfc4963c1f2d58d133c24ec90f9f", + "integrity": "sha512-IEx2/dIBQDRAp3h/ekd47rbdTA+j6LgZwnFGWEeDBd18YR2J+d01Cfs5FiSP3nzC2dmJMAMv+IEwCrPWrqVcEg==", "license": "MIT", "dependencies": { "classnames": "2.3.1", @@ -25280,19 +25292,6 @@ "version": "2.0.2", "license": "MIT" }, - "node_modules/html-inline-script-webpack-plugin": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0", - "npm": ">=6.0.0" - }, - "peerDependencies": { - "html-webpack-plugin": "^5.0.0", - "webpack": "^5.0.0" - } - }, "node_modules/html-minifier-terser": { "version": "6.1.0", "dev": true, @@ -33815,6 +33814,14 @@ "node": ">=8.0" } }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/pnp-webpack-plugin": { "version": "1.6.4", "dev": true, @@ -34274,6 +34281,173 @@ "version": "14.18.24", "license": "MIT" }, + "node_modules/qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/qrcode/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/qrcode/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/qrcode/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/qrcode/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/qrcode/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/qrcode/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/qs": { "version": "6.11.0", "dev": true, @@ -34710,8 +34884,6 @@ }, "node_modules/react-native-fast-image": { "version": "8.6.3", - "resolved": "git+ssh://git@github.com/Expensify/react-native-fast-image.git#afedf204bfc253d18f08fdcc5356a2bb82f6a87c", - "integrity": "sha512-jfARLcakkTtqh9jVkGWkJ+3zlpMmcoGH/6LHdnLuestM90Tn3cTPjWfWQloCYJmFwK/O2f4m1SHp1BOs0VR+cw==", "license": "(MIT AND Apache-2.0)", "peerDependencies": { "react": "^17 || ^18", @@ -34945,6 +35117,20 @@ "react-native": ">=0.66.0" } }, + "node_modules/react-native-qrcode-svg": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/react-native-qrcode-svg/-/react-native-qrcode-svg-6.2.0.tgz", + "integrity": "sha512-rb2PgUwT8QpQyReVYNvzRY84AHsMh81354Tnkfp6MfqRbcdJURhnBWLBOO11pLMS6eXiwlq4SkcQxy88hRq+Dw==", + "dependencies": { + "prop-types": "^15.8.0", + "qrcode": "^1.5.1" + }, + "peerDependencies": { + "react": "*", + "react-native": ">=0.63.4", + "react-native-svg": "^13.2.0" + } + }, "node_modules/react-native-quick-sqlite": { "version": "8.0.0-beta.2", "resolved": "https://registry.npmjs.org/react-native-quick-sqlite/-/react-native-quick-sqlite-8.0.0-beta.2.tgz", @@ -34955,23 +35141,31 @@ } }, "node_modules/react-native-reanimated": { - "version": "3.0.0-rc.10", - "license": "MIT", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-3.1.0.tgz", + "integrity": "sha512-8YJR7yHnrqK6yKWzkGLVEawi1WZqJ9bGIehKEnE8zG58yLrSwUZe1T220XTbftpkA3r37Sy0kJJ/HOOiaIU+HQ==", "dependencies": { "@babel/plugin-transform-object-assign": "^7.16.7", "@babel/preset-typescript": "^7.16.7", - "convert-source-map": "^1.7.0", - "invariant": "^2.2.4", - "lodash.isequal": "^4.5.0", - "setimmediate": "^1.0.5", - "string-hash-64": "^1.0.3" + "convert-source-map": "^2.0.0", + "invariant": "^2.2.4" }, "peerDependencies": { "@babel/core": "^7.0.0-0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0-0", + "@babel/plugin-proposal-optional-chaining": "^7.0.0-0", + "@babel/plugin-transform-arrow-functions": "^7.0.0-0", + "@babel/plugin-transform-shorthand-properties": "^7.0.0-0", + "@babel/plugin-transform-template-literals": "^7.0.0-0", "react": "*", "react-native": "*" } }, + "node_modules/react-native-reanimated/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + }, "node_modules/react-native-render-html": { "version": "6.3.1", "license": "BSD-2-Clause", @@ -35034,8 +35228,9 @@ } }, "node_modules/react-native-svg": { - "version": "13.5.0", - "license": "MIT", + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-13.9.0.tgz", + "integrity": "sha512-Ey18POH0dA0ob/QiwCBVrxIiwflhYuw0P0hBlOHeY4J5cdbs8ngdKHeWC/Kt9+ryP6fNoEQ1PUgPYw2Bs/rp5Q==", "dependencies": { "css-select": "^5.1.0", "css-tree": "^1.1.3" @@ -35059,6 +35254,15 @@ "react-native-svg": ">=12.0.0" } }, + "node_modules/react-native-view-shot": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/react-native-view-shot/-/react-native-view-shot-3.6.0.tgz", + "integrity": "sha512-QUYGaIaAxQwOTydUzqGMooBwrg455cuOQgTloZ+gPO1QCUuLRdncCqrEMwKW5eUnN5U8JGMKeFRll2m6egOxtA==", + "peerDependencies": { + "react": "*", + "react-native": "*" + } + }, "node_modules/react-native-web": { "version": "0.18.12", "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.18.12.tgz", @@ -37273,7 +37477,8 @@ }, "node_modules/setimmediate": { "version": "1.0.5", - "license": "MIT" + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" }, "node_modules/setprototypeof": { "version": "1.2.0", @@ -38149,10 +38354,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/string-hash-64": { - "version": "1.0.3", - "license": "MIT" - }, "node_modules/string-length": { "version": "4.0.2", "license": "MIT", @@ -44410,9 +44611,9 @@ } }, "@oguzhnatly/react-native-image-manipulator": { - "version": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", - "integrity": "sha512-PvrSoCq5PS1MA5ZWUpB0khfzH6sM8SI6YiVl4i2SItPr7IeRxiWfI4n45VhBCCElc1z5GhAwTZOBaIzXTX7/og==", - "from": "@oguzhnatly/react-native-image-manipulator@github:Expensify/react-native-image-manipulator#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050" + "version": "git+ssh://git@github.com/Expensify/react-native-image-manipulator.git#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", + "integrity": "sha512-C9Br1BQqm6io6lvYHptlLcOHbzlaqxp9tS35P8Qj3pdiiYRTzU3KPvZ61rQ+ZnZ4FOQ6MwPsKsmB8+6WHkAY6Q==", + "from": "@oguzhnatly/react-native-image-manipulator@github:Expensify/react-native-image-manipulator#5cdae3d4455b03a04c57f50be3863e2fe6c92c52" }, "@onfido/active-video-capture": { "version": "0.25.2", @@ -55415,6 +55616,11 @@ } } }, + "dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, "dir-compare": { "version": "2.4.0", "dev": true, @@ -55888,6 +56094,11 @@ "emojis-list": { "version": "3.0.0" }, + "encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, "encodeurl": { "version": "1.0.2" }, @@ -57100,9 +57311,9 @@ } }, "expensify-common": { - "version": "git+ssh://git@github.com/Expensify/expensify-common.git#d9c8b08ca67363e4442291ae283326d25f445cc5", - "integrity": "sha512-Gg9iry9Wa5+ot73mZ6c8GetDcfqfW20e70mA1JyxKsmZ5frUmFWZ3dbQ8GgHZeaAzEKMVvQfGKDM9QfIQaz0FA==", - "from": "expensify-common@git+ssh://git@github.com/Expensify/expensify-common.git#d9c8b08ca67363e4442291ae283326d25f445cc5", + "version": "git+ssh://git@github.com/Expensify/expensify-common.git#c20d572ebb4bcfc4963c1f2d58d133c24ec90f9f", + "integrity": "sha512-IEx2/dIBQDRAp3h/ekd47rbdTA+j6LgZwnFGWEeDBd18YR2J+d01Cfs5FiSP3nzC2dmJMAMv+IEwCrPWrqVcEg==", + "from": "expensify-common@git+ssh://git@github.com/Expensify/expensify-common.git#c20d572ebb4bcfc4963c1f2d58d133c24ec90f9f", "requires": { "classnames": "2.3.1", "clipboard": "2.0.4", @@ -58298,11 +58509,6 @@ "html-escaper": { "version": "2.0.2" }, - "html-inline-script-webpack-plugin": { - "version": "3.1.0", - "dev": true, - "requires": {} - }, "html-minifier-terser": { "version": "6.1.0", "dev": true, @@ -63889,6 +64095,11 @@ } } }, + "pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==" + }, "pnp-webpack-plugin": { "version": "1.6.4", "dev": true, @@ -64202,6 +64413,130 @@ "version": "0.3.8", "dev": true }, + "qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "requires": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, "qs": { "version": "6.11.0", "dev": true, @@ -64592,9 +64927,7 @@ } }, "react-native-fast-image": { - "version": "git+ssh://git@github.com/Expensify/react-native-fast-image.git#afedf204bfc253d18f08fdcc5356a2bb82f6a87c", - "integrity": "sha512-jfARLcakkTtqh9jVkGWkJ+3zlpMmcoGH/6LHdnLuestM90Tn3cTPjWfWQloCYJmFwK/O2f4m1SHp1BOs0VR+cw==", - "from": "react-native-fast-image@git+https://github.com/Expensify/react-native-fast-image.git#afedf204bfc253d18f08fdcc5356a2bb82f6a87c", + "version": "8.6.3", "requires": {} }, "react-native-flipper": { @@ -64719,6 +65052,15 @@ "integrity": "sha512-WqU44tYzQoR/cuufD6GI7vOWTLcL9RXuEqfGaCynHdh2rmj3SC+mSEmXpg/LG0Q4E1XivkjfgF9tAOdlbnLMHQ==", "requires": {} }, + "react-native-qrcode-svg": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/react-native-qrcode-svg/-/react-native-qrcode-svg-6.2.0.tgz", + "integrity": "sha512-rb2PgUwT8QpQyReVYNvzRY84AHsMh81354Tnkfp6MfqRbcdJURhnBWLBOO11pLMS6eXiwlq4SkcQxy88hRq+Dw==", + "requires": { + "prop-types": "^15.8.0", + "qrcode": "^1.5.1" + } + }, "react-native-quick-sqlite": { "version": "8.0.0-beta.2", "resolved": "https://registry.npmjs.org/react-native-quick-sqlite/-/react-native-quick-sqlite-8.0.0-beta.2.tgz", @@ -64726,15 +65068,21 @@ "requires": {} }, "react-native-reanimated": { - "version": "3.0.0-rc.10", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-3.1.0.tgz", + "integrity": "sha512-8YJR7yHnrqK6yKWzkGLVEawi1WZqJ9bGIehKEnE8zG58yLrSwUZe1T220XTbftpkA3r37Sy0kJJ/HOOiaIU+HQ==", "requires": { "@babel/plugin-transform-object-assign": "^7.16.7", "@babel/preset-typescript": "^7.16.7", - "convert-source-map": "^1.7.0", - "invariant": "^2.2.4", - "lodash.isequal": "^4.5.0", - "setimmediate": "^1.0.5", - "string-hash-64": "^1.0.3" + "convert-source-map": "^2.0.0", + "invariant": "^2.2.4" + }, + "dependencies": { + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + } } }, "react-native-render-html": { @@ -64781,7 +65129,9 @@ } }, "react-native-svg": { - "version": "13.5.0", + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-13.9.0.tgz", + "integrity": "sha512-Ey18POH0dA0ob/QiwCBVrxIiwflhYuw0P0hBlOHeY4J5cdbs8ngdKHeWC/Kt9+ryP6fNoEQ1PUgPYw2Bs/rp5Q==", "requires": { "css-select": "^5.1.0", "css-tree": "^1.1.3" @@ -64796,6 +65146,12 @@ "path-dirname": "^1.0.2" } }, + "react-native-view-shot": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/react-native-view-shot/-/react-native-view-shot-3.6.0.tgz", + "integrity": "sha512-QUYGaIaAxQwOTydUzqGMooBwrg455cuOQgTloZ+gPO1QCUuLRdncCqrEMwKW5eUnN5U8JGMKeFRll2m6egOxtA==", + "requires": {} + }, "react-native-web": { "version": "0.18.12", "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.18.12.tgz", @@ -66192,7 +66548,9 @@ } }, "setimmediate": { - "version": "1.0.5" + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" }, "setprototypeof": { "version": "1.2.0" @@ -66805,9 +67163,6 @@ "safe-buffer": "~5.1.0" } }, - "string-hash-64": { - "version": "1.0.3" - }, "string-length": { "version": "4.0.2", "requires": { diff --git a/package.json b/package.json index 3f33a8ee6834..3c473532d291 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.3.12-0", + "version": "1.3.16-3", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", @@ -9,18 +9,18 @@ "scripts": { "postinstall": "npx patch-package && cd desktop && npm install", "clean": "npx react-native clean-project-auto", - "android": "scripts/set-pusher-suffix.sh && concurrently \"npx react-native run-android --port=8083\" npm:prettier-watch", - "ios": "scripts/set-pusher-suffix.sh && concurrently \"npx react-native run-ios --port=8082\" npm:prettier-watch", - "ipad": " concurrently \"npx react-native run-ios --port=8082 --simulator=\"iPad Pro (12.9-inch) (4th generation)\"\" npm:prettier-watch", - "ipad-sm": " concurrently \"npx react-native run-ios --port=8082 --simulator=\"iPad Pro (9.7-inch)\"\" npm:prettier-watch", + "android": "scripts/set-pusher-suffix.sh && npx react-native run-android --port=8083", + "ios": "scripts/set-pusher-suffix.sh && npx react-native run-ios --port=8082", + "ipad": "concurrently \"npx react-native run-ios --port=8082 --simulator=\"iPad Pro (12.9-inch) (4th generation)\"\"", + "ipad-sm": "concurrently \"npx react-native run-ios --port=8082 --simulator=\"iPad Pro (9.7-inch)\"\"", "start": "npx react-native start", - "web": "scripts/set-pusher-suffix.sh && concurrently npm:web-proxy npm:web-server npm:prettier-watch", + "web": "scripts/set-pusher-suffix.sh && concurrently npm:web-proxy npm:web-server", "web-proxy": "node web/proxy.js", "web-server": "webpack-dev-server --open --config config/webpack/webpack.dev.js", "build": "webpack --config config/webpack/webpack.common.js --env envFile=.env.production", "build-staging": "webpack --config config/webpack/webpack.common.js --env envFile=.env.staging", "build-adhoc": "webpack --config config/webpack/webpack.common.js --env envFile=.env.adhoc", - "desktop": "scripts/set-pusher-suffix.sh && concurrently \"node desktop/start.js\" npm:prettier-watch", + "desktop": "scripts/set-pusher-suffix.sh && node desktop/start.js", "desktop-build": "scripts/build-desktop.sh production", "desktop-build-staging": "scripts/build-desktop.sh staging", "createDocsRoutes": "node .github/scripts/createDocsRoutes.js", @@ -52,7 +52,7 @@ "@formatjs/intl-numberformat": "^8.5.0", "@formatjs/intl-pluralrules": "^5.2.2", "@gorhom/portal": "^1.0.14", - "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#c5f654fc9d0ad7cc5b89d50b34ecf8b0e3f4d050", + "@oguzhnatly/react-native-image-manipulator": "github:Expensify/react-native-image-manipulator#5cdae3d4455b03a04c57f50be3863e2fe6c92c52", "@onfido/react-native-sdk": "7.4.0", "@react-native-async-storage/async-storage": "^1.17.10", "@react-native-camera-roll/camera-roll": "5.4.0", @@ -75,7 +75,7 @@ "babel-polyfill": "^6.26.0", "dom-serializer": "^0.2.2", "domhandler": "^4.3.0", - "expensify-common": "git+ssh://git@github.com/Expensify/expensify-common.git#d9c8b08ca67363e4442291ae283326d25f445cc5", + "expensify-common": "git+ssh://git@github.com/Expensify/expensify-common.git#c20d572ebb4bcfc4963c1f2d58d133c24ec90f9f", "fbjs": "^3.0.2", "html-entities": "^1.3.1", "htmlparser2": "^7.2.0", @@ -102,7 +102,7 @@ "react-native-dev-menu": "^4.1.1", "react-native-device-info": "^10.3.0", "react-native-document-picker": "^8.0.0", - "react-native-fast-image": "git+https://github.com/Expensify/react-native-fast-image.git#afedf204bfc253d18f08fdcc5356a2bb82f6a87c", + "react-native-fast-image": "^8.6.3", "react-native-gesture-handler": "2.9.0", "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#6f436a06a3018cb49750bb110b89df75f6a865d5", "react-native-haptic-feedback": "^1.13.0", @@ -118,12 +118,14 @@ "react-native-permissions": "^3.0.1", "react-native-picker-select": "git+https://github.com/Expensify/react-native-picker-select.git#107b3786ae6bc155dec05c7fc5ee525d3421dc21", "react-native-plaid-link-sdk": "^10.0.0", + "react-native-qrcode-svg": "^6.2.0", "react-native-quick-sqlite": "^8.0.0-beta.2", - "react-native-reanimated": "3.0.0-rc.10", + "react-native-reanimated": "3.1.0", "react-native-render-html": "6.3.1", "react-native-safe-area-context": "4.4.1", "react-native-screens": "3.17.0", - "react-native-svg": "^13.5.0", + "react-native-svg": "^13.9.0", + "react-native-view-shot": "^3.6.0", "react-native-web-lottie": "^1.4.4", "react-native-webview": "^11.17.2", "react-pdf": "5.7.2", @@ -187,7 +189,6 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-storybook": "^0.5.13", "flipper-plugin-bridgespy-client": "^0.1.9", - "html-inline-script-webpack-plugin": "^3.1.0", "html-webpack-plugin": "^5.5.0", "jest": "29.4.1", "jest-circus": "29.4.1", @@ -196,14 +197,15 @@ "metro-react-native-babel-preset": "^0.73.3", "mock-fs": "^4.13.0", "onchange": "^7.1.0", - "prettier": "^2.8.8", "portfinder": "^1.0.28", + "prettier": "^2.8.8", "pusher-js-mock": "^0.3.3", "react-native-clean-project": "^4.0.0-alpha4.0", "react-native-flipper": "https://gitpkg.now.sh/facebook/flipper/react-native/react-native-flipper?9cacc9b59402550eae866e0e81e5f0c2f8203e6b", "react-native-performance-flipper-reporter": "^2.0.0", "react-native-svg-transformer": "^1.0.0", "react-test-renderer": "18.1.0", + "setimmediate": "^1.0.5", "shellcheck": "^1.1.0", "style-loader": "^2.0.0", "time-analytics-webpack-plugin": "^0.1.17", @@ -218,6 +220,9 @@ "overrides": { "react-native": "$react-native" }, + "electronmon": { + "patterns": ["!node_modules", "!node_modules/**/*", "!**/*.map", "!ios/**", "!android/**", "*.test.*", "*.spec.*"] + }, "engines": { "node": "16.15.1", "npm": "8.11.0" diff --git a/patches/react-native-fast-image+8.6.3.patch b/patches/react-native-fast-image+8.6.3.patch new file mode 100644 index 000000000000..f01b87b7fd91 --- /dev/null +++ b/patches/react-native-fast-image+8.6.3.patch @@ -0,0 +1,300 @@ +diff --git a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/BitmapSizeDecoder.java b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/BitmapSizeDecoder.java +new file mode 100644 +index 0000000..2bd58b8 +--- /dev/null ++++ b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/BitmapSizeDecoder.java +@@ -0,0 +1,44 @@ ++package com.dylanvann.fastimage; ++ ++import android.graphics.BitmapFactory; ++ ++import androidx.annotation.NonNull; ++import androidx.annotation.Nullable; ++import androidx.exifinterface.media.ExifInterface; ++ ++import com.bumptech.glide.load.Options; ++import com.bumptech.glide.load.ResourceDecoder; ++import com.bumptech.glide.load.engine.Resource; ++import com.bumptech.glide.load.resource.SimpleResource; ++ ++import java.io.IOException; ++import java.io.InputStream; ++ ++public class BitmapSizeDecoder implements ResourceDecoder { ++ ++ @Override ++ public boolean handles(@NonNull InputStream source, @NonNull Options options) throws IOException { ++ return true; ++ } ++ ++ @Nullable ++ @Override ++ public Resource decode(@NonNull InputStream source, int width, int height, @NonNull Options options) throws IOException { ++ BitmapFactory.Options bitmapOptions = new BitmapFactory.Options(); ++ bitmapOptions.inJustDecodeBounds = true; ++ BitmapFactory.decodeStream(source, null, bitmapOptions); ++ ++ // BitmapFactory#decodeStream leaves stream's position where ever it was after reading the encoded data ++ // https://developer.android.com/reference/android/graphics/BitmapFactory#decodeStream(java.io.InputStream) ++ // so we need to rewind the stream to be able to read image header with exif values ++ source.reset(); ++ ++ int orientation = new ExifInterface(source).getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED); ++ if (orientation == ExifInterface.ORIENTATION_ROTATE_90 || orientation == ExifInterface.ORIENTATION_ROTATE_270) { ++ int tmpWidth = bitmapOptions.outWidth; ++ bitmapOptions.outWidth = bitmapOptions.outHeight; ++ bitmapOptions.outHeight = tmpWidth; ++ } ++ return new SimpleResource(bitmapOptions); ++ } ++} +\ No newline at end of file +diff --git a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/BitmapSizeTranscoder.java b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/BitmapSizeTranscoder.java +new file mode 100644 +index 0000000..7d208d1 +--- /dev/null ++++ b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/BitmapSizeTranscoder.java +@@ -0,0 +1,23 @@ ++package com.dylanvann.fastimage; ++ ++import android.graphics.BitmapFactory; ++ ++import androidx.annotation.NonNull; ++import androidx.annotation.Nullable; ++ ++import com.bumptech.glide.load.Options; ++import com.bumptech.glide.load.engine.Resource; ++import com.bumptech.glide.load.resource.SimpleResource; ++import com.bumptech.glide.load.resource.transcode.ResourceTranscoder; ++ ++public class BitmapSizeTranscoder implements ResourceTranscoder { ++ @Nullable ++ @Override ++ public Resource transcode(@NonNull Resource toTranscode, @NonNull Options options) { ++ BitmapFactory.Options bitmap = toTranscode.get(); ++ Size size = new Size(); ++ size.width = bitmap.outWidth; ++ size.height = bitmap.outHeight; ++ return new SimpleResource(size); ++ } ++} +\ No newline at end of file +diff --git a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageOkHttpProgressGlideModule.java b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageOkHttpProgressGlideModule.java +index 811292a..f60b87c 100644 +--- a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageOkHttpProgressGlideModule.java ++++ b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageOkHttpProgressGlideModule.java +@@ -2,6 +2,7 @@ package com.dylanvann.fastimage; + + import android.content.Context; + import androidx.annotation.NonNull; ++import android.graphics.BitmapFactory; + + import com.bumptech.glide.Glide; + import com.bumptech.glide.Registry; +@@ -47,6 +48,9 @@ public class FastImageOkHttpProgressGlideModule extends LibraryGlideModule { + .build(); + OkHttpUrlLoader.Factory factory = new OkHttpUrlLoader.Factory(client); + registry.replace(GlideUrl.class, InputStream.class, factory); ++ // Decoder + Transcoder pair for InputStream -> Size ++ registry.prepend(InputStream.class, BitmapFactory.Options.class, new BitmapSizeDecoder()); ++ registry.register(BitmapFactory.Options.class, Size.class, new BitmapSizeTranscoder()); + } + + private static Interceptor createInterceptor(final ResponseProgressListener listener) { +diff --git a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageRequestListener.java b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageRequestListener.java +index dbeb813..bf8f21c 100644 +--- a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageRequestListener.java ++++ b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageRequestListener.java +@@ -22,13 +22,6 @@ public class FastImageRequestListener implements RequestListener { + this.key = key; + } + +- private static WritableMap mapFromResource(Drawable resource) { +- WritableMap resourceData = new WritableNativeMap(); +- resourceData.putInt("width", resource.getIntrinsicWidth()); +- resourceData.putInt("height", resource.getIntrinsicHeight()); +- return resourceData; +- } +- + @Override + public boolean onLoadFailed(@androidx.annotation.Nullable GlideException e, Object model, Target target, boolean isFirstResource) { + FastImageOkHttpProgressGlideModule.forget(key); +@@ -53,7 +46,6 @@ public class FastImageRequestListener implements RequestListener { + ThemedReactContext context = (ThemedReactContext) view.getContext(); + RCTEventEmitter eventEmitter = context.getJSModule(RCTEventEmitter.class); + int viewId = view.getId(); +- eventEmitter.receiveEvent(viewId, REACT_ON_LOAD_EVENT, mapFromResource(resource)); + eventEmitter.receiveEvent(viewId, REACT_ON_LOAD_END_EVENT, new WritableNativeMap()); + return false; + } +diff --git a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewWithUrl.java b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewWithUrl.java +index 34fcf89..1339f5c 100644 +--- a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewWithUrl.java ++++ b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewWithUrl.java +@@ -2,6 +2,7 @@ package com.dylanvann.fastimage; + + import static com.dylanvann.fastimage.FastImageRequestListener.REACT_ON_ERROR_EVENT; + ++import androidx.annotation.NonNull; + import android.annotation.SuppressLint; + import android.content.Context; + import android.graphics.drawable.Drawable; +@@ -9,16 +10,24 @@ import android.graphics.drawable.Drawable; + import androidx.annotation.Nullable; + import androidx.appcompat.widget.AppCompatImageView; + ++import com.bumptech.glide.Glide; + import com.bumptech.glide.RequestBuilder; + import com.bumptech.glide.RequestManager; ++import com.bumptech.glide.load.DataSource; ++import com.bumptech.glide.load.engine.GlideException; + import com.bumptech.glide.load.model.GlideUrl; + import com.bumptech.glide.request.Request; ++import com.bumptech.glide.request.RequestListener; ++import com.bumptech.glide.request.target.SimpleTarget; ++import com.bumptech.glide.request.target.Target; ++import com.bumptech.glide.request.transition.Transition; + import com.facebook.react.bridge.ReadableMap; + import com.facebook.react.bridge.WritableMap; + import com.facebook.react.bridge.WritableNativeMap; + import com.facebook.react.uimanager.ThemedReactContext; + import com.facebook.react.uimanager.events.RCTEventEmitter; + ++import java.io.File; + import java.util.ArrayList; + import java.util.Collections; + import java.util.List; +@@ -124,9 +133,34 @@ class FastImageViewWithUrl extends AppCompatImageView { + RCTEventEmitter eventEmitter = context.getJSModule(RCTEventEmitter.class); + int viewId = this.getId(); + +- eventEmitter.receiveEvent(viewId, +- FastImageViewManager.REACT_ON_LOAD_START_EVENT, +- new WritableNativeMap()); ++ // Request the URL from cache to see if it exists there and if so pass the cache ++ // path as an argument in the onLoadStart event ++ requestManager ++ .asFile() ++ .load(glideUrl) ++ .onlyRetrieveFromCache(true) ++ .listener(new RequestListener() { ++ @Override ++ public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) { ++ WritableNativeMap result = new WritableNativeMap(); ++ result.putNull("cachePath"); ++ eventEmitter.receiveEvent(viewId, ++ FastImageViewManager.REACT_ON_LOAD_START_EVENT, ++ result); ++ return false; ++ } ++ ++ @Override ++ public boolean onResourceReady(File resource, Object model, Target target, DataSource dataSource, boolean isFirstResource) { ++ WritableNativeMap result = new WritableNativeMap(); ++ result.putString("cachePath", resource.getAbsolutePath()); ++ eventEmitter.receiveEvent(viewId, ++ FastImageViewManager.REACT_ON_LOAD_START_EVENT, ++ result); ++ return false; ++ } ++ }) ++ .submit(); + } + + if (requestManager != null) { +@@ -148,6 +182,25 @@ class FastImageViewWithUrl extends AppCompatImageView { + builder.listener(new FastImageRequestListener(key)); + + builder.into(this); ++ ++ // Used specifically to handle the `onLoad` event for the image ++ RCTEventEmitter eventEmitter = context.getJSModule(RCTEventEmitter.class); ++ int viewId = this.getId(); ++ requestManager ++ .as(Size.class) ++ .load(imageSource == null ? null : imageSource.getSourceForLoad()) ++ .into(new SimpleTarget() { ++ @Override ++ public void onResourceReady(@NonNull Size resource, @Nullable Transition transition) { ++ WritableMap resourceData = new WritableNativeMap(); ++ resourceData.putInt("width", resource.width); ++ resourceData.putInt("height", resource.height); ++ eventEmitter.receiveEvent(viewId, ++ "onFastImageLoad", ++ resourceData ++ ); ++ } ++ }); + } + } + +diff --git a/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/Size.java b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/Size.java +new file mode 100644 +index 0000000..2fe8a47 +--- /dev/null ++++ b/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/Size.java +@@ -0,0 +1,6 @@ ++package com.dylanvann.fastimage; ++ ++public class Size { ++ int width; ++ int height; ++} +\ No newline at end of file +diff --git a/node_modules/react-native-fast-image/dist/index.d.ts b/node_modules/react-native-fast-image/dist/index.d.ts +index 5abb7c9..a2672c6 100644 +--- a/node_modules/react-native-fast-image/dist/index.d.ts ++++ b/node_modules/react-native-fast-image/dist/index.d.ts +@@ -27,6 +27,11 @@ export declare type Source = { + priority?: Priority; + cache?: Cache; + }; ++export interface OnLoadStartEvent { ++ nativeEvent: { ++ cachePath: string | null; ++ }; ++} + export interface OnLoadEvent { + nativeEvent: { + width: number; +@@ -57,7 +62,7 @@ export interface FastImageProps extends AccessibilityProps, ViewProps { + defaultSource?: ImageRequireSource; + resizeMode?: ResizeMode; + fallback?: boolean; +- onLoadStart?(): void; ++ onLoadStart?(event: OnLoadStartEvent): void; + onProgress?(event: OnProgressEvent): void; + onLoad?(event: OnLoadEvent): void; + onError?(): void; +diff --git a/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m b/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m +index f710081..391ef92 100644 +--- a/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m ++++ b/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m +@@ -54,7 +54,6 @@ - (void) setOnFastImageError: (RCTDirectEventBlock)onFastImageError { + - (void) setOnFastImageLoadStart: (RCTDirectEventBlock)onFastImageLoadStart { + if (_source && !self.hasSentOnLoadStart) { + _onFastImageLoadStart = onFastImageLoadStart; +- onFastImageLoadStart(@{}); + self.hasSentOnLoadStart = YES; + } else { + _onFastImageLoadStart = onFastImageLoadStart; +@@ -188,7 +187,18 @@ - (void) reloadImage { + } + + if (self.onFastImageLoadStart) { +- self.onFastImageLoadStart(@{}); ++ NSString* cachePath = [[SDImageCache sharedImageCache] cachePathForKey:url]; ++ BOOL isCached = [[SDImageCache sharedImageCache] diskImageDataExistsWithKey:url]; ++ if (isCached) { ++ self.onFastImageLoadStart(@{ ++ @"cachePath": cachePath ++ }); ++ } ++ else { ++ self.onFastImageLoadStart(@{ ++ @"cachePath": [NSNull null] ++ }); ++ } + self.hasSentOnLoadStart = YES; + } else { + self.hasSentOnLoadStart = NO; diff --git a/patches/react-native-reanimated+3.1.0.patch b/patches/react-native-reanimated+3.1.0.patch new file mode 100644 index 000000000000..6dc6e0d3bc9b --- /dev/null +++ b/patches/react-native-reanimated+3.1.0.patch @@ -0,0 +1,177 @@ +diff --git a/node_modules/react-native-reanimated/ios/REANodesManager.mm b/node_modules/react-native-reanimated/ios/REANodesManager.mm +index 26bb253..4108293 100644 +--- a/node_modules/react-native-reanimated/ios/REANodesManager.mm ++++ b/node_modules/react-native-reanimated/ios/REANodesManager.mm +@@ -85,19 +85,77 @@ - (void)runSyncUIUpdatesWithObserver:(id)observer + + @end + +-@interface REANodesManager () ++#ifndef RCT_NEW_ARCH_ENABLED + ++@interface REASyncUpdateObserver : NSObject + @end + ++@implementation REASyncUpdateObserver { ++ volatile void (^_mounting)(void); ++ volatile BOOL _waitTimedOut; ++ dispatch_semaphore_t _semaphore; ++} ++ ++- (instancetype)init ++{ ++ self = [super init]; ++ if (self) { ++ _mounting = nil; ++ _waitTimedOut = NO; ++ _semaphore = dispatch_semaphore_create(0); ++ } ++ return self; ++} ++ ++- (void)dealloc ++{ ++ RCTAssert(_mounting == nil, @"Mouting block was set but never executed. This may lead to UI inconsistencies"); ++} ++ ++- (void)unblockUIThread ++{ ++ RCTAssertUIManagerQueue(); ++ dispatch_semaphore_signal(_semaphore); ++} ++ ++- (void)waitAndMountWithTimeout:(NSTimeInterval)timeout ++{ ++ RCTAssertMainQueue(); ++ long result = dispatch_semaphore_wait(_semaphore, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC)); ++ if (result != 0) { ++ @synchronized(self) { ++ _waitTimedOut = YES; ++ } ++ } ++ if (_mounting) { ++ _mounting(); ++ _mounting = nil; ++ } ++} ++ ++- (BOOL)uiManager:(RCTUIManager *)manager performMountingWithBlock:(RCTUIManagerMountingBlock)block ++{ ++ RCTAssertUIManagerQueue(); ++ @synchronized(self) { ++ if (_waitTimedOut) { ++ return NO; ++ } else { ++ _mounting = block; ++ return YES; ++ } ++ } ++} ++ ++@end ++ ++#endif ++ + @implementation REANodesManager { + CADisplayLink *_displayLink; + BOOL _wantRunUpdates; + NSMutableArray *_onAnimationCallbacks; + BOOL _tryRunBatchUpdatesSynchronously; + REAEventHandler _eventHandler; +- volatile void (^_mounting)(void); +- NSObject *_syncLayoutUpdatesWaitLock; +- volatile BOOL _syncLayoutUpdatesWaitTimedOut; + NSMutableDictionary *_componentUpdateBuffer; + NSMutableDictionary *_viewRegistry; + #ifdef RCT_NEW_ARCH_ENABLED +@@ -125,7 +183,6 @@ - (nonnull instancetype)initWithModule:(REAModule *)reanimatedModule + _operationsInBatch = [NSMutableDictionary new]; + _componentUpdateBuffer = [NSMutableDictionary new]; + _viewRegistry = [_uiManager valueForKey:@"_viewRegistry"]; +- _syncLayoutUpdatesWaitLock = [NSObject new]; + } + + _displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(onAnimationFrame:)]; +@@ -241,19 +298,6 @@ - (void)onAnimationFrame:(CADisplayLink *)displayLink + } + } + +-- (BOOL)uiManager:(RCTUIManager *)manager performMountingWithBlock:(RCTUIManagerMountingBlock)block +-{ +- RCTAssert(_mounting == nil, @"Mouting block is expected to not be set"); +- @synchronized(_syncLayoutUpdatesWaitLock) { +- if (_syncLayoutUpdatesWaitTimedOut) { +- return NO; +- } else { +- _mounting = block; +- return YES; +- } +- } +-} +- + - (void)performOperations + { + #ifdef RCT_NEW_ARCH_ENABLED +@@ -268,8 +312,7 @@ - (void)performOperations + _tryRunBatchUpdatesSynchronously = NO; + + __weak __typeof__(self) weakSelf = self; +- dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); +- _syncLayoutUpdatesWaitTimedOut = NO; ++ REASyncUpdateObserver *syncUpdateObserver = [REASyncUpdateObserver new]; + RCTExecuteOnUIManagerQueue(^{ + __typeof__(self) strongSelf = weakSelf; + if (strongSelf == nil) { +@@ -278,7 +321,7 @@ - (void)performOperations + BOOL canUpdateSynchronously = trySynchronously && ![strongSelf.uiManager hasEnqueuedUICommands]; + + if (!canUpdateSynchronously) { +- dispatch_semaphore_signal(semaphore); ++ [syncUpdateObserver unblockUIThread]; + } + + for (int i = 0; i < copiedOperationsQueue.count; i++) { +@@ -286,8 +329,8 @@ - (void)performOperations + } + + if (canUpdateSynchronously) { +- [strongSelf.uiManager runSyncUIUpdatesWithObserver:strongSelf]; +- dispatch_semaphore_signal(semaphore); ++ [strongSelf.uiManager runSyncUIUpdatesWithObserver:syncUpdateObserver]; ++ [syncUpdateObserver unblockUIThread]; + } + // In case canUpdateSynchronously=true we still have to send uiManagerWillPerformMounting event + // to observers because some components (e.g. TextInput) update their UIViews only on that event. +@@ -298,17 +341,7 @@ - (void)performOperations + // from CADisplayLink but it is easier to hardcode it for the time being. + // The reason why we use frame duration here is that if takes longer than one frame to complete layout tasks + // there is no point of synchronizing layout with the UI interaction as we get that one frame delay anyways. +- long result = dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, 16 * NSEC_PER_MSEC)); +- if (result != 0) { +- @synchronized(_syncLayoutUpdatesWaitLock) { +- _syncLayoutUpdatesWaitTimedOut = YES; +- } +- } +- } +- +- if (_mounting) { +- _mounting(); +- _mounting = nil; ++ [syncUpdateObserver waitAndMountWithTimeout:0.016]; + } + } + _wantRunUpdates = NO; +diff --git a/node_modules/react-native-reanimated/mock.js b/node_modules/react-native-reanimated/mock.js +index 68b20d2..b088001 100644 +--- a/node_modules/react-native-reanimated/mock.js ++++ b/node_modules/react-native-reanimated/mock.js +@@ -41,6 +41,9 @@ const Reanimated = { + createAnimatedComponent: (Component) => Component, + addWhitelistedUIProps: NOOP, + addWhitelistedNativeProps: NOOP, ++ ++ // used by react-navigation fork ++ isConfigured: () => true, + }; + + module.exports = { diff --git a/src/CONST.js b/src/CONST.js index b53e2d42b5a3..a04c20192037 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -35,7 +35,62 @@ const CONST = { API_ATTACHMENT_VALIDATIONS: { // Same as the PHP layer allows - ALLOWED_EXTENSIONS: ['webp', 'jpg', 'jpeg', 'png', 'gif', 'pdf', 'html', 'txt', 'rtf', 'doc', 'docx', 'htm', 'tiff', 'tif', 'xml', 'mp3', 'mp4', 'mov'], + /* eslint-disable-next-line max-len */ + UNALLOWED_EXTENSIONS: [ + 'ade', + 'adp', + 'apk', + 'appx', + 'appxbundle', + 'bat', + 'cab', + 'chm', + 'cmd', + 'com', + 'cpl', + 'diagcab', + 'diagcfg', + 'diagpack', + 'dll', + 'dmg', + 'ex', + 'ex_', + 'exe', + 'hta', + 'img', + 'ins', + 'iso', + 'isp', + 'jar', + 'jnlp', + 'js', + 'jse', + 'lib', + 'lnk', + 'mde', + 'msc', + 'msi', + 'msix', + 'msixbundle', + 'msp', + 'mst', + 'nsh', + 'pif', + 'ps1', + 'scr', + 'sct', + 'shb', + 'sys', + 'vb', + 'vbe', + 'vbs', + 'vhd', + 'vxd', + 'wsc', + 'wsf', + 'wsh', + 'xll', + ], // 24 megabytes in bytes, this is limit set on servers, do not update without wider internal discussion MAX_SIZE: 25165824, @@ -210,6 +265,7 @@ const CONST = { POLICY_EXPENSE_CHAT: 'policyExpenseChat', PASSWORDLESS: 'passwordless', TASKS: 'tasks', + THREADS: 'threads', }, BUTTON_STATES: { DEFAULT: 'default', @@ -226,6 +282,7 @@ const CONST = { MX: 'MX', AU: 'AU', CA: 'CA', + GB: 'GB', }, DESKTOP_DEEPLINK_APP_STATE: { CHECKING: 'checking', @@ -406,9 +463,14 @@ const CONST = { ADDCOMMENT: 'ADDCOMMENT', CLOSED: 'CLOSED', CREATED: 'CREATED', + TASKEDITED: 'TASKEDITED', + TASKCANCELED: 'TASKCANCELED', IOU: 'IOU', RENAMED: 'RENAMED', CHRONOSOOOLIST: 'CHRONOSOOOLIST', + TASKCOMPLETED: 'TASKCOMPLETED', + TASKREOPENED: 'TASKREOPENED', + REPORTPREVIEW: 'REPORTPREVIEW', POLICYCHANGELOG: { ADD_APPROVER_RULE: 'POLICYCHANGELOG_ADD_APPROVER_RULE', ADD_CATEGORY: 'POLICYCHANGELOG_ADD_CATEGORY', @@ -498,6 +560,7 @@ const CONST = { }, STATE: { SUBMITTED: 'SUBMITTED', + PROCESSING: 'PROCESSING', }, STATE_NUM: { OPEN: 0, @@ -579,6 +642,7 @@ const CONST = { }, JSON_CODE: { SUCCESS: 200, + BAD_REQUEST: 400, NOT_AUTHENTICATED: 407, EXP_ERROR: 666, MANY_WRITES_ERROR: 665, @@ -612,12 +676,14 @@ const CONST = { SAFARI_CANNOT_PARSE_RESPONSE: 'cannot parse response', GATEWAY_TIMEOUT: 'Gateway Timeout', EXPENSIFY_SERVICE_INTERRUPTED: 'Expensify service interrupted', + DUPLICATE_RECORD: 'A record already exists with this ID', }, ERROR_TYPE: { SOCKET: 'Expensify\\Auth\\Error\\Socket', }, ERROR_TITLE: { SOCKET: 'Issue connecting to database', + DUPLICATE_RECORD: '400 Unique Constraints Violation', }, NETWORK: { METHOD: { @@ -896,6 +962,7 @@ const CONST = { ELSEWHERE: 'Elsewhere', EXPENSIFY: 'Expensify', PAYPAL_ME: 'PayPal.me', + VBBA: 'ACH', }, MONEY_REQUEST_TYPE: { SEND: 'send', @@ -1011,12 +1078,17 @@ const CONST = { CODE_2FA: /^\d{6}$/, ATTACHMENT_ID: /chat-attachments\/(\d+)/, HAS_COLON_ONLY_AT_THE_BEGINNING: /^:[^:]+$/, + HAS_AT_MOST_TWO_AT_SIGNS: /^@[^@]*@?[^@]*$/, // eslint-disable-next-line no-misleading-character-class NEW_LINE_OR_WHITE_SPACE_OR_EMOJI: /[\n\s\p{Extended_Pictographic}\u200d\u{1f1e6}-\u{1f1ff}\u{1f3fb}-\u{1f3ff}\u{e0020}-\u{e007f}\u20E3\uFE0F]|[#*0-9]\uFE0F?\u20E3/gu, // Define the regular expression pattern to match a string starting with a colon and ending with a space or newline character EMOJI_REPLACER: /^:[^\n\r]+?(?=$|\s)/, + + // Define the regular expression pattern to match a string starting with an at sign and ending with a space or newline character + MENTION_REPLACER: /^@[^\n\r]*?(?=$|\s)/, + MERGED_ACCOUNT_PREFIX: /^(MERGED_\d+@)/, }, @@ -1062,6 +1134,8 @@ const CONST = { // Furthermore, applying markup is very resource-consuming, so let's set a slightly lower limit for that MAX_MARKUP_LENGTH: 10000, + MAX_THREAD_REPLIES_PREVIEW: 99, + FORM_CHARACTER_LIMIT: 50, LEGAL_NAMES_CHARACTER_LIMIT: 150, WORKSPACE_NAME_CHARACTER_LIMIT: 80, @@ -1087,6 +1161,7 @@ const CONST = { INFO: 'info', }, REPORT_DETAILS_MENU_ITEM: { + SHARE_CODE: 'shareCode', MEMBERS: 'member', SETTINGS: 'settings', LEAVE_ROOM: 'leaveRoom', @@ -2306,6 +2381,10 @@ const CONST = { ACTIVE: 'active', DISABLED: 'disabled', }, + + // This ID is used in SelectionScraper.js to query the DOM for UnreadActionIndicator's + // div and then remove it from copied contents in the getHTMLOfSelection() method. + UNREAD_ACTION_INDICATOR_ID: 'no-copy-area-unread-action-indicator', }; export default CONST; diff --git a/src/Expensify.js b/src/Expensify.js index f6831443d907..638bb6119bb9 100644 --- a/src/Expensify.js +++ b/src/Expensify.js @@ -27,6 +27,7 @@ import Navigation from './libs/Navigation/Navigation'; import DeeplinkWrapper from './components/DeeplinkWrapper'; import PopoverReportActionContextMenu from './pages/home/report/ContextMenu/PopoverReportActionContextMenu'; import * as ReportActionContextMenu from './pages/home/report/ContextMenu/ReportActionContextMenu'; +import SplashScreenHider from './components/SplashScreenHider'; import KeyboardShortcutsModal from './components/KeyboardShortcutsModal'; // This lib needs to be imported, but it has nothing to export since all it contains is an Onyx connection @@ -86,9 +87,10 @@ function Expensify(props) { const appStateChangeListener = useRef(null); const [isNavigationReady, setIsNavigationReady] = useState(false); const [isOnyxMigrated, setIsOnyxMigrated] = useState(false); - const [isSplashShown, setIsSplashShown] = useState(true); + const [isSplashHidden, setIsSplashHidden] = useState(false); const isAuthenticated = useMemo(() => Boolean(lodashGet(props.session, 'authToken', null)), [props.session]); + const shouldHideSplash = isNavigationReady && !isSplashHidden && (!isAuthenticated || props.isSidebarLoaded); const initializeClient = () => { if (!Visibility.isVisible()) { @@ -105,6 +107,10 @@ function Expensify(props) { Navigation.setIsNavigationReady(); }, []); + const onSplashHide = useCallback(() => { + setIsSplashHidden(true); + }, []); + useLayoutEffect(() => { // Initialize this client as being an active client ActiveClientManager.init(); @@ -158,20 +164,6 @@ function Expensify(props) { // eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want this effect to run again }, []); - useEffect(() => { - if (!isNavigationReady || !isSplashShown) { - return; - } - - const shouldHideSplash = !isAuthenticated || props.isSidebarLoaded; - - if (shouldHideSplash) { - BootSplash.hide(); - - setIsSplashShown(false); - } - }, [props.isSidebarLoaded, isNavigationReady, isSplashShown, isAuthenticated]); - // Display a blank page until the onyx migration completes if (!isOnyxMigrated) { return null; @@ -179,7 +171,7 @@ function Expensify(props) { return ( - {!isSplashShown && ( + {shouldHideSplash && ( <> @@ -204,6 +196,8 @@ function Expensify(props) { onReady={setNavigationReady} authenticated={isAuthenticated} /> + + {shouldHideSplash && } ); } diff --git a/src/ONYXKEYS.js b/src/ONYXKEYS.js index ff2c32f3d94d..1805db98f1d5 100755 --- a/src/ONYXKEYS.js +++ b/src/ONYXKEYS.js @@ -91,6 +91,9 @@ export default { // A unique identifier that each user has that's used to send notifications NVP_PRIVATE_PUSH_NOTIFICATION_ID: 'private_pushNotificationID', + // The NVP with the last payment method used per policy + NVP_LAST_PAYMENT_METHOD: 'nvp_lastPaymentMethod', + // Does this user have push notifications enabled for this device? PUSH_NOTIFICATIONS_ENABLED: 'pushNotificationsEnabled', @@ -119,6 +122,7 @@ export default { REPORT_DRAFT_COMMENT_NUMBER_OF_LINES: 'reportDraftCommentNumberOfLines_', REPORT_IS_COMPOSER_FULL_SIZE: 'reportIsComposerFullSize_', REPORT_USER_IS_TYPING: 'reportUserIsTyping_', + SECURITY_GROUP: 'securityGroup_', TRANSACTION: 'transactions_', }, @@ -193,6 +197,7 @@ export default { CLOSE_ACCOUNT_FORM: 'closeAccount', PROFILE_SETTINGS_FORM: 'profileSettingsForm', DISPLAY_NAME_FORM: 'displayNameForm', + ROOM_NAME_FORM: 'roomNameForm', LEGAL_NAME_FORM: 'legalNameForm', WORKSPACE_INVITE_MESSAGE_FORM: 'workspaceInviteMessageForm', DATE_OF_BIRTH_FORM: 'dateOfBirthForm', @@ -202,6 +207,7 @@ export default { NEW_TASK_FORM: 'newTaskForm', EDIT_TASK_FORM: 'editTaskForm', MONEY_REQUEST_DESCRIPTION_FORM: 'moneyRequestDescriptionForm', + NEW_CONTACT_METHOD_FORM: 'newContactMethodForm', }, // Whether we should show the compose input or not @@ -212,4 +218,7 @@ export default { // Whether the auth token is valid IS_TOKEN_VALID: 'isTokenValid', + + // A map of the user's security group IDs they belong to in specific domains + MY_DOMAIN_SECURITY_GROUPS: 'myDomainSecurityGroups', }; diff --git a/src/ROUTES.js b/src/ROUTES.js index 584d01088bc3..36af96003425 100644 --- a/src/ROUTES.js +++ b/src/ROUTES.js @@ -19,12 +19,14 @@ const SETTINGS_CONTACT_METHODS = 'settings/profile/contact-methods'; export default { BANK_ACCOUNT: 'bank-account', + BANK_ACCOUNT_NEW: 'bank-account/new', BANK_ACCOUNT_WITH_STEP_TO_OPEN: 'bank-account/:stepToOpen?', BANK_ACCOUNT_PERSONAL: 'bank-account/personal', getBankAccountRoute: (stepToOpen = '', policyID = '') => `bank-account/${stepToOpen}?policyID=${policyID}`, HOME: '', SETTINGS: 'settings', SETTINGS_PROFILE: 'settings/profile', + SETTINGS_SHARE_CODE: 'settings/shareCode', SETTINGS_DISPLAY_NAME: 'settings/profile/display-name', SETTINGS_TIMEZONE: 'settings/profile/timezone', SETTINGS_TIMEZONE_SELECT: 'settings/profile/timezone/select', @@ -54,12 +56,19 @@ export default { SETTINGS_CONTACT_METHOD_DETAILS: `${SETTINGS_CONTACT_METHODS}/:contactMethod/details`, getEditContactMethodRoute: (contactMethod) => `${SETTINGS_CONTACT_METHODS}/${encodeURIComponent(contactMethod)}/details`, SETTINGS_NEW_CONTACT_METHOD: `${SETTINGS_CONTACT_METHODS}/new`, + SETTINGS_2FA_IS_ENABLED: 'settings/security/two-factor-auth/enabled', + SETTINGS_2FA_DISABLE: 'settings/security/two-factor-auth/disable', + SETTINGS_2FA_CODES: 'settings/security/two-factor-auth/codes', + SETTINGS_2FA_VERIFY: 'settings/security/two-factor-auth/verify', + SETTINGS_2FA_SUCCESS: 'settings/security/two-factor-auth/success', NEW_GROUP: 'new/group', NEW_CHAT: 'new/chat', NEW_TASK, REPORT, REPORT_WITH_ID: 'r/:reportID', getReportRoute: (reportID) => `r/${reportID}`, + REPORT_WITH_ID_DETAILS_SHARE_CODE: 'r/:reportID/details/shareCode', + getReportShareCodeRoute: (reportID) => `r/${reportID}/details/shareCode`, SELECT_YEAR: 'select-year', getYearSelectionRoute: (minYear, maxYear, currYear, backTo) => `select-year?min=${minYear}&max=${maxYear}&year=${currYear}&backTo=${backTo}`, @@ -95,14 +104,15 @@ export default { NEW_TASK_WITH_REPORT_ID: `${NEW_TASK}/:reportID?`, TASK_TITLE: 'r/:reportID/title', TASK_DESCRIPTION: 'r/:reportID/description', + TASK_ASSIGNEE: 'r/:reportID/assignee', getTaskReportTitleRoute: (reportID) => `r/${reportID}/title`, getTaskReportDescriptionRoute: (reportID) => `r/${reportID}/description`, + getTaskReportAssigneeRoute: (reportID) => `r/${reportID}/assignee`, NEW_TASK_ASSIGNEE: `${NEW_TASK}/assignee`, NEW_TASK_SHARE_DESTINATION: `${NEW_TASK}/share-destination`, NEW_TASK_DETAILS: `${NEW_TASK}/details`, NEW_TASK_TITLE: `${NEW_TASK}/title`, NEW_TASK_DESCRIPTION: `${NEW_TASK}/description`, - getTaskDetailsRoute: (taskID) => `task/details/${taskID}`, SEARCH: 'search', SET_PASSWORD_WITH_VALIDATE_CODE: 'setpassword/:accountID/:validateCode', DETAILS: 'details', @@ -114,7 +124,11 @@ export default { REPORT_WITH_ID_DETAILS: 'r/:reportID/details', getReportDetailsRoute: (reportID) => `r/${reportID}/details`, REPORT_SETTINGS: 'r/:reportID/settings', + REPORT_SETTINGS_ROOM_NAME: 'r/:reportID/settings/room-name', + REPORT_SETTINGS_NOTIFICATION_PREFERENCES: 'r/:reportID/settings/notification-preferences', getReportSettingsRoute: (reportID) => `r/${reportID}/settings`, + getReportSettingsRoomNameRoute: (reportID) => `r/${reportID}/settings/room-name`, + getReportSettingsNotificationPreferencesRoute: (reportID) => `r/${reportID}/settings/notification-preferences`, TRANSITION_FROM_OLD_DOT: 'transition', VALIDATE_LOGIN: 'v/:accountID/:validateCode', GET_ASSISTANCE: 'get-assistance/:taskID', diff --git a/src/components/AddPaymentMethodMenu.js b/src/components/AddPaymentMethodMenu.js index 61927aefb868..2581bde85b4e 100644 --- a/src/components/AddPaymentMethodMenu.js +++ b/src/components/AddPaymentMethodMenu.js @@ -12,11 +12,16 @@ import PopoverMenu from './PopoverMenu'; import paypalMeDataPropTypes from './paypalMeDataPropTypes'; const propTypes = { + /** Should the component be visible? */ isVisible: PropTypes.bool.isRequired, + + /** Callback to execute when the component closes. */ onClose: PropTypes.func.isRequired, + + /** Anchor position for the AddPaymentMenu. */ anchorPosition: PropTypes.shape({ - top: PropTypes.number, - left: PropTypes.number, + horizontal: PropTypes.number, + vertical: PropTypes.number, }), /** Account details for PayPal.Me */ @@ -43,7 +48,7 @@ const AddPaymentMethodMenu = (props) => ( isVisible={props.isVisible} onClose={props.onClose} anchorPosition={props.anchorPosition} - onItemSelected={() => props.onClose()} + onItemSelected={props.onClose} menuItems={[ { text: props.translate('common.bankAccount'), diff --git a/src/components/AddressSearch/index.js b/src/components/AddressSearch/index.js index 52ca14dbf701..5219c5b4855f 100644 --- a/src/components/AddressSearch/index.js +++ b/src/components/AddressSearch/index.js @@ -119,6 +119,7 @@ const AddressSearch = (props) => { postal_town: postalTown, postal_code: zipCode, administrative_area_level_1: state, + administrative_area_level_2: stateFallback, country, } = GooglePlacesUtils.getAddressComponents(addressComponents, { street_number: 'long_name', @@ -129,6 +130,7 @@ const AddressSearch = (props) => { postal_town: 'long_name', postal_code: 'long_name', administrative_area_level_1: 'short_name', + administrative_area_level_2: 'long_name', country: 'short_name', }); @@ -164,6 +166,12 @@ const AddressSearch = (props) => { values.state = longStateName; } + // UK addresses return countries (e.g. England) in the state field (administrative_area_level_1) + // So we use a secondary field (administrative_area_level_2) as a fallback + if (country === CONST.COUNTRY.GB) { + values.state = stateFallback; + } + // Not all pages define the Address Line 2 field, so in that case we append any additional address details // (e.g. Apt #) to Address Line 1 if (subpremise && typeof props.renamedInputKeys.street2 === 'undefined') { diff --git a/src/components/ArrowKeyFocusManager.js b/src/components/ArrowKeyFocusManager.js index 5ee9968dd97f..10dfdf3d1111 100644 --- a/src/components/ArrowKeyFocusManager.js +++ b/src/components/ArrowKeyFocusManager.js @@ -33,55 +33,16 @@ class ArrowKeyFocusManager extends Component { const arrowUpConfig = CONST.KEYBOARD_SHORTCUTS.ARROW_UP; const arrowDownConfig = CONST.KEYBOARD_SHORTCUTS.ARROW_DOWN; - this.unsubscribeArrowUpKey = KeyboardShortcut.subscribe( - arrowUpConfig.shortcutKey, - () => { - if (this.props.maxIndex < 0) { - return; - } - - const currentFocusedIndex = this.props.focusedIndex > 0 ? this.props.focusedIndex - 1 : this.props.maxIndex; - let newFocusedIndex = currentFocusedIndex; - - while (this.props.disabledIndexes.includes(newFocusedIndex)) { - newFocusedIndex = newFocusedIndex > 0 ? newFocusedIndex - 1 : this.props.maxIndex; - if (newFocusedIndex === currentFocusedIndex) { - // all indexes are disabled - return; // no-op - } - } - - this.props.onFocusedIndexChanged(newFocusedIndex); - }, - arrowUpConfig.descriptionKey, - arrowUpConfig.modifiers, - true, - false, - 0, - true, - [this.props.shouldExcludeTextAreaNodes && 'TEXTAREA'], - ); + this.onArrowUpKey = this.onArrowUpKey.bind(this); + this.onArrowDownKey = this.onArrowDownKey.bind(this); + + this.unsubscribeArrowUpKey = KeyboardShortcut.subscribe(arrowUpConfig.shortcutKey, this.onArrowUpKey, arrowUpConfig.descriptionKey, arrowUpConfig.modifiers, true, false, 0, true, [ + this.props.shouldExcludeTextAreaNodes && 'TEXTAREA', + ]); this.unsubscribeArrowDownKey = KeyboardShortcut.subscribe( arrowDownConfig.shortcutKey, - () => { - if (this.props.maxIndex < 0) { - return; - } - - const currentFocusedIndex = this.props.focusedIndex < this.props.maxIndex ? this.props.focusedIndex + 1 : 0; - let newFocusedIndex = currentFocusedIndex; - - while (this.props.disabledIndexes.includes(newFocusedIndex)) { - newFocusedIndex = newFocusedIndex < this.props.maxIndex ? newFocusedIndex + 1 : 0; - if (newFocusedIndex === currentFocusedIndex) { - // all indexes are disabled - return; // no-op - } - } - - this.props.onFocusedIndexChanged(newFocusedIndex); - }, + this.onArrowDownKey, arrowDownConfig.descriptionKey, arrowDownConfig.modifiers, true, @@ -92,6 +53,15 @@ class ArrowKeyFocusManager extends Component { ); } + componentDidUpdate(prevProps) { + if (prevProps.maxIndex === this.props.maxIndex) { + return; + } + if (this.props.focusedIndex > this.props.maxIndex) { + this.onArrowDownKey(); + } + } + componentWillUnmount() { if (this.unsubscribeArrowUpKey) { this.unsubscribeArrowUpKey(); @@ -102,6 +72,44 @@ class ArrowKeyFocusManager extends Component { } } + onArrowUpKey() { + if (this.props.maxIndex < 0) { + return; + } + + const currentFocusedIndex = this.props.focusedIndex > 0 ? this.props.focusedIndex - 1 : this.props.maxIndex; + let newFocusedIndex = currentFocusedIndex; + + while (this.props.disabledIndexes.includes(newFocusedIndex)) { + newFocusedIndex = newFocusedIndex > 0 ? newFocusedIndex - 1 : this.props.maxIndex; + if (newFocusedIndex === currentFocusedIndex) { + // all indexes are disabled + return; // no-op + } + } + + this.props.onFocusedIndexChanged(newFocusedIndex); + } + + onArrowDownKey() { + if (this.props.maxIndex < 0) { + return; + } + + const currentFocusedIndex = this.props.focusedIndex < this.props.maxIndex ? this.props.focusedIndex + 1 : 0; + let newFocusedIndex = currentFocusedIndex; + + while (this.props.disabledIndexes.includes(newFocusedIndex)) { + newFocusedIndex = newFocusedIndex < this.props.maxIndex ? newFocusedIndex + 1 : 0; + if (newFocusedIndex === currentFocusedIndex) { + // all indexes are disabled + return; // no-op + } + } + + this.props.onFocusedIndexChanged(newFocusedIndex); + } + render() { return this.props.children; } diff --git a/src/components/AttachmentCarousel/index.js b/src/components/AttachmentCarousel/index.js index 6306f7833d12..380f865394ce 100644 --- a/src/components/AttachmentCarousel/index.js +++ b/src/components/AttachmentCarousel/index.js @@ -1,5 +1,5 @@ import React from 'react'; -import {View, FlatList} from 'react-native'; +import {View, FlatList, PixelRatio} from 'react-native'; import PropTypes from 'prop-types'; import {withOnyx} from 'react-native-onyx'; import _ from 'underscore'; @@ -62,30 +62,13 @@ class AttachmentCarousel extends React.Component { this.updateZoomState = this.updateZoomState.bind(this); this.toggleArrowsVisibility = this.toggleArrowsVisibility.bind(this); - this.state = { - attachments: [], - source: this.props.source, - shouldShowArrow: this.canUseTouchScreen, - containerWidth: 0, - isZoomed: false, - }; + this.state = this.makeInitialState(); } componentDidMount() { - this.makeStateWithReports(); this.autoHideArrow(); } - componentDidUpdate(prevProps) { - const previousReportActionsCount = _.size(prevProps.reportActions); - const currentReportActionsCount = _.size(this.props.reportActions); - if (previousReportActionsCount === currentReportActionsCount) { - return; - } - - this.makeStateWithReports(); - } - /** * Helps to navigate between next/previous attachments * @param {Object} attachmentItem @@ -176,9 +159,10 @@ class AttachmentCarousel extends React.Component { } /** - * Map report actions to attachment items + * Map report actions to attachment items and sets the initial carousel state + * @returns {{page: Number, attachments: Array, shouldShowArrow: Boolean, containerWidth: Number, isZoomed: Boolean}} */ - makeStateWithReports() { + makeInitialState() { let page = 0; const actions = ReportActionsUtils.getSortedReportActions(_.values(this.props.reportActions), true); @@ -200,7 +184,7 @@ class AttachmentCarousel extends React.Component { // Update the image URL so the images can be accessed depending on the config environment. // Eg: while using Ngrok the image path is from an Ngrok URL and not an Expensify URL. const source = tryResolveUrlFromApiRoot(originalSource); - if (source === this.state.source) { + if (source === this.props.source) { page = attachments.length; } @@ -208,10 +192,13 @@ class AttachmentCarousel extends React.Component { } }); - this.setState({ + return { page, attachments, - }); + shouldShowArrow: this.canUseTouchScreen, + containerWidth: 0, + isZoomed: false, + }; } /** @@ -246,7 +233,7 @@ class AttachmentCarousel extends React.Component { const page = entry.index; const {source, file} = this.getAttachment(entry.item); this.props.onNavigate({source: addEncryptedAuthTokenToURL(source), file}); - this.setState({page, source, isZoomed: false}); + this.setState({page, isZoomed: false}); } /** @@ -255,7 +242,10 @@ class AttachmentCarousel extends React.Component { * @returns {JSX.Element} */ renderCell(props) { - const style = [props.style, styles.h100, {width: this.state.containerWidth}]; + // Use window width instead of layout width to address the issue in https://github.com/Expensify/App/issues/17760 + // considering horizontal margin and border width in centered modal + const modalStyles = styles.centeredModalStyles(this.props.isSmallScreenWidth, true); + const style = [props.style, styles.h100, {width: PixelRatio.roundToNearestPixel(this.props.windowWidth - (modalStyles.marginHorizontal + modalStyles.borderWidth) * 2)}]; return ( this.setState({containerWidth: nativeEvent.layout.width + 1})} + onLayout={({nativeEvent}) => this.setState({containerWidth: PixelRatio.roundToNearestPixel(nativeEvent.layout.width)})} onMouseEnter={() => !this.canUseTouchScreen && this.toggleArrowsVisibility(true)} onMouseLeave={() => !this.canUseTouchScreen && this.toggleArrowsVisibility(false)} > diff --git a/src/components/AttachmentModal.js b/src/components/AttachmentModal.js index 00f745da0769..ea5f5baa1558 100755 --- a/src/components/AttachmentModal.js +++ b/src/components/AttachmentModal.js @@ -35,6 +35,9 @@ const propTypes = { /** Optional callback to fire when we want to preview an image and approve it for use. */ onConfirm: PropTypes.func, + /** Optional callback to fire when we want to do something after modal show. */ + onModalShow: PropTypes.func, + /** Optional callback to fire when we want to do something after modal hide. */ onModalHide: PropTypes.func, @@ -69,6 +72,7 @@ const defaultProps = { allowDownload: false, headerTitle: null, reportID: '', + onModalShow: () => {}, onModalHide: () => {}, }; @@ -163,8 +167,8 @@ class AttachmentModal extends PureComponent { */ isValidFile(file) { const {fileExtension} = FileUtils.splitExtensionFromFileName(lodashGet(file, 'name', '')); - if (!_.contains(CONST.API_ATTACHMENT_VALIDATIONS.ALLOWED_EXTENSIONS, fileExtension.toLowerCase())) { - const invalidReason = `${this.props.translate('attachmentPicker.notAllowedExtension')} ${CONST.API_ATTACHMENT_VALIDATIONS.ALLOWED_EXTENSIONS.join(', ')}`; + if (_.contains(CONST.API_ATTACHMENT_VALIDATIONS.UNALLOWED_EXTENSIONS, fileExtension.toLowerCase())) { + const invalidReason = this.props.translate('attachmentPicker.notAllowedExtension'); this.setState({ isAttachmentInvalid: true, attachmentInvalidReasonTitle: this.props.translate('attachmentPicker.wrongFileType'), @@ -255,7 +259,10 @@ class AttachmentModal extends PureComponent { onClose={() => this.setState({isModalOpen: false})} isVisible={this.state.isModalOpen} backgroundColor={themeColors.componentBG} - onModalShow={() => this.setState({shouldLoadAttachment: true})} + onModalShow={() => { + this.props.onModalShow(); + this.setState({shouldLoadAttachment: true}); + }} onModalHide={(e) => { this.props.onModalHide(e); this.setState({shouldLoadAttachment: false}); @@ -282,6 +289,7 @@ class AttachmentModal extends PureComponent { Boolean(this.state.source) && this.state.shouldLoadAttachment && ( {}, onToggleKeyboard: () => {}, + containerStyles: [], }; const AttachmentView = (props) => { @@ -124,7 +129,7 @@ const AttachmentView = (props) => { } return ( - + diff --git a/src/components/Avatar.js b/src/components/Avatar.js index 9bdd0049aef3..b2d90bddee17 100644 --- a/src/components/Avatar.js +++ b/src/components/Avatar.js @@ -21,6 +21,10 @@ const propTypes = { // eslint-disable-next-line react/forbid-prop-types imageStyles: PropTypes.arrayOf(PropTypes.object), + /** Additional styles to pass to Icon */ + // eslint-disable-next-line react/forbid-prop-types + iconAdditionalStyles: PropTypes.arrayOf(PropTypes.object), + /** Extra styles to pass to View wrapper */ containerStyles: stylePropTypes, @@ -48,6 +52,7 @@ const propTypes = { const defaultProps = { source: null, imageStyles: [], + iconAdditionalStyles: [], containerStyles: [], size: CONST.AVATAR_SIZE.DEFAULT, fill: themeColors.icon, @@ -68,9 +73,9 @@ function Avatar(props) { const isWorkspace = props.type === CONST.ICON_TYPE_WORKSPACE; const iconSize = StyleUtils.getAvatarSize(props.size); - const imageStyle = [StyleUtils.getAvatarStyle(props.size), ...props.imageStyles, StyleUtils.getAvatarBorderRadius(props.size, props.type)]; + const imageStyle = props.imageStyles ? [StyleUtils.getAvatarStyle(props.size), ...props.imageStyles, StyleUtils.getAvatarBorderRadius(props.size, props.type)] : undefined; - const iconStyle = [StyleUtils.getAvatarStyle(props.size), styles.bgTransparent, ...props.imageStyles]; + const iconStyle = props.imageStyles ? [StyleUtils.getAvatarStyle(props.size), styles.bgTransparent, ...props.imageStyles] : undefined; const iconFillColor = isWorkspace ? StyleUtils.getDefaultWorkspaceAvatarColor(props.name).fill : props.fill; const fallbackAvatar = isWorkspace ? ReportUtils.getDefaultWorkspaceAvatar(props.name) : props.fallbackIcon; @@ -91,6 +96,7 @@ function Avatar(props) { StyleUtils.getAvatarBorderStyle(props.size, props.type), isWorkspace ? StyleUtils.getDefaultWorkspaceAvatarColor(props.name) : {}, imageError ? StyleUtils.getBackgroundColorStyle(themeColors.fallbackIconColor) : {}, + ...props.iconAdditionalStyles, ]} /> diff --git a/src/components/AvatarCropModal/ImageCropView.js b/src/components/AvatarCropModal/ImageCropView.js index 7605ad83da5b..3ad72bd3d674 100644 --- a/src/components/AvatarCropModal/ImageCropView.js +++ b/src/components/AvatarCropModal/ImageCropView.js @@ -52,16 +52,23 @@ const defaultProps = { const ImageCropView = (props) => { const containerStyle = StyleUtils.getWidthAndHeightStyle(props.containerSize, props.containerSize); + const originalImageHeight = props.originalImageHeight; + const originalImageWidth = props.originalImageWidth; + const rotation = props.rotation; + const translateX = props.translateX; + const translateY = props.translateY; + const scale = props.scale; + // A reanimated memoized style, which updates when the image's size or scale changes. const imageStyle = useAnimatedStyle(() => { - const height = props.originalImageHeight.value; - const width = props.originalImageWidth.value; + const height = originalImageHeight.value; + const width = originalImageWidth.value; const aspectRatio = height > width ? height / width : width / height; - const rotate = interpolate(props.rotation.value, [0, 360], [0, 360]); + const rotate = interpolate(rotation.value, [0, 360], [0, 360]); return { - transform: [{translateX: props.translateX.value}, {translateY: props.translateY.value}, {scale: props.scale.value * aspectRatio}, {rotate: `${rotate}deg`}], + transform: [{translateX: translateX.value}, {translateY: translateY.value}, {scale: scale.value * aspectRatio}, {rotate: `${rotate}deg`}], }; - }, [props.originalImageHeight, props.originalImageWidth]); + }, [originalImageHeight, originalImageWidth, rotation, translateX, translateY, scale]); // We're preventing text selection with ControlSelection.blockElement to prevent safari // default behaviour of cursor - I-beam cursor on drag. See https://github.com/Expensify/App/issues/13688 diff --git a/src/components/AvatarCropModal/Slider.js b/src/components/AvatarCropModal/Slider.js index 29bbd378f3ba..2877b3a9c917 100644 --- a/src/components/AvatarCropModal/Slider.js +++ b/src/components/AvatarCropModal/Slider.js @@ -26,12 +26,13 @@ const defaultProps = { // This component can't be written using class since reanimated API uses hooks. const Slider = (props) => { + const sliderValue = props.sliderValue; const [tooltipIsVisible, setTooltipIsVisible] = useState(true); // A reanimated memoized style, which tracks // a translateX shared value and updates the slider position. const rSliderStyle = useAnimatedStyle(() => ({ - transform: [{translateX: props.sliderValue.value}], + transform: [{translateX: sliderValue.value}], })); // We're preventing text selection with ControlSelection.blockElement to prevent safari diff --git a/src/components/AvatarWithDisplayName.js b/src/components/AvatarWithDisplayName.js index 3be660ab09c5..df6dc10b2cf8 100644 --- a/src/components/AvatarWithDisplayName.js +++ b/src/components/AvatarWithDisplayName.js @@ -8,6 +8,7 @@ import participantPropTypes from './participantPropTypes'; import withWindowDimensions, {windowDimensionsPropTypes} from './withWindowDimensions'; import withLocalize, {withLocalizePropTypes} from './withLocalize'; import styles from '../styles/styles'; +import themeColors from '../styles/themes/default'; import SubscriptAvatar from './SubscriptAvatar'; import * as ReportUtils from '../libs/ReportUtils'; import Avatar from './Avatar'; @@ -45,7 +46,7 @@ const defaultProps = { const AvatarWithDisplayName = (props) => { const title = ReportUtils.getDisplayNameForParticipant(props.report.ownerEmail, true); - const subtitle = ReportUtils.getChatRoomSubtitle(props.report, props.policies); + const subtitle = ReportUtils.getChatRoomSubtitle(props.report); const isExpenseReport = ReportUtils.isExpenseReport(props.report); const icons = ReportUtils.getIcons(props.report, props.personalDetails, props.policies); const ownerPersonalDetails = OptionsListUtils.getPersonalDetailsForLogins([props.report.ownerEmail], props.personalDetails); @@ -53,9 +54,10 @@ const AvatarWithDisplayName = (props) => { return ( {Boolean(props.report && title) && ( - + {isExpenseReport ? ( this.setState({isMenuVisible: false})} menuItems={this.createMenuItems(openPicker)} anchorPosition={this.props.anchorPosition} + anchorAlignment={this.props.anchorAlignment} /> )} diff --git a/src/components/Badge.js b/src/components/Badge.js index f1a2ff0772c4..01861c6c30ff 100644 --- a/src/components/Badge.js +++ b/src/components/Badge.js @@ -26,6 +26,10 @@ const propTypes = { // eslint-disable-next-line react/forbid-prop-types badgeStyles: PropTypes.arrayOf(PropTypes.object), + /** Styles for Badge Text */ + // eslint-disable-next-line react/forbid-prop-types + textStyles: PropTypes.arrayOf(PropTypes.object), + /** Callback to be called on onPress */ onPress: PropTypes.func, }; @@ -35,6 +39,7 @@ const defaultProps = { error: false, pressable: false, badgeStyles: [], + textStyles: [], onPress: undefined, environment: CONST.ENVIRONMENT.DEV, }; @@ -55,7 +60,7 @@ const Badge = (props) => { onPress={props.onPress} > {props.text} diff --git a/src/components/Button/index.js b/src/components/Button/index.js index f368f1b2ec59..f9200d085b28 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -1,9 +1,8 @@ import React, {Component} from 'react'; -import {Pressable, ActivityIndicator, View} from 'react-native'; +import {ActivityIndicator, View} from 'react-native'; import PropTypes from 'prop-types'; import styles from '../../styles/styles'; import themeColors from '../../styles/themes/default'; -import OpacityView from '../OpacityView'; import Text from '../Text'; import KeyboardShortcut from '../../libs/KeyboardShortcut'; import Icon from '../Icon'; @@ -15,6 +14,7 @@ import compose from '../../libs/compose'; import * as Expensicons from '../Icon/Expensicons'; import withNavigationFocus from '../withNavigationFocus'; import validateSubmitShortcut from './validateSubmitShortcut'; +import PressableWithFeedback from '../Pressable/PressableWithFeedback'; const propTypes = { /** The text for the button label */ @@ -106,6 +106,12 @@ const propTypes = { /** Id to use for this button */ nativeID: PropTypes.string, + + /** Accessibility label for the component */ + accessibilityLabel: PropTypes.string, + + /** A ref to forward the button */ + forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({current: PropTypes.oneOfType([PropTypes.instanceOf(React.Component), PropTypes.func])})]), }; const defaultProps = { @@ -137,6 +143,8 @@ const defaultProps = { shouldRemoveLeftBorderRadius: false, shouldEnableHapticFeedback: false, nativeID: '', + accessibilityLabel: '', + forwardedRef: undefined, }; class Button extends Component { @@ -235,7 +243,8 @@ class Button extends Component { render() { return ( - { if (e && e.type === 'click') { e.currentTarget.blur(); @@ -256,47 +265,42 @@ class Button extends Component { onPressOut={this.props.onPressOut} onMouseDown={this.props.onMouseDown} disabled={this.props.isLoading || this.props.isDisabled} - style={[ + wrapperStyle={[ this.props.isDisabled ? {...styles.cursorDisabled, ...styles.noSelect} : {}, styles.buttonContainer, this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined, this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined, ...StyleUtils.parseStyleAsArray(this.props.style), ]} + style={[ + styles.button, + this.props.small ? styles.buttonSmall : undefined, + this.props.medium ? styles.buttonMedium : undefined, + this.props.large ? styles.buttonLarge : undefined, + this.props.success ? styles.buttonSuccess : undefined, + this.props.danger ? styles.buttonDanger : undefined, + this.props.isDisabled && (this.props.success || this.props.danger) ? styles.buttonOpacityDisabled : undefined, + this.props.isDisabled && !this.props.danger && !this.props.success ? styles.buttonDisabled : undefined, + this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined, + this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined, + ...this.props.innerStyles, + ]} + hoverStyle={[ + this.props.success && !this.props.isDisabled ? styles.buttonSuccessHovered : undefined, + this.props.danger && !this.props.isDisabled ? styles.buttonDangerHovered : undefined, + ]} nativeID={this.props.nativeID} + accessibilityLabel={this.props.accessibilityLabel} + hoverDimmingValue={1} > - {({pressed, hovered}) => { - const activeAndHovered = !this.props.isDisabled && hovered; - return ( - - {this.renderContent()} - {this.props.isLoading && ( - - )} - - ); - }} - + {this.renderContent()} + {this.props.isLoading && ( + + )} + ); } } @@ -304,4 +308,15 @@ class Button extends Component { Button.propTypes = propTypes; Button.defaultProps = defaultProps; -export default compose(withNavigationFallback, withNavigationFocus)(Button); +export default compose( + withNavigationFallback, + withNavigationFocus, +)( + React.forwardRef((props, ref) => ( + - -); - -ButtonWithDropdown.propTypes = propTypes; -ButtonWithDropdown.defaultProps = defaultProps; -ButtonWithDropdown.displayName = 'ButtonWithDropdown'; -export default ButtonWithDropdown; diff --git a/src/components/ButtonWithDropdownMenu.js b/src/components/ButtonWithDropdownMenu.js new file mode 100644 index 000000000000..a518ce647c75 --- /dev/null +++ b/src/components/ButtonWithDropdownMenu.js @@ -0,0 +1,139 @@ +import React, {useState, useRef, useEffect} from 'react'; +import PropTypes from 'prop-types'; +import {View} from 'react-native'; +import _ from 'underscore'; +import useWindowDimensions from '../hooks/useWindowDimensions'; +import styles from '../styles/styles'; +import Button from './Button'; +import PopoverMenu from './PopoverMenu'; +import Icon from './Icon'; +import * as Expensicons from './Icon/Expensicons'; +import themeColors from '../styles/themes/default'; +import CONST from '../CONST'; + +const propTypes = { + /** Text to display for the menu header */ + menuHeaderText: PropTypes.string, + + /** Callback to execute when the main button is pressed */ + onPress: PropTypes.func.isRequired, + + /** Whether we should show a loading state for the main button */ + isLoading: PropTypes.bool, + + /** Should the confirmation button be disabled? */ + isDisabled: PropTypes.bool, + + /** Additional styles to add to the component */ + style: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]), + + /** Menu options to display */ + /** e.g. [{text: 'Pay with Expensify', icon: Wallet}, {text: 'PayPal', icon: PayPal}] */ + options: PropTypes.arrayOf( + PropTypes.shape({ + value: PropTypes.string.isRequired, + text: PropTypes.string.isRequired, + icon: PropTypes.elementType, + iconWidth: PropTypes.number, + iconHeight: PropTypes.number, + iconDescription: PropTypes.string, + }), + ).isRequired, +}; + +const defaultProps = { + isLoading: false, + isDisabled: false, + menuHeaderText: '', + style: [], +}; + +const ButtonWithDropdownMenu = (props) => { + const [selectedItemIndex, setSelectedItemIndex] = useState(0); + const [isMenuVisible, setIsMenuVisible] = useState(false); + const [popoverAnchorPosition, setPopoverAnchorPosition] = useState(null); + const {width: windowWidth, height: windowHeight} = useWindowDimensions(); + const caretButton = useRef(null); + useEffect(() => { + if (!caretButton.current) { + return; + } + caretButton.current.measureInWindow((x, y, w, h) => { + setPopoverAnchorPosition({ + horizontal: x + w, + vertical: y + h, + }); + }); + }, [windowWidth, windowHeight]); + + const selectedItem = props.options[selectedItemIndex]; + return ( + + {props.options.length > 1 ? ( + + + + ) : ( +