-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Bump onyx to 3.0.10 #74174
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
Bump onyx to 3.0.10 #74174
Conversation
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
|
@dukenv0307 Can you please take a look? @TMisiukiewicz Can you please include measurements of the perf difference on the flows as for any other performance improvement? It would be great to get an idea of how the individual changes improve the perf. Thanks! |
@TMisiukiewicz, how can we verify it? |
|
@dukenv0307 I prepared something that should help you:
diff --git a/src/App.tsx b/src/App.tsx
index 9ed0e2bac6e..7e02a48c2aa 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -15,6 +15,7 @@ import CustomStatusBarAndBackground from './components/CustomStatusBarAndBackgro
import CustomStatusBarAndBackgroundContextProvider from './components/CustomStatusBarAndBackground/CustomStatusBarAndBackgroundContextProvider';
import {EnvironmentProvider} from './components/EnvironmentContext';
import ErrorBoundary from './components/ErrorBoundary';
+import FloatingReconnectButton from './components/FloatingReconnectButton';
import FullScreenBlockingViewContextProvider from './components/FullScreenBlockingViewContextProvider';
import FullScreenLoaderContextProvider from './components/FullScreenLoaderContext';
import HTMLEngineProvider from './components/HTMLEngineProvider';
@@ -136,6 +137,7 @@ function App() {
<Expensify />
</ColorSchemeWrapper>
</ErrorBoundary>
+ <FloatingReconnectButton />
<NavigationBar />
</ComposeProviders>
</View>
diff --git a/src/components/FloatingReconnectButton.tsx b/src/components/FloatingReconnectButton.tsx
new file mode 100644
index 00000000000..490976cda34
--- /dev/null
+++ b/src/components/FloatingReconnectButton.tsx
@@ -0,0 +1,43 @@
+import React from 'react';
+import {View} from 'react-native';
+import useTheme from '@hooks/useTheme';
+import useThemeStyles from '@hooks/useThemeStyles';
+import * as App from '@userActions/App';
+import * as Expensicons from './Icon/Expensicons';
+import Icon from './Icon';
+import {PressableWithFeedback} from './Pressable';
+import Text from './Text';
+
+function FloatingReconnectButton() {
+ const theme = useTheme();
+ const styles = useThemeStyles();
+
+ const handleReconnect = () => {
+ App.reconnectApp();
+ };
+
+ return (
+ <View style={[styles.floatingReconnectButton]}>
+ <PressableWithFeedback
+ onPress={handleReconnect}
+ style={[styles.floatingReconnectButtonInner]}
+ accessibilityLabel="Reconnect app"
+ role="button"
+ >
+ <Icon
+ src={Expensicons.Sync}
+ fill={theme.textLight}
+ width={20}
+ height={20}
+ />
+ <Text style={[styles.floatingReconnectButtonText]}>
+ Reconnect
+ </Text>
+ </PressableWithFeedback>
+ </View>
+ );
+}
+
+FloatingReconnectButton.displayName = 'FloatingReconnectButton';
+
+export default FloatingReconnectButton;
\ No newline at end of file
diff --git a/src/styles/index.ts b/src/styles/index.ts
index 6e0c1877a55..9bd780c9215 100644
--- a/src/styles/index.ts
+++ b/src/styles/index.ts
@@ -1609,6 +1609,37 @@ const staticStyles = (theme: ThemeColors) =>
zIndex: 10,
},
+ floatingReconnectButton: {
+ position: 'absolute',
+ top: 100,
+ right: 20,
+ zIndex: 10,
+ },
+
+ floatingReconnectButtonInner: {
+ backgroundColor: theme.success,
+ borderRadius: 20,
+ paddingHorizontal: 12,
+ paddingVertical: 8,
+ flexDirection: 'row',
+ alignItems: 'center',
+ shadowColor: theme.shadow,
+ shadowOffset: {
+ width: 0,
+ height: 2,
+ },
+ shadowOpacity: 0.25,
+ shadowRadius: 4,
+ elevation: 5,
+ },
+
+ floatingReconnectButtonText: {
+ color: theme.textLight,
+ fontSize: variables.fontSizeSmall,
+ marginLeft: 6,
+ fontWeight: 'bold',
+ },
+
topBarLabel: {
color: theme.text,
fontSize: variables.fontSizeXLarge,
Repeat on this branch. Remember to reinstall the dependencies when switching between branches Upload both files to https://kacper-mikolajczak.github.io/rcc/ and check the duration diff On my copilot account: |
|
@mountiny I added two measurements to the PR description, usage |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-05.at.21.25.40.movAndroid: mWeb ChromeScreen.Recording.2025-11-05.at.21.25.40.moviOS: HybridAppScreen.Recording.2025-11-05.at.21.28.20.moviOS: mWeb SafariScreen.Recording.2025-11-05.at.21.25.09.movMacOS: Chrome / SafariScreen.Recording.2025-11-05.at.21.29.38.movMacOS: DesktopScreen.Recording.2025-11-05.at.21.29.02.mov |
|
@mountiny looks faster based on this result. We're good to merge |
|
Hmm, I'm unable to rerun perf tests? |
|
IIRC They are disabled |
|
I'm going to merge through the perf test failures then, since I cant restart them to get them to pass |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.2.45-0 🚀
|
|
cc @JS00001 @dukenv0307 @TMisiukiewicz this causes 2 blockers for a feature that needs to be delived on prod (revert splits). See details in the revert PR: #74452 |
|
🤔 What was the issue here? |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.45-6 🚀
|

Explanation of Change
This release includes:
Expensify/react-native-onyx#697
Expensify/react-native-onyx#693
Here are the measurements observed with this change:
Fixed Issues
$ #72679
PROPOSAL:
Tests
Offline tests
n/a
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov