With disable_enterprise_features: true, the Alerting sidebar entry and "Create Alert Rule" page were still rendered (just grayed out), inconsistent with other enterprise features that are fully hidden under this flag.
Changes
src/app/navigation.tsx: Gate sidebarAlerting behind !env?.flags.disableEnterpriseFeatures, matching the existing pattern for sidebarApprovals, access logs, etc.
src/components/AlertingRulesTable.tsx: Pass onAdd={undefined} when enterprise features are disabled, suppressing the "+ Create Alert" button.
src/app/[orgId]/settings/alerting/create/page.tsx: Guard the create page — renders null and calls router.replace back to the rules list if enterprise features are disabled, preventing direct URL access.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/3011
Author: @Copilot
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/6/2026
Merged by: @oschwartz10612
Base:
dev← Head:copilot/fix-create-alert-visibility📝 Commits (10+)
cf596d9Merge pull request #2971 from fosrl/devfb4bda0Merge pull request #2983 from fosrl/dev23f4302Merge pull request #2995 from fosrl/dev9410a18Merge pull request #2997 from fosrl/dev87e6c7bMerge pull request #3003 from fosrl/dev9b71c42Merge pull request #3005 from fosrl/dev432dc81Merge pull request #3006 from fosrl/dev0c643e9Initial plan1b183d3Hide alerting features when disable_enterprise_features is set3ac315bFix useEffect dependency array in create alert page📊 Changes
3 files changed (+37 additions, -10 deletions)
View changed files
📝
src/app/[orgId]/settings/alerting/create/page.tsx(+16 -1)📝
src/app/navigation.tsx(+9 -5)📝
src/components/AlertingRulesTable.tsx(+12 -4)📄 Description
With
disable_enterprise_features: true, the Alerting sidebar entry and "Create Alert Rule" page were still rendered (just grayed out), inconsistent with other enterprise features that are fully hidden under this flag.Changes
src/app/navigation.tsx: GatesidebarAlertingbehind!env?.flags.disableEnterpriseFeatures, matching the existing pattern forsidebarApprovals, access logs, etc.src/components/AlertingRulesTable.tsx: PassonAdd={undefined}when enterprise features are disabled, suppressing the "+ Create Alert" button.src/app/[orgId]/settings/alerting/create/page.tsx: Guard the create page — rendersnulland callsrouter.replaceback to the rules list if enterprise features are disabled, preventing direct URL access.Fixes #3009
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.