Skip to content

Conversation

@kacper-mikolajczak
Copy link
Owner

Test PR for AI reviewer validation (from Expensify#78965)

@kacper-mikolajczak kacper-mikolajczak marked this pull request as draft January 8, 2026 12:49
@kacper-mikolajczak kacper-mikolajczak marked this pull request as ready for review January 8, 2026 12:49
@kacper-mikolajczak kacper-mikolajczak marked this pull request as draft January 21, 2026 18:12
@kacper-mikolajczak kacper-mikolajczak marked this pull request as ready for review January 21, 2026 18:12
@kacper-mikolajczak kacper-mikolajczak marked this pull request as draft January 21, 2026 18:43
@kacper-mikolajczak kacper-mikolajczak marked this pull request as ready for review January 21, 2026 18:43
return !isMultiScanEnabled || (transactions.length === 1 && (!initialTransaction.receipt?.source || initialTransaction.receipt?.isTestReceipt === true));
}

function mergeTransactionIdsHighlightOnSearchRoute(type: SearchDataTypes, data: Record<string, boolean> | null) {

Choose a reason for hiding this comment

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

❌ CONSISTENCY-5 (docs)

This ESLint rule disable lacks a clear justification comment.

Why this matters: ESLint rule disables without justification can mask underlying issues and reduce code quality. Clear documentation ensures team members understand exceptions, promoting better maintainability.

Suggested fix: Add a comment explaining why the rule needs to be disabled. For example:

function mergeTransactionIdsHighlightOnSearchRoute(type: SearchDataTypes, data: Record<string, boolean> | null) {
    // eslint-disable-next-line rulesdir/prefer-actions-set-data
    // We use Onyx.merge here instead of actions/setData because this is a utility function
    // that needs to be called from multiple places without circular dependencies
    return Onyx.merge(ONYXKEYS.TRANSACTION_IDS_HIGHLIGHT_ON_SEARCH_ROUTE, {[type]: data});
}

Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants