Skip to content

remove flag app_alerts#5879

Closed
lkostrowski wants to merge 3 commits intomainfrom
app_alerts-flag-removal
Closed

remove flag app_alerts#5879
lkostrowski wants to merge 3 commits intomainfrom
app_alerts-flag-removal

Conversation

@lkostrowski
Copy link
Member

After this change, alerts displaying webhook issues near apps will be always available (which is now) - without a way to revert

@lkostrowski lkostrowski requested a review from a team as a code owner September 18, 2025 08:48
@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: 802c21e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
saleor-dashboard-storybook Ready Ready Preview Comment Sep 22, 2025 7:00am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the app_alerts feature flag, making webhook issue alerts in the dashboard permanently enabled. This simplifies the codebase by eliminating conditional rendering based on the feature flag.

  • Removes all references to the app_alerts feature flag from components and hooks
  • Makes app alert components always visible in the sidebar and app list views
  • Updates the build script file extension and cleans up generated feature flag files

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/components/Sidebar/menu/hooks/useMenuStructure.tsx Removes feature flag checks and always renders SidebarAppAlert components
src/apps/views/AppListView/AppListView.tsx Removes feature flag import and condition, always enables app event fetching
src/apps/components/InstalledAppListRow/InstalledAppListRow.tsx Removes conditional rendering and always shows app alerts
src/apps/components/AppAlerts/useAppsAlert.ts Removes the enabled parameter from the hook
package.json Updates build-flags script file extension
.featureFlags/generated.tsx Removes app_alerts flag definition and updates image imports
.featureFlags/app_alerts.md Deletes the feature flag documentation file
.changeset/plenty-falcons-yawn.md Adds changelog entry for the feature flag removal

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

{hasAppAlertsFeatureFlag && (
<SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />
)}
{<SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />}
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

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

[nitpick] Unnecessary braces around JSX expression. Remove the braces for cleaner code: <SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />

Suggested change
{<SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />}
<SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

Differences Found

✅ No packages or licenses were added.

Summary

Expand
License Name Package Count Packages
0BSD 1
Packages
  • tslib
CC0-1.0 1
Packages
  • type-fest
MIT/X11 1
Packages
  • nub
MPL-1.1 1
Packages
  • harmony-reflect
MPL-2.0 1
Packages
  • dompurify
Public Domain 1
Packages
  • jsonify
Python-2.0 1
Packages
  • argparse
<<missing>> 2
Packages
  • busboy
  • streamsearch
CC-BY-4.0 2
Packages
  • @saleor/macaw-ui
  • caniuse-lite
SEE LICENSE IN LICENSE 2
Packages
  • posthog-js
  • spawndamnit
WTFPL 2
Packages
  • opener
  • utf8-byte-length
BlueOak-1.0.0 3
Packages
  • jackspeak
  • package-json-from-dist
  • path-scurry
BSD-2-Clause 22
Packages
  • browser-process-hrtime
  • css-select
  • css-what
  • domelementtype
  • domhandler
  • domutils
  • dotenv
  • dotenv-expand
  • entities
  • escodegen
  • eslint-scope
  • espree
  • esprima
  • esrecurse
  • estraverse
  • esutils
  • nth-check
  • stringify-object
  • terser
  • uglify-js
  • And 2 more...
BSD-3-Clause 47
Packages
  • @saleor/app-sdk
  • @sentry/cli
  • @sentry/cli-darwin
  • @sentry/cli-linux-arm
  • @sentry/cli-linux-arm64
  • @sentry/cli-linux-i686
  • @sentry/cli-linux-x64
  • @sentry/cli-win32-arm64
  • @sentry/cli-win32-i686
  • @sentry/cli-win32-x64
  • @sinonjs/commons
  • @sinonjs/fake-timers
  • abab
  • asn1js
  • babel-plugin-istanbul
  • charenc
  • chroma-js
  • crypt
  • diff
  • esquery
  • And 27 more...
ISC 51
Packages
  • @isaacs/cliui
  • @istanbuljs/load-nyc-config
  • anymatch
  • boolbase
  • browser-stdout
  • cli-width
  • cliui
  • electron-to-chromium
  • fastq
  • flatted
  • foreground-child
  • fs.realpath
  • get-caller-file
  • get-own-enumerable-property-symbols
  • glob
  • glob-parent
  • graceful-fs
  • inflight
  • inherits
  • ini
  • And 31 more...
Apache-2.0 55
Packages
  • @ampproject/remapping
  • @editorjs/editorjs
  • @eslint/config-array
  • @eslint/config-helpers
  • @eslint/core
  • @eslint/object-schema
  • @eslint/plugin-kit
  • @humanfs/core
  • @humanfs/node
  • @humanwhocodes/module-importer
  • @humanwhocodes/retry
  • @opentelemetry/api
  • @opentelemetry/semantic-conventions
  • @playwright/test
  • @pollyjs/adapter
  • @pollyjs/core
  • @pollyjs/persister
  • @pollyjs/utils
  • @swc/core
  • @swc/core-darwin-arm64
  • And 35 more...
MIT 1270
Packages
  • @adobe/css-tools
  • @apollo/client
  • @ardatan/relay-compiler
  • @ardatan/sync-fetch
  • @babel/code-frame
  • @babel/compat-data
  • @babel/core
  • @babel/generator
  • @babel/helper-annotate-as-pure
  • @babel/helper-compilation-targets
  • @babel/helper-create-class-features-plugin
  • @babel/helper-globals
  • @babel/helper-member-expression-to-functions
  • @babel/helper-module-imports
  • @babel/helper-module-transforms
  • @babel/helper-optimise-call-expression
  • @babel/helper-plugin-utils
  • @babel/helper-replace-supers
  • @babel/helper-skip-transparent-expression-wrappers
  • @babel/helper-string-parser
  • And 1250 more...

@github-actions github-actions bot temporarily deployed to pr-5879 September 18, 2025 08:51 Destroyed
@codecov
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 38.64%. Comparing base (543984e) to head (802c21e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...components/Sidebar/menu/hooks/useMenuStructure.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5879    +/-   ##
========================================
  Coverage   38.64%   38.64%            
========================================
  Files        2745     2745            
  Lines       43254    43237    -17     
  Branches     9455     9794   +339     
========================================
- Hits        16714    16708     -6     
+ Misses      26510    26499    -11     
  Partials       30       30            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

kzuraw
kzuraw previously approved these changes Sep 18, 2025
@github-actions github-actions bot temporarily deployed to pr-5879 September 18, 2025 10:55 Destroyed
witoszekdev
witoszekdev previously approved these changes Sep 18, 2025
Copilot AI review requested due to automatic review settings September 22, 2025 06:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/apps/components/InstalledAppListRow/InstalledAppListRow.tsx:1

  • The JSX expression {<SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />} has unnecessary curly braces. Since this is always rendered now, it should be simplified to <SidebarAppAlert hasNewFailedAttempts={hasNewFailedAttempts} small />.
import { appsMessages } from "@dashboard/apps/messages";

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@lkostrowski
Copy link
Member Author

@witoszekdev @krzysztofzuraw closing this PR because entire apps/ dir should be removed soon.

The remaining flag usage in navbar I can clean up after we remove this apps/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants