Skip to content

Commit f14a44b

Browse files
committed
Merge remote-tracking branch 'origin/main' into chuckdries/ecuk/3ds/fix-invalid-validatecode-error-handling
2 parents ad83357 + 1bb4a0c commit f14a44b

144 files changed

Lines changed: 4661 additions & 1811 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

__mocks__/expo-audio.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const setAudioModeAsync = jest.fn(() => Promise.resolve());
2+
3+
const mockPlayer = {
4+
play: jest.fn(),
5+
pause: jest.fn(),
6+
replace: jest.fn(),
7+
remove: jest.fn(),
8+
addListener: jest.fn(() => ({remove: jest.fn()})),
9+
};
10+
11+
const createAudioPlayer = jest.fn(() => mockPlayer);
12+
13+
const AudioModule = {
14+
requestRecordingPermissionsAsync: jest.fn(() => Promise.resolve({granted: true})),
15+
};
16+
17+
export {setAudioModeAsync, createAudioPlayer, AudioModule};
18+
export default {setAudioModeAsync, createAudioPlayer, AudioModule};

__mocks__/expo-av.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

config/webpack/webpack.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const includeModules = [
5555
'react-native-view-shot',
5656
'@react-native/assets',
5757
'expo',
58-
'expo-av',
58+
'expo-audio',
5959
'expo-video',
6060
'expo-image-manipulator',
6161
'expo-modules-core',

contributingGuides/NAVIGATION.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ function StepOne({isEditing, onNext, onMove, formValues}: CustomSubPageProps) {
511511
```ts
512512
import useSubPage from '@hooks/useSubPage';
513513
import type {SubPageProps} from '@hooks/useSubPage/types';
514+
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
514515
import InteractiveStepSubPageHeader from '@components/InteractiveStepSubPageHeader';
515516
516517
type CustomSubPageProps = SubPageProps & {
@@ -533,6 +534,7 @@ function MyFlowContent() {
533534
lastPageIndex,
534535
moveTo,
535536
resetToPage,
537+
isRedirecting,
536538
} = useSubPage<CustomSubPageProps>({
537539
pages,
538540
startFrom: 0,
@@ -557,6 +559,10 @@ function MyFlowContent() {
557559
prevPage();
558560
};
559561
562+
if (isRedirecting) {
563+
return <FullScreenLoadingIndicator />;
564+
}
565+
560566
return (
561567
<ScreenWrapper>
562568
<HeaderWithBackButton
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<template id="search-result-item-template">
2+
<a class="search-result-item" tabindex="0">
3+
<div class="search-result-content">
4+
<div class="search-result-title"></div>
5+
<div class="search-result-description"></div>
6+
</div>
7+
<img src="/assets/images/arrow-right.svg" class="base-icon" />
8+
</a>
9+
</template>
10+
11+
<template id="search-loading-template">
12+
<div class="search-loading">Searching...</div>
13+
</template>
14+
15+
<template id="search-no-results-template">
16+
<div class="search-no-results">No results found</div>
17+
</template>
18+
19+
<template id="search-error-template">
20+
<div class="search-error">Something went wrong. Please try again.</div>
21+
</template>

docs/_includes/sidebar-search.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
</a>
77
<h4 class="search-title">Search</h4>
88
</div>
9-
<!-- As the search box is being managed by Embed script from Google, the way search work is on via on Enter / Search Icon -->
10-
<div class="gcse-searchbox" data-enableHistory="false"></div>
11-
<div class="gcse-searchresults"></div>
9+
<form id="search-form" class="search-form" action="#">
10+
<label class="search-input-wrapper" for="search-input">
11+
<input type="text" id="search-input" class="search-input" required autocomplete="off" />
12+
<span class="search-label">Search for something...</span>
13+
</label>
14+
<button type="submit" id="search-button" class="search-button" aria-label="Search">
15+
<img src="/assets/images/search.svg" class="base-icon" />
16+
</button>
17+
</form>
18+
<div id="search-results" class="search-results"></div>
1219
</div>
1320
</div>

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<script defer src="{{ '/assets/js/main.js' | cache_bust }}"></script>
1818
<script defer src="{{ '/assets/js/platform-tabs.js' | cache_bust }}"></script>
1919
<script defer src="{{ '/assets/js/selector.js' | cache_bust }}"></script>
20-
<script async src="https://cse.google.com/cse.js?cx=4149bc31c5c314a1a"></script>
2120
<!-- Google Tag Manager -->
2221
<script>(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-TQBQW7CR');</script>
2322
<!-- End Google Tag Manager -->
@@ -51,6 +50,7 @@
5150

5251
<!-- Sidebar Search sections -->
5352
{% include sidebar-search.html id="sidebar-layer" %}
53+
{% include search-result-item.html %}
5454

5555
<!-- LHN content (Main navigation tree or Article TOC) -->
5656
<div id="lhn-content">

0 commit comments

Comments
 (0)