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
125 changes: 125 additions & 0 deletions src/CONST/SENTRY_LABEL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,17 @@ const SENTRY_LABEL = {
},
OVERVIEW: {
AVATAR: 'WorkspaceOverview-Avatar',
CLIENT_ID: 'WorkspaceOverview-ClientID',
PLAN_TYPE_SAVE: {
UPGRADE: 'WorkspaceOverview-PlanTypeSave-Upgrade',
DOWNGRADE: 'WorkspaceOverview-PlanTypeSave-Downgrade',
DOWNGRADE_BLOCKED: 'WorkspaceOverview-PlanTypeSave-DowngradeBlocked',
NO_CHANGE: 'WorkspaceOverview-PlanTypeSave-NoChange',
},
RULES_DOCUMENT_CHOOSE_FILE: 'WorkspaceOverview-RulesDocumentChooseFile',
RULES_DOCUMENT_MENU: 'WorkspaceOverview-RulesDocumentMenu',
SHARE_COPY: 'WorkspaceOverview-ShareCopy',
SHARE_DOWNLOAD_QR_CODE: 'WorkspaceOverview-ShareDownloadQRCode',
NAME: 'WorkspaceOverview-Name',
DESCRIPTION: 'WorkspaceOverview-Description',
CURRENCY: 'WorkspaceOverview-Currency',
Expand All @@ -1285,6 +1296,35 @@ const SENTRY_LABEL = {
},
MEMBERS: {
INVITE_BUTTON: 'WorkspaceMembers-InviteButton',
CATEGORY_VISIBILITY_SAVE: 'WorkspaceMemberDetails-CategoryVisibilitySave',
CHANGE_OFFICE_LOCATION_CONFIRM: 'WorkspaceMembers-ChangeOfficeLocationConfirm',
CHANGE_WORK_ARRANGEMENT_CONFIRM: 'WorkspaceMembers-ChangeWorkArrangementConfirm',
DETAILS_APPROVER: 'WorkspaceMemberDetails-Approver',
DETAILS_CARD_ROW: {
EXPENSIFY_CARD: 'WorkspaceMemberDetails-CardRow-ExpensifyCard',
COMPANY_CARD: 'WorkspaceMemberDetails-CardRow-CompanyCard',
},
DETAILS_CHAT_HISTORY: 'WorkspaceMemberDetails-ChatHistory',
DETAILS_CUSTOM_FIELD_1: 'WorkspaceMemberDetails-CustomField1',
DETAILS_CUSTOM_FIELD_2: 'WorkspaceMemberDetails-CustomField2',
DETAILS_DISPLAY_NAME: 'WorkspaceMemberDetails-DisplayName',
DETAILS_MESSAGE: 'WorkspaceMemberDetails-Message',
DETAILS_OFFICE_LOCATION: 'WorkspaceMemberDetails-OfficeLocation',
DETAILS_OFFICE_LOCATION_CONFIRM: 'WorkspaceMemberDetails-OfficeLocationConfirm',
DETAILS_REMOVE: 'WorkspaceMemberDetails-Remove',
DETAILS_ROLE: 'WorkspaceMemberDetails-Role',
DETAILS_TRANSFER_OWNER: 'WorkspaceMemberDetails-TransferOwner',
DETAILS_WORK_ARRANGEMENT: 'WorkspaceMemberDetails-WorkArrangement',
IMPORTED_MEMBERS_ROLE: 'ImportedMembersConfirmation-Role',
IMPORTED_MEMBERS_SUBMIT: 'ImportedMembersConfirmation-Submit',
INVITE_MESSAGE_APPROVER: 'WorkspaceInviteMessage-Approver',
INVITE_MESSAGE_MEMBERS: 'WorkspaceInviteMessage-Members',
INVITE_MESSAGE_ROLE: 'WorkspaceInviteMessage-Role',
INVITE_MESSAGE_WORK_ARRANGEMENT: 'WorkspaceInviteMessage-WorkArrangement',
INVITE_NEXT: 'WorkspaceMembers-InviteNext',
OWNER_CHANGE_CHECK_CONFIRM: 'WorkspaceMembers-OwnerChangeCheckConfirm',
OWNER_CHANGE_CHECK_DISMISS: 'WorkspaceMembers-OwnerChangeCheckDismiss',
OWNER_CHANGE_ERROR_CONFIRM: 'WorkspaceMembers-OwnerChangeErrorConfirm',
BULK_ACTIONS_DROPDOWN: 'WorkspaceMembers-BulkActionsDropdown',
MORE_DROPDOWN: 'WorkspaceMembers-MoreDropdown',
LIST_ROW: 'WorkspaceMembers-ListRow',
Expand All @@ -1293,6 +1333,19 @@ const SENTRY_LABEL = {
},
CATEGORIES: {
ROW: 'WorkspaceCategories-Row',
FLAG_AMOUNTS_OVER_TYPE: 'WorkspaceCategories-FlagAmountsOverType',
SETTINGS_APPROVER: 'WorkspaceCategories-SettingsApprover',
SETTINGS_CREATE_RULE: 'WorkspaceCategories-SettingsCreateRule',
SETTINGS_DELETE: 'WorkspaceCategories-SettingsDelete',
SETTINGS_DESCRIPTION_HINT: 'WorkspaceCategories-SettingsDescriptionHint',
SETTINGS_GL_CODE: 'WorkspaceCategories-SettingsGLCode',
SETTINGS_NAME: 'WorkspaceCategories-SettingsName',
SETTINGS_PAYROLL_CODE: 'WorkspaceCategories-SettingsPayrollCode',
SETTINGS_RULE_ROW: {
FLAG_FOR_REVIEW: 'WorkspaceCategories-SettingsRuleRow-FlagForReview',
REQUIRE_FIELDS: 'WorkspaceCategories-SettingsRuleRow-RequireFields',
TAX: 'WorkspaceCategories-SettingsRuleRow-Tax',
},
ADD_BUTTON: 'WorkspaceCategories-AddButton',
MORE_DROPDOWN: 'WorkspaceCategories-MoreDropdown',
BULK_ACTIONS_DROPDOWN: 'WorkspaceCategories-BulkActionsDropdown',
Expand All @@ -1305,6 +1358,16 @@ const SENTRY_LABEL = {
},
TAGS: {
ROW: 'WorkspaceTags-Row',
IMPORT_MULTI_LEVEL_IMPORT: 'WorkspaceTags-ImportMultiLevelImport',
IMPORT_MULTI_LEVEL_NEXT: 'WorkspaceTags-ImportMultiLevelNext',
IMPORT_OPTION_MULTI_LEVEL: 'WorkspaceTags-ImportOptionMultiLevel',
IMPORT_OPTION_SINGLE_LEVEL: 'WorkspaceTags-ImportOptionSingleLevel',
SETTINGS_APPROVER: 'WorkspaceTags-SettingsApprover',
SETTINGS_DELETE: 'WorkspaceTags-SettingsDelete',
SETTINGS_GL_CODE: 'WorkspaceTags-SettingsGLCode',
SETTINGS_NAME: 'WorkspaceTags-SettingsName',
VIEW_TAGS_BULK_ACTIONS_DROPDOWN: 'WorkspaceTags-ViewTagsBulkActionsDropdown',
VIEW_TAGS_LIST_NAME: 'WorkspaceTags-ViewTagsListName',
ADD_BUTTON: 'WorkspaceTags-AddButton',
MORE_DROPDOWN: 'WorkspaceTags-MoreDropdown',
BULK_ACTIONS_DROPDOWN: 'WorkspaceTags-BulkActionsDropdown',
Expand All @@ -1317,12 +1380,35 @@ const SENTRY_LABEL = {
},
REPORT_FIELDS: {
LIST_VALUE_ROW: 'WorkspaceReportFields-ListValueRow',
ADD_FIELD: 'WorkspaceReportFields-AddField',
CREATE_INITIAL_VALUE: 'WorkspaceReportFields-CreateInitialValue',
CREATE_LIST_VALUES: 'WorkspaceReportFields-CreateListValues',
CREATE_TYPE: 'WorkspaceReportFields-CreateType',
LIST_VALUES_ADD_VALUE: 'WorkspaceReportFields-ListValuesAddValue',
LIST_VALUES_BULK_ACTIONS_DROPDOWN: 'WorkspaceReportFields-ListValuesBulkActionsDropdown',
ROW: 'WorkspaceReportFields-Row',
SETTINGS_DELETE: 'WorkspaceReportFields-SettingsDelete',
SETTINGS_INITIAL_VALUE: 'WorkspaceReportFields-SettingsInitialValue',
SETTINGS_LIST_VALUES: 'WorkspaceReportFields-SettingsListValues',
VALUE_SETTINGS_DELETE: 'WorkspaceReportFields-ValueSettingsDelete',
VALUE_SETTINGS_VALUE: 'WorkspaceReportFields-ValueSettingsValue',
LIST_VALUE_ENABLE_SWITCH: 'WorkspaceReportFields-ListValueEnableSwitch',
VALUE_SETTINGS_ENABLE_SWITCH: 'WorkspaceReportFields-ValueSettingsEnableSwitch',
ENABLE_SWITCH: 'WorkspaceReportFields-EnableSwitch',
},
TAXES: {
ROW: 'WorkspaceTaxes-Row',
CREATE_VALUE: 'WorkspaceTaxes-CreateValue',
CREATE_VALUE_SAVE: 'WorkspaceTaxes-CreateValueSave',
EDIT_DELETE: 'WorkspaceTaxes-EditDelete',
EDIT_NAME: 'WorkspaceTaxes-EditName',
EDIT_TAX_CODE: 'WorkspaceTaxes-EditTaxCode',
EDIT_VALUE: 'WorkspaceTaxes-EditValue',
SETTINGS_ROW: {
CUSTOM_TAX_NAME: 'WorkspaceTaxes-SettingsRow-CustomTaxName',
FOREIGN_DEFAULT: 'WorkspaceTaxes-SettingsRow-ForeignDefault',
WORKSPACE_DEFAULT: 'WorkspaceTaxes-SettingsRow-WorkspaceDefault',
},
ADD_BUTTON: 'WorkspaceTaxes-AddButton',
MORE_DROPDOWN: 'WorkspaceTaxes-MoreDropdown',
BULK_ACTIONS_DROPDOWN: 'WorkspaceTaxes-BulkActionsDropdown',
Expand All @@ -1334,6 +1420,16 @@ const SENTRY_LABEL = {
},
DISTANCE_RATES: {
ROW: 'WorkspaceDistanceRates-Row',
COMMUTER_EXCLUSIONS_SAVE: 'WorkspaceDistanceRates-CommuterExclusionsSave',
COMMUTER_EXCLUSIONS_WORK_ARRANGEMENT: 'WorkspaceDistanceRates-CommuterExclusionsWorkArrangement',
RATE_DETAILS_DELETE: 'WorkspaceDistanceRates-RateDetailsDelete',
RATE_DETAILS_END_DATE: 'WorkspaceDistanceRates-RateDetailsEndDate',
RATE_DETAILS_NAME: 'WorkspaceDistanceRates-RateDetailsName',
RATE_DETAILS_RATE: 'WorkspaceDistanceRates-RateDetailsRate',
RATE_DETAILS_START_DATE: 'WorkspaceDistanceRates-RateDetailsStartDate',
RATE_DETAILS_TAX_RATE: 'WorkspaceDistanceRates-RateDetailsTaxRate',
RATE_DETAILS_TAX_RECLAIMABLE: 'WorkspaceDistanceRates-RateDetailsTaxReclaimable',
SETTINGS_COMMUTER_EXCLUSIONS: 'WorkspaceDistanceRates-SettingsCommuterExclusions',
ADD_BUTTON: 'WorkspaceDistanceRates-AddButton',
MORE_DROPDOWN: 'WorkspaceDistanceRates-MoreDropdown',
BULK_ACTIONS_DROPDOWN: 'WorkspaceDistanceRates-BulkActionsDropdown',
Expand Down Expand Up @@ -1530,6 +1626,17 @@ const SENTRY_LABEL = {
},
RULES: {
INDIVIDUAL_EXPENSES_MENU_ITEM: 'WorkspaceRules-IndividualExpensesMenuItem',
AGENT_RULE_SUGGESTIONS_NEXT: 'WorkspaceRules-AgentRuleSuggestionsNext',
AUTO_APPROVE_REPORTS_UNDER: 'WorkspaceRules-AutoApproveReportsUnder',
AUTO_PAY_REPORTS_UNDER: 'WorkspaceRules-AutoPayReportsUnder',
MERCHANT_RULE_CATEGORY_TO_MATCH_SAVE: 'WorkspaceRules-MerchantRuleCategoryToMatchSave',
MERCHANT_RULE_MATCH_TYPE: 'WorkspaceRules-MerchantRuleMatchType',
RANDOM_REPORT_AUDIT: 'WorkspaceRules-RandomReportAudit',
SPEND_RULE_CARD_SAVE: 'WorkspaceRules-SpendRuleCardSave',
EXPENSE_DEFAULT_TYPE: {
CATEGORY: 'WorkspaceRules-ExpenseDefaultType-Category',
MERCHANT: 'WorkspaceRules-ExpenseDefaultType-Merchant',
},
SPEND_RULE_ITEM: 'WorkspaceRules-SpendRuleItem',
MERCHANT_RULE_ITEM: 'WorkspaceRules-MerchantRuleItem',
MERCHANT_RULE_APPLY_TO_EXISTING_SWITCH: 'WorkspaceRules-MerchantRuleApplyToExistingSwitch',
Expand Down Expand Up @@ -1606,6 +1713,11 @@ const SENTRY_LABEL = {
},
PER_DIEM: {
ROW: 'WorkspacePerDiem-Row',
DETAILS_AMOUNT: 'WorkspacePerDiem-DetailsAmount',
DETAILS_CURRENCY: 'WorkspacePerDiem-DetailsCurrency',
DETAILS_DELETE: 'WorkspacePerDiem-DetailsDelete',
DETAILS_DESTINATION: 'WorkspacePerDiem-DetailsDestination',
DETAILS_SUBRATE: 'WorkspacePerDiem-DetailsSubrate',
MORE_DROPDOWN: 'WorkspacePerDiem-MoreDropdown',
BULK_ACTIONS_DROPDOWN: 'WorkspacePerDiem-BulkActionsDropdown',
},
Expand All @@ -1618,6 +1730,8 @@ const SENTRY_LABEL = {
},
INVOICES: {
COMPANY_NAME: 'WorkspaceInvoices-CompanyName',
FIELD_ROW: 'WorkspaceInvoices-FieldRow',
ADD_FIELD: 'WorkspaceInvoices-AddField',
COMPANY_WEBSITE: 'WorkspaceInvoices-CompanyWebsite',
INVOICE_FIELDS_ENABLE_SWITCH: 'WorkspaceInvoices-InvoiceFieldsEnableSwitch',
},
Expand Down Expand Up @@ -1646,6 +1760,17 @@ const SENTRY_LABEL = {
},
REPORTS: {
PREVENT_MEMBERS_CHANGING_CUSTOM_NAMES_SWITCH: 'WorkspaceReports-PreventMembersChangingCustomNamesSwitch',
CUSTOM_NAME_TITLE: 'WorkspaceReports-CustomNameTitle',
},
AGENTS: {
BULK_ACTIONS_DROPDOWN: 'WorkspaceAgents-BulkActionsDropdown',
NEW_AGENT: 'WorkspaceAgents-NewAgent',
},
NEW_ROOM: {
LEARN_MORE: 'WorkspaceNewRoom-LearnMore',
},
TIME_TRACKING: {
DEFAULT_RATE: 'WorkspaceTimeTracking-DefaultRate',
},
},
ACCOUNT_SWITCHER: {
Expand Down
6 changes: 6 additions & 0 deletions src/libs/CategoryContextualRulesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type {DynamicRouteSuffix} from '@src/ROUTES';
import {DYNAMIC_ROUTES} from '@src/ROUTES';
import type {Policy, PolicyCategories, PolicyCategory} from '@src/types/onyx';
import type {PendingAction} from '@src/types/onyx/OnyxCommon';
import type {SentryLabel} from '@src/types/utils/SentryLabel';

import {getCategoryTaxRuleTaxID, getRuleDeletionPendingAction, getTaxRateDisplayName} from './CategoryTaxRulesUtils';
import {hasExplicitFlagAmount} from './FlagForReviewRulesUtils';
Expand All @@ -27,6 +28,8 @@ type CategoryContextualRule = {
summary: string;
/** Dynamic route suffix under category settings (keeps Categories underlay on refresh). */
dynamicRoutePath: DynamicRouteSuffix;
/** Sentry label for the rule row, one variant per rule type */
sentryLabel: SentryLabel;
pendingAction?: PendingAction;
/** Optimistically deleted rules stay listed (struck through) but must not be openable. */
isDisabled?: boolean;
Expand Down Expand Up @@ -88,6 +91,7 @@ function getCategoryContextualRules({
if (flagSummary && (isOffline || !isFlagPendingDelete)) {
rules.push({
key: `flag-for-review-${categoryName}`,
sentryLabel: CONST.SENTRY_LABEL.WORKSPACE.CATEGORIES.SETTINGS_RULE_ROW.FLAG_FOR_REVIEW,
summary: flagSummary,
dynamicRoutePath: DYNAMIC_ROUTES.WORKSPACE_CATEGORY_RULES_FLAG_FOR_REVIEW_EDIT.path,
pendingAction: flagPendingAction,
Expand All @@ -107,6 +111,7 @@ function getCategoryContextualRules({
if (summary) {
rules.push({
key: `require-fields-${categoryName}`,
sentryLabel: CONST.SENTRY_LABEL.WORKSPACE.CATEGORIES.SETTINGS_RULE_ROW.REQUIRE_FIELDS,
summary,
dynamicRoutePath: DYNAMIC_ROUTES.WORKSPACE_CATEGORY_RULES_REQUIRE_FIELDS_EDIT.path,
pendingAction: requireFieldsPendingAction,
Expand All @@ -125,6 +130,7 @@ function getCategoryContextualRules({
const taxDisplayName = getTaxByID(policy, taxID) ? getTaxRateDisplayName(policy, taxID) : '';
rules.push({
key: `tax-${categoryName}`,
sentryLabel: CONST.SENTRY_LABEL.WORKSPACE.CATEGORIES.SETTINGS_RULE_ROW.TAX,
summary: translate('workspace.rules.merchantRules.ruleSummarySubtitleUpdateField', translate('common.tax').toLowerCase(), taxDisplayName),
dynamicRoutePath: DYNAMIC_ROUTES.WORKSPACE_CATEGORY_RULES_TAX_EDIT.path,
pendingAction: taxPendingAction,
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/DynamicWorkspaceInvitePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function DynamicWorkspaceInvitePageContent({route, policy, invitedEmailsToAccoun

const footerContent = (
<FormAlertWithSubmitButton
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.MEMBERS.INVITE_NEXT}
isDisabled={!selectedOptions.length}
isAlertVisible={shouldShowAlertPrompt}
buttonText={translate('common.next')}
Expand Down
45 changes: 37 additions & 8 deletions src/pages/workspace/DynamicWorkspaceOverviewPlanTypePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ type WorkspacePlanTypeItem = {
isSelected: boolean;
actionElement?: ReactNode;
};
/** What saving the selected plan does, so the save handler and its Sentry label stay in sync */
const PLAN_UPDATE_OUTCOME = {
UPGRADE: 'upgrade',
DOWNGRADE: 'downgrade',
DOWNGRADE_BLOCKED: 'downgradeBlocked',
NO_CHANGE: 'noChange',
} as const;

const PLAN_TYPE_SAVE_SENTRY_LABELS = {
[PLAN_UPDATE_OUTCOME.UPGRADE]: CONST.SENTRY_LABEL.WORKSPACE.OVERVIEW.PLAN_TYPE_SAVE.UPGRADE,
[PLAN_UPDATE_OUTCOME.DOWNGRADE]: CONST.SENTRY_LABEL.WORKSPACE.OVERVIEW.PLAN_TYPE_SAVE.DOWNGRADE,
[PLAN_UPDATE_OUTCOME.DOWNGRADE_BLOCKED]: CONST.SENTRY_LABEL.WORKSPACE.OVERVIEW.PLAN_TYPE_SAVE.DOWNGRADE_BLOCKED,
[PLAN_UPDATE_OUTCOME.NO_CHANGE]: CONST.SENTRY_LABEL.WORKSPACE.OVERVIEW.PLAN_TYPE_SAVE.NO_CHANGE,
};

function DynamicWorkspaceOverviewPlanTypePage({policy}: WithPolicyProps) {
const [currentPlan, setCurrentPlan] = useState(policy?.type);
const policyID = policy?.id;
Expand Down Expand Up @@ -108,25 +123,38 @@ function DynamicWorkspaceOverviewPlanTypePage({policy}: WithPolicyProps) {
? format(parseISO(privateSubscription.endDate), CONST.DATE.MONTH_DAY_YEAR_ORDINAL_FORMAT, {locale: dateFnsLocale})
: CardSectionUtils.getNextBillingDate(dateFnsLocale);

const handleUpdatePlan = () => {
const getPlanUpdateOutcome = (): ValueOf<typeof PLAN_UPDATE_OUTCOME> => {
// Submit policies don't expose SUBMIT in the option list, but the editor can
// still pick Team/Corporate. Route any selection from a Submit policy to the
// upgrade screen — the polished Submit-specific upgrade UX ships in #87263.
if (policyID && policy?.type === CONST.POLICY.TYPE.SUBMIT && (currentPlan === CONST.POLICY.TYPE.TEAM || currentPlan === CONST.POLICY.TYPE.CORPORATE)) {
Navigation.navigate(ROUTES.WORKSPACE_UPGRADE.getRoute(policyID, undefined, undefined, undefined, currentPlan));
return;
return PLAN_UPDATE_OUTCOME.UPGRADE;
}

if (policyID && policy?.type === CONST.POLICY.TYPE.TEAM && currentPlan === CONST.POLICY.TYPE.CORPORATE) {
return PLAN_UPDATE_OUTCOME.UPGRADE;
}

if (policyID && policy?.type === CONST.POLICY.TYPE.CORPORATE && currentPlan === CONST.POLICY.TYPE.TEAM) {
return isSubscriptionTypeOfInvoicing(privateSubscription?.type) ? PLAN_UPDATE_OUTCOME.DOWNGRADE_BLOCKED : PLAN_UPDATE_OUTCOME.DOWNGRADE;
}

return PLAN_UPDATE_OUTCOME.NO_CHANGE;
};
const planUpdateOutcome = getPlanUpdateOutcome();

const handleUpdatePlan = () => {
if (planUpdateOutcome === PLAN_UPDATE_OUTCOME.UPGRADE && policyID) {
Navigation.navigate(ROUTES.WORKSPACE_UPGRADE.getRoute(policyID, undefined, undefined, undefined, currentPlan));
return;
}

if (policyID && policy?.type === CONST.POLICY.TYPE.CORPORATE && currentPlan === CONST.POLICY.TYPE.TEAM) {
if (isSubscriptionTypeOfInvoicing(privateSubscription?.type)) {
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.SUBSCRIPTION_DOWNGRADE_BLOCKED.path));
return;
}
if (planUpdateOutcome === PLAN_UPDATE_OUTCOME.DOWNGRADE_BLOCKED) {
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.SUBSCRIPTION_DOWNGRADE_BLOCKED.path));
return;
}

if (planUpdateOutcome === PLAN_UPDATE_OUTCOME.DOWNGRADE) {
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.WORKSPACE_DOWNGRADE.path));
return;
}
Expand Down Expand Up @@ -185,6 +213,7 @@ function DynamicWorkspaceOverviewPlanTypePage({policy}: WithPolicyProps) {
addBottomSafeAreaPadding
footerContent={
<Button
sentryLabel={PLAN_TYPE_SAVE_SENTRY_LABELS[planUpdateOutcome]}
variant={CONST.BUTTON_VARIANT.SUCCESS}
size={CONST.BUTTON_SIZE.LARGE}
style={styles.mt6}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/workspace/WorkspaceAgentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function WorkspaceAgentsPage({route}: WorkspaceAgentsPageProps) {
const newAgentButton =
canWriteAgents && hasAgents ? (
<Button
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.AGENTS.NEW_AGENT}
variant={CONST.BUTTON_VARIANT.SUCCESS}
onPress={() => Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.AGENT_NEW.getRoute()))}
>
Expand Down Expand Up @@ -116,6 +117,7 @@ function WorkspaceAgentsPage({route}: WorkspaceAgentsPageProps) {

const headerButtons = shouldShowBulkActionsButton ? (
<ButtonWithDropdownMenu<DeepValueOf<typeof CONST.AGENTS.BULK_ACTION_TYPES>>
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.AGENTS.BULK_ACTIONS_DROPDOWN}
variant={CONST.BUTTON_VARIANT.SUCCESS}
shouldAlwaysShowDropdownMenu
customText={translate('workspace.common.selected', {count: selectedAgentKeys.length})}
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/WorkspaceNewRoomPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function EmptyWorkspaceView() {
addBottomSafeAreaPadding
/>
<Button
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.NEW_ROOM.LEARN_MORE}
variant={CONST.BUTTON_VARIANT.SUCCESS}
size={CONST.BUTTON_SIZE.LARGE}
onPress={() => Navigation.navigate(ROUTES.WORKSPACES_LIST.getRoute(Navigation.getActiveRoute()))}
Expand Down
Loading
Loading