Skip to content

Commit 6e8e89e

Browse files
Merge remote-tracking branch 'origin/main' into claude-taskViewTitleArrowAlignment
Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
2 parents dab3f66 + 2457b72 commit 6e8e89e

96 files changed

Lines changed: 3089 additions & 537 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Mobile-Expensify‎

‎android/app/build.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ android {
111111
minSdkVersion rootProject.ext.minSdkVersion
112112
targetSdkVersion rootProject.ext.targetSdkVersion
113113
multiDexEnabled rootProject.ext.multiDexEnabled
114-
versionCode 1009047600
115-
versionName "9.4.76-0"
114+
versionCode 1009047601
115+
versionName "9.4.76-1"
116116
// Supported language variants must be declared here to avoid from being removed during the compilation.
117117
// This also helps us to not include unnecessary language variants in the APK.
118118
resConfigs "en", "es"

‎ios/NewExpensify/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</dict>
4545
</array>
4646
<key>CFBundleVersion</key>
47-
<string>9.4.76.0</string>
47+
<string>9.4.76.1</string>
4848
<key>FullStory</key>
4949
<dict>
5050
<key>OrgId</key>

‎ios/NotificationServiceExtension/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.4.76</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.4.76.0</string>
16+
<string>9.4.76.1</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

‎ios/ShareViewController/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.4.76</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.4.76.0</string>
16+
<string>9.4.76.1</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionAttributes</key>

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "9.4.76-0",
3+
"version": "9.4.76-1",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",

‎src/CONST/index.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8576,6 +8576,7 @@ const CONST = {
85768576
HAS_EMPLOYEE_CARD_FEED_ERRORS: 'hasEmployeeCardFeedErrors',
85778577
HAS_POLICY_ADMIN_CARD_FEED_ERRORS: 'hasPolicyAdminCardFeedErrors',
85788578
HAS_DOMAIN_ERRORS: 'hasDomainErrors',
8579+
HAS_PENDING_DOMAIN_ADMIN_REQUESTS: 'hasPendingDomainAdminRequests',
85798580
HAS_LOCKED_BANK_ACCOUNT: 'hasLockedBankAccount',
85808581
HAS_DEVICE_MANAGEMENT_ERROR: 'hasDeviceManagementError',
85818582
HAS_MERGE_HR_SETUP_NEEDED: 'hasMergeHRSetupNeeded',
@@ -9780,6 +9781,9 @@ const CONST = {
97809781
DOMAIN: {
97819782
ADMINS: {
97829783
ROW: 'DomainAdmins-Row',
9784+
REQUEST_ROW: 'DomainAdmins-RequestRow',
9785+
REQUEST_APPROVE: 'DomainAdmins-RequestApprove',
9786+
REQUEST_DENY: 'DomainAdmins-RequestDeny',
97839787
},
97849788
GROUPS: {
97859789
CREATE_GROUP_BUTTON: 'DomainGroups-CreateGroupButton',
@@ -9825,6 +9829,18 @@ const CONST = {
98259829
MOVE_TO_GROUP: 'moveToGroup',
98269830
},
98279831
},
9832+
9833+
ADMINS: {
9834+
ROW_TYPE: {
9835+
GROUP_HEADER: 'groupHeader',
9836+
REQUEST: 'request',
9837+
ADMIN: 'admin',
9838+
},
9839+
GROUP_ORDER: {
9840+
REQUESTS: 0,
9841+
ADMINS: 1,
9842+
},
9843+
},
98289844
},
98299845

98309846
AUTO_COMPLETE_VARIANTS: {

‎src/components/AutoCompleteSuggestions/index.tsx‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import React, {useEffect} from 'react';
1313
import type {AutoCompleteSuggestionsProps, MeasureParentContainerAndCursor} from './types';
1414

1515
import AutoCompleteSuggestionsPortal from './AutoCompleteSuggestionsPortal';
16+
import getBottomSuggestionPadding from './AutoCompleteSuggestionsPortal/getBottomSuggestionPadding';
1617
import getLeftOffset from './getSuggestionsLeftOffset';
1718
import getSuggestionsViewportBottom from './getSuggestionsViewportBottom';
1819

@@ -43,11 +44,13 @@ function isSuggestionMenuRenderedAbove(isEnoughSpaceAboveForBigMenu: boolean, is
4344
}
4445

4546
type IsEnoughSpaceToRenderMenuAboveCursor = Pick<MeasureParentContainerAndCursor, 'y' | 'cursorCoordinates' | 'scrollValue'> & {
46-
contentHeight: number;
47+
menuHeight: number;
4748
topInset: number;
4849
};
49-
function isEnoughSpaceToRenderMenuAboveCursor({y, cursorCoordinates, scrollValue, contentHeight, topInset}: IsEnoughSpaceToRenderMenuAboveCursor): boolean {
50-
return y + (cursorCoordinates.y - scrollValue) > contentHeight + topInset + CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTION_BOX_MAX_SAFE_DISTANCE;
50+
function isEnoughSpaceToRenderMenuAboveCursor({y, cursorCoordinates, scrollValue, menuHeight, topInset}: IsEnoughSpaceToRenderMenuAboveCursor): boolean {
51+
const gapAboveCursor = Math.max(CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTION_BOX_MAX_SAFE_DISTANCE, getBottomSuggestionPadding(true));
52+
53+
return y + (cursorCoordinates.y - scrollValue) > menuHeight + gapAboveCursor + topInset;
5154
}
5255

5356
const initialContainerState = {
@@ -123,7 +126,7 @@ function AutoCompleteSuggestions<TSuggestion>({measureParentContainerAndReportCu
123126
y,
124127
cursorCoordinates,
125128
scrollValue,
126-
contentHeight: contentMaxHeight,
129+
menuHeight: StyleUtils.getAutoCompleteSuggestionContainerHeight(contentMaxHeight),
127130
topInset,
128131
});
129132

@@ -134,7 +137,7 @@ function AutoCompleteSuggestions<TSuggestion>({measureParentContainerAndReportCu
134137
y,
135138
cursorCoordinates,
136139
scrollValue,
137-
contentHeight: contentMinHeight,
140+
menuHeight: StyleUtils.getAutoCompleteSuggestionContainerHeight(contentMinHeight),
138141
topInset,
139142
});
140143

@@ -186,6 +189,7 @@ function AutoCompleteSuggestions<TSuggestion>({measureParentContainerAndReportCu
186189
isKeyboardAnimatingRef,
187190
isInLandscapeMode,
188191
insets,
192+
StyleUtils,
189193
]);
190194

191195
// Prevent rendering if container dimensions are not set or if we have no suggestions

‎src/components/DragAndDrop/Provider/index.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import useDragAndDrop from '@hooks/useDragAndDrop';
22
import useThemeStyles from '@hooks/useThemeStyles';
33

4+
import {shouldAcceptDrop} from '@libs/DragAndDropUtils';
5+
46
import htmlDivElementRef from '@src/types/utils/htmlDivElementRef';
57
import viewRef from '@src/types/utils/viewRef';
68

@@ -13,10 +15,6 @@ import type {DragAndDropActionsContextType, DragAndDropProviderProps, DragAndDro
1315

1416
import {DragAndDropActionsContext, DragAndDropStateContext} from './DragAndDropContext';
1517

16-
function shouldAcceptDrop(event: DragEvent): boolean {
17-
return !!event.dataTransfer?.types.some((type) => type === 'Files');
18-
}
19-
2018
function DragAndDropProvider({children, isDisabled = false, setIsDraggingOver = () => {}}: DragAndDropProviderProps) {
2119
const styles = useThemeStyles();
2220
const dropZone = useRef<HTMLDivElement | View>(null);

0 commit comments

Comments
 (0)