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.
  
    
  
    
Explanation
Ramps currently depends on an sdk to handle all connections to the RAMPS api. We now have 2 different offerings which each use their own SDK. All of this routing logic is done on the mobile app. If this logic were to be extended to pdapp or extension it would require rework on those codebases. Additionally many other teams already use this controller design pattern. By moving towards this we can handle all business logic in 1 controller. It lets us expose Ramps data and apis to other experiences without those experiences requiring any knowledge of business logic. Lastly it would speed up any Ramps api integrations on extension and pdapp in the future.
References
Checklist
Note
Introduce
ramps-controllerpackage withRampsController, tests, docs, and build/tooling setup.packages/ramps-controllerRampsControllerinsrc/RampsController.tsand exports public API viasrc/index.ts.src/RampsController.test.tsandjest.config.js.package.json,tsconfig.json,tsconfig.build.json, andtypedoc.json.README.md, initializesCHANGELOG.md, and includesLICENSE.tsconfig.build.jsonto integrate the new package.Written by Cursor Bugbot for commit 4c43415. This will update automatically on new commits. Configure here.