Open IuliiaHerets opened 1 day ago
Triggered auto assignment to @MitchExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Triggered auto assignment to @MarioExpensify (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
💬 A slack conversation has been started in #expensify-open-source
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Edited by proposal-police: This proposal was edited at 2024-11-23 14:35:22 UTC.
Per diem - Settings page is blank when categories are disabled
we display the settings button in the per diem page even if categories are disabled: https://github.com/Expensify/App/blob/2a031a04d73bbb8b9e0b421358a7a76a5fbf2720/src/pages/workspace/perDiem/WorkspacePerDiemPage.tsx#L263-L280
we should return null if categories are disabled:
to achevie that we can move the isFeatureEnabledInPolicies inside the AdvancedSearchFilters
to the policy utils functions then use it in the WorkspacePerDiemPage as followiing:
const areCategoriesEnabled = PolicyUtils.isFeatureEnabledInPolicies(policies, CONST.POLICY.MORE_FEATURES.ARE_CATEGORIES_ENABLED);
then in the getHeaderButtons
before returning the settings button we should add this conditon:
if (!areCategoriesEnabled) {
return null;
}
Me and @c3024 will handle this issue. No need to go external.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.66-0 Reproducible in staging?: Y Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Slack conversation (hyperlinked to channel name):
Action Performed:
Expected Result:
Settings button should not be present when categories are disabled.
Actual Result:
Settings page is blank when categories are disabled.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/5a3d7b5f-94d8-4272-a9b7-e54c539f412c
View all open jobs on GitHub