Restructuring for Multi-Platform Extensions (Phase 1) #11460
Merged
+341
−284
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
• This PR reorganizes our codebase to handle multiple deployment platforms (Chrome extension, Front integration, etc.) more cleanly.
• It moves files into a more platform-oriented structure but doesn’t change the existing functionality or logic itself.
• We’re using a single package.json across all platforms for now. If we discover in the future that platform dependencies diverge significantly, we can split them into distinct package.json files as part of a more advanced monorepo approach.
Motivation:
• We need better maintainability and scalability as we support multiple “extensions” (Chrome, Front, and so on).
• Today, nearly all dependencies are shared. Hence, only one package.json is needed.
• Cleaning up the directory structure lays the groundwork for Phase 2, where we’ll add truly generic platform interfaces and further customization.
What’s Changed in This Phase:
Physical File Relocation:
Common Build Setup:
Single Package.json:
No Functional Changes Yet:
Next Steps:
• Phase 2 will introduce generic platform interfaces and stricter domain boundaries, letting each platform implement the common services (e.g., for storage, authentication) in its own way.
Testing & Verification:
• Build and run the Chrome extension locally. Verify that everything still functions without regression.
• Confirm that the restructured paths match the new imports and that the build outputs (e.g., background.js, main.js, main.html) are still produced as expected.
Risk
Deploy Plan