Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix double click navigating twice on lists #25604

Merged
Merged
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ae5a99f
Added debounce row selection prop to selection list
huzaifa-99 Aug 21, 2023
9213d0d
Updated pages to use debounced onSelectRow on selection list for side…
huzaifa-99 Aug 21, 2023
e2ea627
Added debounce row selection prop to options list
huzaifa-99 Aug 21, 2023
4754aa7
Updated pages to use debounced onSelectRow on options list for side e…
huzaifa-99 Aug 21, 2023
c289d5a
Added debounce row selection prop to options selector
huzaifa-99 Aug 21, 2023
54e0fe0
Updated pages to use debounced onSelectRow on options selector for si…
huzaifa-99 Aug 21, 2023
fc64f73
Updated debounce callback in option row
huzaifa-99 Aug 21, 2023
6e3c7ac
Fix lint
huzaifa-99 Aug 21, 2023
e50bb84
Fix lint
huzaifa-99 Aug 21, 2023
4adf263
Fix debounced onSelectRow implementation in OptionRow
huzaifa-99 Aug 21, 2023
d375d2d
Removed extra call to onSelectRow
huzaifa-99 Aug 21, 2023
8edf17f
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Aug 22, 2023
7be2135
Updated new selection list to conditionally debounce onSelectRow
huzaifa-99 Aug 22, 2023
3f6942d
Merge branch 'Expensify:main' into 24074-fix-double-click-navigating-…
huzaifa-99 Aug 24, 2023
c57dbba
Added debounced row select to ThemePage
huzaifa-99 Aug 28, 2023
9d0d697
Added debounced row select to CategoryPicker
huzaifa-99 Aug 28, 2023
3712746
Updated early return syntax
huzaifa-99 Aug 28, 2023
995f33d
Added comment explaining updateOnSelectRow in OptionRow
huzaifa-99 Aug 28, 2023
0abd5d2
Cancel debounced function version when props change
huzaifa-99 Aug 28, 2023
5cfe674
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Aug 28, 2023
329767c
Removed unnecessary callback
huzaifa-99 Aug 28, 2023
b2b25fa
Updated comments lettercase
huzaifa-99 Aug 28, 2023
44c5f32
Fixed comment syntax
huzaifa-99 Aug 28, 2023
1f2d67a
Remove eslint disable rule
huzaifa-99 Aug 28, 2023
2f67ee0
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Sep 12, 2023
27f5aca
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Sep 13, 2023
9cb54b1
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Sep 27, 2023
f5aaccc
Added debounce for arrow selection on selection list
huzaifa-99 Sep 27, 2023
57696cc
Added row select debounce on tag picker
huzaifa-99 Sep 27, 2023
dec4563
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Oct 2, 2023
e93c2ab
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Oct 5, 2023
21ce3df
Updated debounce function
huzaifa-99 Oct 9, 2023
bee6f1a
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Oct 9, 2023
2b81ebf
Use seperate callback for debounced func
huzaifa-99 Oct 11, 2023
0434a68
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Oct 11, 2023
e987f14
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Dec 12, 2023
ce8e6e6
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Dec 21, 2023
4c9668e
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Jan 23, 2024
fe8f185
Added single execution logic on web
huzaifa-99 Jan 24, 2024
4e71b31
Removed debounced onRowSelect from OptionsList, OptionsSelector and O…
huzaifa-99 Jan 24, 2024
f410673
Added shouldDebounceRowSelect on all SelectionLists with single item …
huzaifa-99 Jan 24, 2024
f668b79
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Jan 24, 2024
d0ea9f3
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Jan 24, 2024
3940e32
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Jan 29, 2024
019e706
Fix type export
huzaifa-99 Jan 29, 2024
855a7f3
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Feb 7, 2024
1a69275
Fix type
huzaifa-99 Feb 7, 2024
2d46d87
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Feb 29, 2024
dfe0c26
Revert useSingleExecution on web
huzaifa-99 Mar 1, 2024
403d15f
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Mar 1, 2024
bfd87a2
Lint
huzaifa-99 Mar 1, 2024
2f8f685
Added shouldDebounceRowSelect to new pages
huzaifa-99 Mar 1, 2024
1aff45b
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 Apr 2, 2024
dda25b6
Added debounce to new components
huzaifa-99 Apr 2, 2024
762c3b4
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 May 17, 2024
f626b5e
Added `shouldDebounceRowSelect` to newer components
huzaifa-99 May 17, 2024
1e5c77f
Merge branch 'main' into 24074-fix-double-click-navigating-twice
huzaifa-99 May 26, 2024
7c9240b
Removed unnecessary logical check
huzaifa-99 May 26, 2024
8dcd282
Updated comment
huzaifa-99 May 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Merge branch 'main' into 24074-fix-double-click-navigating-twice
  • Loading branch information
huzaifa-99 committed Jan 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 4c9668e49d85bfa2e5785855e75d60072ec861ba
51 changes: 50 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const restrictedImportPaths = [
{
name: 'react-native',
importNames: ['useWindowDimensions', 'StatusBar', 'TouchableOpacity', 'TouchableWithoutFeedback', 'TouchableNativeFeedback', 'TouchableHighlight', 'Pressable'],
importNames: ['useWindowDimensions', 'StatusBar', 'TouchableOpacity', 'TouchableWithoutFeedback', 'TouchableNativeFeedback', 'TouchableHighlight', 'Pressable', 'Text'],
message: [
'',
"For 'useWindowDimensions', please use 'src/hooks/useWindowDimensions' instead.",
"For 'TouchableOpacity', 'TouchableWithoutFeedback', 'TouchableNativeFeedback', 'TouchableHighlight', 'Pressable', please use 'PressableWithFeedback' and/or 'PressableWithoutFeedback' from 'src/components/Pressable' instead.",
"For 'StatusBar', please use 'src/libs/StatusBar' instead.",
"For 'Text', please use '@components/Text' instead.",
].join('\n'),
},
{
@@ -29,13 +30,45 @@ const restrictedImportPaths = [
importNames: ['CSSProperties'],
message: "Please use 'ViewStyle', 'TextStyle', 'ImageStyle' from 'react-native' instead.",
},
{
name: '@styles/index',
importNames: ['default', 'defaultStyles'],
message: 'Do not import styles directly. Please use the `useThemeStyles` hook or `withThemeStyles` HOC instead.',
},
{
name: '@styles/utils',
importNames: ['default', 'DefaultStyleUtils'],
message: 'Do not import StyleUtils directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead.',
},
{
name: '@styles/theme',
importNames: ['default', 'defaultTheme'],

message: 'Do not import themes directly. Please use the `useTheme` hook or `withTheme` HOC instead.',
},
{
name: '@styles/theme/illustrations',
message: 'Do not import theme illustrations directly. Please use the `useThemeIllustrations` hook instead.',
},
];

const restrictedImportPatterns = [
{
group: ['**/assets/animations/**/*.json'],
message: "Do not import animations directly. Please use the 'src/components/LottieAnimations' import instead.",
},
{
group: ['@styles/theme/themes/**'],
message: 'Do not import themes directly. Please use the `useTheme` hook or `withTheme` HOC instead.',
},
{
group: ['@styles/utils/**', '!@styles/utils/FontUtils', '!@styles/utils/types'],
message: 'Do not import style util functions directly. Please use the `useStyleUtils` hook or `withStyleUtils` HOC instead.',
},
{
group: ['@styles/theme/illustrations/themes/**'],
message: 'Do not import theme illustrations directly. Please use the `useThemeIllustrations` hook instead.',
},
];

module.exports = {
@@ -176,10 +209,26 @@ module.exports = {
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
fixStyle: 'separate-type-imports',
},
],
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/consistent-type-exports': [
'error',
{
fixMixedExportsWithInlineTypeSpecifier: false,
},
],
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'es/no-nullish-coalescing-operators': 'off',
'es/no-optional-chaining': 'off',
'valid-jsdoc': 'off',
'jsdoc/no-types': 'error',
'rulesdir/no-default-props': 'error',
'import/no-extraneous-dependencies': 'off',
'rulesdir/prefer-underscore-method': 'off',
'rulesdir/prefer-import-module-contents': 'off',
29 changes: 0 additions & 29 deletions .github/actions/composite/buildAndroidAPKDelta/action.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
name: Build an Android apk
name: Build an Android apk for e2e tests
description: Build an Android apk for an E2E test build and upload it as an artifact

inputs:
ARTIFACT_NAME:
description: The name of the workflow artifact where the APK should be uploaded
required: true
PACKAGE_SCRIPT_NAME:
description: The name of the npm script to run to build the APK
required: true
APP_OUTPUT_PATH:
description: The path to the built APK
required: true
MAPBOX_SDK_DOWNLOAD_TOKEN:
description: The token to use to download the MapBox SDK
required: true

runs:
using: composite
steps:
- name: Configure MapBox SDK
run: ./scripts/setup-mapbox-sdk.sh ${{ inputs.MAPBOX_SDK_DOWNLOAD_TOKEN }}
shell: bash

- uses: Expensify/App/.github/actions/composite/setupNode@main

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "oracle"
java-version: "17"

- uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011
with:
ruby-version: "2.7"
@@ -19,11 +38,11 @@ runs:
- uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef

- name: Build APK
run: npm run android-build-e2e
run: npm run ${{ inputs.PACKAGE_SCRIPT_NAME }}
shell: bash

- name: Upload APK
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05
with:
name: ${{ inputs.ARTIFACT_NAME }}
path: android/app/build/outputs/apk/e2e/release/app-e2e-release.apk
path: ${{ inputs.APP_OUTPUT_PATH }}
25 changes: 0 additions & 25 deletions .github/actions/composite/configureAwsCredentials/action.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Category from './Category';
import type Category from './Category';
import newComponent from './newComponentCategory';

const categories: Category[] = [newComponent];
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import traverse from '@babel/traverse';
import CONST from '../../../../libs/CONST';
import GithubUtils from '../../../../libs/GithubUtils';
import promiseSome from '../../../../libs/promiseSome';
import Category from './Category';
import type Category from './Category';

type SuperClassType = {superClass: {name?: string; object: {name: string}; property: {name: string}} | null; name: string};

Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.