MR check: frontend !13014: feat(budget): add Advanced Budget permission and role visibility filtering
- MR frontend!13014, from
feat/4sOsAQtF-advanced-budget-permissionintomain, by Tyo, updated 2026-11-13, checked at commitb652e8eb. - Verdict: Safe. Of 50 certified dashboards: Broken 0, Affected 0, Needs review 0, Safe 50.
- Post the comment? Not needed (Safe). Post only if the team wants a comment on every MR.
- Changed: 0 migration(s), 0 model file(s), 5 code file(s) naming report data, 7 other file(s).
Drafted comment (not posted)
The comment a developer would see, between the two lines. Nothing is posted by the tool; whether comments are ever posted, and by whom, is not decided.
Report impact check: Safe. No certified Superset dashboard is affected by this MR (50 checked).
Read and cleared: 5 files that name report data (they don't change what gets stored).
Checked at b652e8eb against the 50 published and certified Superset dashboards (map built 2026-11-16) by the Report Impact Checker AI Tool (read-only). Questions: Lucas (BI).
Details for Lucas
Reviewed: Safe
src/components/layout/CTCLayout.tsx: Role-based visibility for the Budget and CTC screens: filters which cost codes and columns a role sees, and hides the Advanced view without the new BUDGET_ADVANCED_ACCESS permission. Filtering applies to the displayed rows (visibleRecords) and exports only; autosave still stores the full records, as before. The new permission key lands in role_permissions.permissions, which no certified dashboard reads (Pending AP reads only role_permissions.title and uuid).src/hooks/role/const.ts: Role-based visibility for the Budget and CTC screens: filters which cost codes and columns a role sees, and hides the Advanced view without the new BUDGET_ADVANCED_ACCESS permission. Filtering applies to the displayed rows (visibleRecords) and exports only; autosave still stores the full records, as before. The new permission key lands in role_permissions.permissions, which no certified dashboard reads (Pending AP reads only role_permissions.title and uuid).src/pages/private/budget/ctc/cost-head-detail/CostHeadDetail.tsx: Role-based visibility for the Budget and CTC screens: filters which cost codes and columns a role sees, and hides the Advanced view without the new BUDGET_ADVANCED_ACCESS permission. Filtering applies to the displayed rows (visibleRecords) and exports only; autosave still stores the full records, as before. The new permission key lands in role_permissions.permissions, which no certified dashboard reads (Pending AP reads only role_permissions.title and uuid).src/pages/private/budget/utils/budgetVisibility.ts: Role-based visibility for the Budget and CTC screens: filters which cost codes and columns a role sees, and hides the Advanced view without the new BUDGET_ADVANCED_ACCESS permission. Filtering applies to the displayed rows (visibleRecords) and exports only; autosave still stores the full records, as before. The new permission key lands in role_permissions.permissions, which no certified dashboard reads (Pending AP reads only role_permissions.title and uuid).src/pages/private/budget/ManageBudgetPage.tsx: Role-based visibility for the Budget and CTC screens: filters which cost codes and columns a role sees, and hides the Advanced view without the new BUDGET_ADVANCED_ACCESS permission. Filtering applies to the displayed rows (visibleRecords) and exports only; autosave still stores the full records, as before. The new permission key lands in role_permissions.permissions, which no certified dashboard reads (Pending AP reads only role_permissions.title and uuid).