Remove legacy apps directory and consolidate into extensions#5926
Remove legacy apps directory and consolidate into extensions#5926lkostrowski wants to merge 12 commits intomainfrom
Conversation
deleting files wip moving files wip wip clean queries fxies
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
There was a problem hiding this comment.
Pull Request Overview
This PR consolidates app-related functionality by removing the standalone apps directory and reorganizing its code into the extensions directory. The change simplifies the codebase structure by merging similar functionality under a unified extensions system.
Key Changes:
- Migrated app-related components, mutations, queries, and utilities from
/appsto/extensions - Updated all imports to reflect the new file structure
- Consolidated app URL handling and types into the extensions module
- Removed various legacy components and utilities that are no longer needed
Reviewed Changes
Copilot reviewed 179 out of 203 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Various import updates across multiple files | Updated import paths from @dashboard/apps/ to @dashboard/extensions/ |
| src/extensions/mutations.ts | Added app-related mutations (create, delete, update, tokens, etc.) |
| src/extensions/queries.ts | Added app-related queries (list, details, installations) |
| src/extensions/urls.ts | Consolidated app URL definitions and utilities |
| src/extensions/utils.ts | Added utility functions for app handling |
| src/extensions/types.ts | Added AppLogo interface |
| src/index.tsx | Updated redirect paths to use hardcoded strings instead of constants |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
src/components/ChannelsAvailabilityMenuContent/ChannelsAvailabilityMenuContent.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 94 out of 115 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5926 +/- ##
==========================================
- Coverage 40.04% 39.42% -0.63%
==========================================
Files 2472 2431 -41
Lines 40153 39463 -690
Branches 8814 8682 -132
==========================================
- Hits 16080 15558 -522
+ Misses 24046 23879 -167
+ Partials 27 26 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 96 out of 117 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 96 out of 117 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
witoszekdev
left a comment
There was a problem hiding this comment.
In src/extensions/urls.ts - isAppDeppUrlChange has a bug: https://github.com/saleor/saleor-dashboard/pull/5844/files#diff-2077b36e75d30fe4fd02f7fffa9e1531b0887a6c5b660390e3dd77781ff3a673
| appInstallPath: urlJoin(AppSections.appsSection, "install"), | ||
| }; | ||
|
|
||
| export const AppUrls = { |
There was a problem hiding this comment.
issue: I think we have to remove this old AppUrls since it uses old routes, which are no longer rendered in our index.tsx. Imho we should get rid of these methods altogether and use ones from ExtensionsUrls
Summary
This PR removes the legacy
src/apps/directory and consolidates all app-related functionality into thesrc/extensions/directory, eliminating code duplication and improving codebase organization.Changes
src/apps/directory (~4,800 lines of deleted code)apps/toextensions/components/:src/extensions/getPermissionsDiff.ts,isUrlAbsolute.ts) to extensions directoryImpact
Testing
🤖 Generated with Claude Code