Skip to content

Conversation

@lakchote lakchote requested a review from a team as a code owner October 6, 2025 14:26
@melvin-bot melvin-bot bot requested a review from Gonals October 6, 2025 14:26
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2025

@Gonals 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]

@melvin-bot melvin-bot bot removed the request for review from a team October 6, 2025 14:26
@lakchote lakchote changed the title Revert "Add translations for report field formula type" [CP Staging] Revert "Add translations for report field formula type" Oct 6, 2025
initialValue,
});
}}
onTypeSelected={(type) => formRef.current?.resetForm({...inputValues, type, initialValue: type === CONST.REPORT_FIELD_TYPES.DATE ? defaultDate : ''})}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ PERF-4 (docs)

Objects and functions passed as props should be properly memoized or simplified to primitive values to prevent unnecessary re-renders.

The inline arrow function creates a new function instance on every render, which will cause the TypeSelector component to re-render unnecessarily even when its actual logic hasn't changed.

const handleTypeSelected = useCallback((type) => {
    const initialValue = type === CONST.REPORT_FIELD_TYPES.DATE ? defaultDate : '';
    formRef.current?.resetForm({...inputValues, type, initialValue});
}, [inputValues, defaultDate]);

// Then use:
onTypeSelected={handleTypeSelected}

@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...pages/workspace/reports/CreateReportFieldsPage.tsx 0.00% 1 Missing ⚠️
...workspace/reports/ReportFieldsInitialValuePage.tsx 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@Beamanator Beamanator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straight revert 👍

@Beamanator Beamanator merged commit ed85b27 into main Oct 6, 2025
23 of 29 checks passed
@Beamanator Beamanator deleted the revert-71790-ionatan_addformulareportfieldtype branch October 6, 2025 14:49
@melvin-bot melvin-bot bot added the Emergency label Oct 6, 2025
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2025

@Beamanator looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@Beamanator
Copy link
Contributor

Not emergency, straight revert so no checklist needed

OSBotify pushed a commit that referenced this pull request Oct 6, 2025
…ulareportfieldtype

[CP Staging] Revert "Add translations for report field formula type"

(cherry picked from commit ed85b27)

(cherry-picked to staging by lakchote)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Oct 6, 2025
@OSBotify
Copy link
Contributor

OSBotify commented Oct 6, 2025

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Oct 6, 2025

🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.23-2 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Oct 6, 2025

🚀 Deployed to production by https://github.com/lakchote in version: 9.2.23-3 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Oct 6, 2025

🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.24-0 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Oct 7, 2025

🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.26-0 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Oct 8, 2025

🚀 Deployed to production by https://github.com/lakchote in version: 9.2.26-7 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants