Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/components/ReportActionItem/ActionableItemButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type ActionableItemButtonsProps = {
styles?: {
text?: StyleProp<TextStyle>;
button?: StyleProp<ViewStyle>;
buttonHover?: StyleProp<ViewStyle>;
container?: StyleProp<ViewStyle>;
};
};
Expand All @@ -41,7 +40,6 @@ function ActionableItemButtons(props: ActionableItemButtonsProps) {
medium
success={item.isPrimary}
innerStyles={props.styles?.button}
hoverStyles={props.styles?.buttonHover}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed this is safe removal

@jmusial jmusial Jan 30, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yup, confirmed with the design team. We added it in previous PR, should be all g

primaryTextNumberOfLines={props.primaryTextNumberOfLines}
textStyles={props.styles?.text}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/libs/API/parameters/AddCommentOrAttachmentParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ type AddCommentOrAttachmentParams = {
isOldDotConciergeChat?: boolean;
idempotencyKey?: string;
pageHTML?: string;
optimisticConciergeReportActionID?: string;
pregeneratedResponse?: string;
};

export default AddCommentOrAttachmentParams;
17 changes: 14 additions & 3 deletions src/libs/ReportActionFollowupUtils/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import {DomUtils, parseDocument} from 'htmlparser2';
import type {Followup} from '@libs/ReportActionsUtils';
import {getReportActionMessage, isActionOfType} from '@libs/ReportActionsUtils';
import CONST from '@src/CONST';
import type {OnyxInputOrEntry, ReportAction} from '@src/types/onyx';

type Followup = {
text: string;
response?: string;
};

/**
* Checks if a report action contains actionable (unresolved) followup suggestions.
* @param reportAction - The report action to check
Expand Down Expand Up @@ -44,7 +48,14 @@ function parseFollowupsFromHtml(html: string): Followup[] | null {
return [];
}

const followupTextElements = DomUtils.getElementsByTagName('followup-text', followupList, true);
return followupTextElements.map((el) => ({text: DomUtils.textContent(el)}));
const followupElements = DomUtils.getElementsByTagName('followup', followupList, true);
return followupElements.map((followupEl) => {
const followupTextElement = DomUtils.getElementsByTagName('followup-text', followupEl, true).at(0);
const followupResponseElement = DomUtils.getElementsByTagName('followup-response', followupEl, true).at(0);
const text = followupTextElement ? DomUtils.textContent(followupTextElement) : '';
const response = followupResponseElement ? DomUtils.textContent(followupResponseElement) : undefined;
return {text, response};
});
}
export {containsActionableFollowUps, parseFollowupsFromHtml};
export type {Followup};
6 changes: 1 addition & 5 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@

type MemberChangeMessageElement = MessageTextElement | MemberChangeMessageUserMentionElement | MemberChangeMessageRoomReferenceElement;

type Followup = {
text: string;
};

function isPolicyExpenseChat(report: OnyxInputOrEntry<Report>): boolean {
return report?.chatType === CONST.REPORT.CHAT_TYPE.POLICY_EXPENSE_CHAT || !!(report && typeof report === 'object' && 'isPolicyExpenseChat' in report && report.isPolicyExpenseChat);
}
Expand All @@ -81,7 +77,7 @@
}

let allReportActions: OnyxCollection<ReportActions>;
Onyx.connect({

Check warning on line 80 in src/libs/ReportActionsUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (actions) => {
Expand All @@ -93,7 +89,7 @@
});

let allReports: OnyxCollection<Report>;
Onyx.connect({

Check warning on line 92 in src/libs/ReportActionsUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
Expand All @@ -102,13 +98,13 @@
});

let isNetworkOffline = false;
Onyx.connect({

Check warning on line 101 in src/libs/ReportActionsUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NETWORK,
callback: (val) => (isNetworkOffline = val?.isOffline ?? false),
});

let deprecatedCurrentUserAccountID: number | undefined;
Onyx.connect({

Check warning on line 107 in src/libs/ReportActionsUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.SESSION,
callback: (value) => {
// When signed out, value is undefined
Expand Down Expand Up @@ -4028,4 +4024,4 @@
stripFollowupListFromHtml,
};

export type {LastVisibleMessage, Followup};
export type {LastVisibleMessage};
1 change: 1 addition & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13439,4 +13439,5 @@ export type {
OptimisticNewReport,
PrepareOnboardingOnyxDataParams,
SelfDMParameters,
OptimisticReportAction,
};
62 changes: 56 additions & 6 deletions src/libs/actions/Report/SuggestedFollowup.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
import type {OnyxEntry} from 'react-native-onyx';
import Onyx from 'react-native-onyx';
import type {Ancestor} from '@libs/ReportUtils';
import {rand64} from '@libs/NumberUtils';
import type {Followup} from '@libs/ReportActionFollowupUtils';
import type {Ancestor, OptimisticReportAction} from '@libs/ReportUtils';
import {buildOptimisticAddCommentReportAction} from '@libs/ReportUtils';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Report, ReportAction} from '@src/types/onyx';
import type {Timezone} from '@src/types/onyx/PersonalDetails';
import {addComment, buildOptimisticResolvedFollowups} from '.';

/** Delay before showing pre-generated Concierge response (in milliseconds) */
const CONCIERGE_RESPONSE_DELAY_MS = 1500;

/**
* Resolves a suggested followup by posting the selected question as a comment
* and optimistically updating the HTML to mark the followup-list as resolved.
* If the followup has a pre-generated response, it will show a "Concierge is typing"
* indicator briefly before displaying the response.
* @param report - The report where the action exists
* @param notifyReportID - The report ID to notify for new actions
* @param reportAction - The report action containing the followup-list
* @param selectedFollowup - The followup question selected by the user
* @param selectedFollowup - The followup object containing the question text and optional pre-generated response
* @param timezoneParam - The user's timezone
* @param ancestors - Array of ancestor reports for proper threading
*/
function resolveSuggestedFollowup(
report: OnyxEntry<Report>,
notifyReportID: string | undefined,
reportAction: OnyxEntry<ReportAction>,
selectedFollowup: string,
selectedFollowup: Followup,
timezoneParam: Timezone,
ancestors: Ancestor[] = [],
) {
Expand All @@ -42,8 +51,49 @@ function resolveSuggestedFollowup(
[reportActionID]: resolvedAction,
});

// Post the selected followup question as a comment
addComment(report, notifyReportID ?? reportID, ancestors, selectedFollowup, timezoneParam);
if (!selectedFollowup.response) {
addComment(report, notifyReportID ?? reportID, ancestors, selectedFollowup.text, timezoneParam);
return;
}

// If there's a pre-generated response, show typing indicator then display response after delay

const optimisticConciergeReportActionID = rand64();

// Post user's comment immediately
addComment(report, notifyReportID ?? reportID, ancestors, selectedFollowup.text, timezoneParam, false, false, {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❌ CONSISTENCY-5 (docs)

There is no error handling if the API call for addComment fails on line 64. When the comment submission fails but the setTimeout has already been scheduled, the optimistic Concierge response will still appear after the delay even though the users question was never posted.

This creates a confusing UX where Concierge appears to respond to a message that failed to send.

Suggested fix: The timeout should be tied to the API calls success. Consider passing a cleanup callback to addComment or checking the API response before scheduling the optimistic response:

// One approach: pass the optimistic action as part of the API call
// and let the API success handler trigger the delayed response

// Alternative: Return a promise from addComment and only schedule on success
const commentResult = await addComment(...);
if (commentResult.success) {
    addOptimisticConciergeActionWithDelay(reportID, optimisticConciergeAction);
}

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

same as below : this is actually it's getting cleared in src/libs/actions/Report/index.ts#756

optimisticConciergeReportActionID,
pregeneratedResponse: selectedFollowup.response,
});

const optimisticConciergeAction = buildOptimisticAddCommentReportAction(
selectedFollowup.response,
undefined,
CONST.ACCOUNT_ID.CONCIERGE,
CONCIERGE_RESPONSE_DELAY_MS,
Comment on lines +69 to +73

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clear pendingAction for optimistic concierge reply

The optimistic concierge response is created with buildOptimisticAddCommentReportAction, which sets pendingAction: ADD. Because this action is created and later merged outside the normal addActions successData flow, there’s no place that clears pendingAction/isOptimisticAction for optimisticConciergeReportActionID, so the reply can remain permanently in a “sending” state even after the API succeeds. Add a success-path cleanup for this ID.

Useful? React with 👍 / 👎.

reportID,
optimisticConciergeReportActionID,
);

addOptimisticConciergeActionWithDelay(reportID, optimisticConciergeAction);
}

function addOptimisticConciergeActionWithDelay(reportID: string, optimisticConciergeAction: OptimisticReportAction) {
// Show "Concierge is typing..." indicator
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_USER_IS_TYPING}${reportID}`, {
[CONST.ACCOUNT_ID.CONCIERGE]: true,
});

setTimeout(() => {
Comment thread
jmusial marked this conversation as resolved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If setTimeout, there should be clearTimeout

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this one is not in the component lifecycle and the danger of user navigating away during that is small. It'll be garbage collected after it fires, so I think it's ok to leave as is.

// Clear the typing indicator
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_USER_IS_TYPING}${reportID}`, {
[CONST.ACCOUNT_ID.CONCIERGE]: false,
});
Comment thread
jmusial marked this conversation as resolved.

Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`, {
[optimisticConciergeAction.reportAction.reportActionID]: optimisticConciergeAction.reportAction,
});
Comment on lines +93 to +95

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Guard delayed concierge response on addComment failure

The optimistic concierge response is merged after a fixed delay regardless of whether the underlying ADD_COMMENT succeeds. If the API call fails (offline, 5xx, validation error), the failure data removes the optimistic response, but this delayed merge will re‑insert it anyway, leaving a ghost response and clearing typing state even though the question never posted. Consider canceling the timeout or only merging the optimistic response after a successful server acknowledgment.

Useful? React with 👍 / 👎.

@jmusial jmusial Jan 30, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

responded to that above: it's getting cleared in src/libs/actions/Report/index.ts#756

Comment on lines +93 to +95

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Cancel delayed concierge reply on addComment failure

This merge is scheduled unconditionally after a timeout, so if the underlying ADD_COMMENT call fails (offline/500), the optimistic concierge reply still gets inserted later. The failureData path removes any optimistic response immediately, but this delayed merge re-adds it, so users can see a concierge reply even though their question never posted. Consider canceling the timeout on failure or gating this merge on request success.

Useful? React with 👍 / 👎.

}, CONCIERGE_RESPONSE_DELAY_MS);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We usually don't accept setTimeout but 1.5s is reliable delay duration?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For this one is fine, since we don't want to show the optimistic response so it can feels a bit more natural

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is just to mimic "real person" typing effect from concierge a visual gimmick,

}

export default resolveSuggestedFollowup;
export {resolveSuggestedFollowup, CONCIERGE_RESPONSE_DELAY_MS};
43 changes: 39 additions & 4 deletions src/libs/actions/Report/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,18 @@
type?: string;
};

type PregeneratedResponseParams = {
optimisticConciergeReportActionID: string;
pregeneratedResponse: string;
};

const addNewMessageWithText = new Set<string>([WRITE_COMMANDS.ADD_COMMENT, WRITE_COMMANDS.ADD_TEXT_AND_ATTACHMENT]);
let conciergeReportIDOnyxConnect: string | undefined;
let deprecatedCurrentUserAccountID = -1;
/** @deprecated This value is deprecated and will be removed soon after migration. Use the email from useCurrentUserPersonalDetails hook instead. */
let deprecatedCurrentUserLogin: string | undefined;

Onyx.connect({

Check warning on line 289 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.SESSION,
callback: (value) => {
// When signed out, val is undefined
Expand All @@ -295,7 +300,7 @@
},
});

Onyx.connect({

Check warning on line 303 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.CONCIERGE_REPORT_ID,
callback: (value) => (conciergeReportIDOnyxConnect = value),
});
Expand All @@ -303,7 +308,7 @@
// map of reportID to all reportActions for that report
const allReportActions: OnyxCollection<ReportActions> = {};

Onyx.connect({

Check warning on line 311 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
callback: (actions, key) => {
if (!key || !actions) {
Expand All @@ -315,7 +320,7 @@
});

let allReports: OnyxCollection<Report>;
Onyx.connect({

Check warning on line 323 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
Expand All @@ -324,7 +329,7 @@
});

let allPersonalDetails: OnyxEntry<PersonalDetailsList> = {};
Onyx.connect({

Check warning on line 332 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
callback: (value) => {
allPersonalDetails = value ?? {};
Expand All @@ -339,7 +344,7 @@
});

let onboarding: OnyxEntry<Onboarding>;
Onyx.connect({

Check warning on line 347 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_ONBOARDING,
callback: (val) => {
if (Array.isArray(val)) {
Expand Down Expand Up @@ -577,8 +582,18 @@
* @param report - The report where the comment should be added
* @param notifyReportID - The report ID we should notify for new actions. This is usually the same as reportID, except when adding a comment to an expense report with a single transaction thread, in which case we want to notify the parent expense report.
* @param isInSidePanel - Whether the comment is being added from the side panel
* @param pregeneratedResponseParams - Optional params for pre-generated response (API only, no optimistic action - used when response display is delayed)
*/
function addActions(report: OnyxEntry<Report>, notifyReportID: string, ancestors: Ancestor[], timezoneParam: Timezone, text = '', file?: FileObject, isInSidePanel = false) {
function addActions(
report: OnyxEntry<Report>,
notifyReportID: string,
ancestors: Ancestor[],
timezoneParam: Timezone,
text = '',
file?: FileObject,
isInSidePanel = false,
pregeneratedResponseParams?: PregeneratedResponseParams,
) {
if (!report?.reportID) {
return;
}
Expand Down Expand Up @@ -673,6 +688,12 @@
}
}

// Add pregenerated params
if (pregeneratedResponseParams) {
parameters.optimisticConciergeReportActionID = pregeneratedResponseParams.optimisticConciergeReportActionID;
parameters.pregeneratedResponse = pregeneratedResponseParams.pregeneratedResponse;
}

const optimisticData: Array<OnyxUpdate<typeof ONYXKEYS.COLLECTION.REPORT | typeof ONYXKEYS.COLLECTION.REPORT_ACTIONS | typeof ONYXKEYS.PERSONAL_DETAILS_LIST>> = [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand Down Expand Up @@ -716,7 +737,7 @@
};
}

const failureReportActions: Record<string, OptimisticAddCommentReportAction | ReportAction> = {};
const failureReportActions: Record<string, OptimisticAddCommentReportAction | ReportAction | null> = {};

for (const [actionKey, action] of Object.entries(optimisticReportActions)) {
failureReportActions[actionKey] = {
Expand All @@ -730,6 +751,11 @@
failureReportActions[lastActionReportActionID] = lastVisibleAction;
}

// In case of error, remove the optimistic Concierge response
if (pregeneratedResponseParams) {
failureReportActions[pregeneratedResponseParams.optimisticConciergeReportActionID] = null;
}

const failureData: Array<OnyxUpdate<typeof ONYXKEYS.COLLECTION.REPORT | typeof ONYXKEYS.COLLECTION.REPORT_ACTIONS>> = [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand Down Expand Up @@ -805,11 +831,20 @@
}

/** Add a single comment to a report */
function addComment(report: OnyxEntry<Report>, notifyReportID: string, ancestors: Ancestor[], text: string, timezoneParam: Timezone, shouldPlaySound?: boolean, isInSidePanel?: boolean) {
function addComment(
report: OnyxEntry<Report>,
notifyReportID: string,
ancestors: Ancestor[],
text: string,
timezoneParam: Timezone,
shouldPlaySound?: boolean,
isInSidePanel?: boolean,
pregeneratedResponseParams?: PregeneratedResponseParams,
) {
if (shouldPlaySound) {
playSound(SOUNDS.DONE);
}
addActions(report, notifyReportID, ancestors, timezoneParam, text, undefined, isInSidePanel);
addActions(report, notifyReportID, ancestors, timezoneParam, text, undefined, isInSidePanel, pregeneratedResponseParams);
}

function reportActionsExist(reportID: string): boolean {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Debug/Report/DebugReportActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ function DebugReportActions({reportID}: DebugReportActionsProps) {

const searchedReportActions = useMemo(() => {
return (sortedAllReportActions ?? [])
.filter((reportAction) => reportAction?.reportActionID)
.filter(
(reportAction) =>
reportAction.reportActionID.includes(debouncedSearchValue) || getReportActionDebugText(reportAction).toLowerCase().includes(debouncedSearchValue.toLowerCase()),
reportAction.reportActionID?.includes(debouncedSearchValue) || getReportActionDebugText(reportAction).toLowerCase().includes(debouncedSearchValue.toLowerCase()),
)
.map((reportAction) => ({
reportActionID: reportAction.reportActionID,
Expand Down
12 changes: 7 additions & 5 deletions src/pages/inbox/report/PureReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useStyleUtils from '@hooks/useStyleUtils';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import resolveSuggestedFollowup from '@libs/actions/Report/SuggestedFollowup';
import {resolveSuggestedFollowup} from '@libs/actions/Report/SuggestedFollowup';
import ControlSelection from '@libs/ControlSelection';
import {convertToDisplayString} from '@libs/CurrencyUtils';
import {canUseTouchScreen} from '@libs/DeviceCapabilities';
Expand Down Expand Up @@ -890,7 +890,7 @@ function PureReportActionItem({
shouldUseLocalization: false,
key: `${action.reportActionID}-followup-${followup.text}`,
onPress: () => {
resolveSuggestedFollowup(reportActionReport, reportID, action, followup.text, personalDetail.timezone ?? CONST.DEFAULT_TIME_ZONE);
resolveSuggestedFollowup(reportActionReport, reportID, action, followup, personalDetail.timezone ?? CONST.DEFAULT_TIME_ZONE);
},
}));
}
Expand Down Expand Up @@ -1740,10 +1740,12 @@ function PureReportActionItem({
shouldUseLocalization={!isConciergeOptions && !actionContainsFollowUps}
primaryTextNumberOfLines={actionableButtonsNoLines}
styles={{
text: [isConciergeOptions || actionContainsFollowUps ? styles.textAlignLeft : undefined, actionContainsFollowUps && styles.fontWeightNormal],
text: [isConciergeOptions || actionContainsFollowUps ? styles.textAlignLeft : undefined],
button: actionContainsFollowUps ? [styles.actionableItemButton, hovered && styles.actionableItemButtonBackgroundHovered] : undefined,
buttonHover: actionContainsFollowUps ? styles.actionableItemButtonHovered : undefined,
container: actionContainsFollowUps && shouldUseNarrowLayout ? [styles.alignItemsStretch] : undefined,
container: [
actionContainsFollowUps && shouldUseNarrowLayout ? styles.alignItemsStretch : undefined,
actionContainsFollowUps ? styles.mt5 : undefined,
],
}}
/>
)}
Expand Down
7 changes: 0 additions & 7 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,6 @@ const staticStyles = (theme: ThemeColors) =>
actionableItemButton: {
paddingTop: 8,
paddingBottom: 8,
backgroundColor: 'transparent',
borderWidth: 1,
borderColor: theme.border,
alignItems: 'flex-start',
borderRadius: variables.componentBorderRadiusMedium,
},
Expand All @@ -942,10 +939,6 @@ const staticStyles = (theme: ThemeColors) =>
borderColor: theme.buttonPressedBG,
},

actionableItemButtonHovered: {
borderWidth: 1,
},

hoveredComponentBG: {
backgroundColor: theme.hoverComponentBG,
},
Expand Down
Loading
Loading