screenshot-to-code icon indicating copy to clipboard operation
screenshot-to-code copied to clipboard

Add Reset Button in Settings Dialog

Open sweep-ai-deprecated[bot] opened this issue 2 years ago • 2 comments

PR Feedback (click)

  • [ ] 👍 Sweep Did Well
  • [ ] 👎 Sweep Needs Improvement

Description

This pull request adds a reset button to the Settings Dialog component in the frontend. The button allows users to reset their settings to the default values.

Summary

  • Added import statement for the Button component in SettingsDialog.tsx
  • Added a reset button to the Settings Dialog component
  • Created a handleResetSettings function that clears the localStorage
  • Added the reset button to the JSX code in SettingsDialog.tsx

Fixes #137.


🎉 Latest improvements to Sweep:

  • Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
  • Sweep now uses the rope library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, try sweep: Refactor <your_file>.py!

💡 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

Sandbox Executions

Apply Sweep Rules to your PR?

  • [ ] Apply: All new business logic should have corresponding unit tests.
  • [ ] Apply: Refactor large functions to be more modular.
  • [ ] Apply: Add docstrings to all functions and file headers.