Compare commits

...

16 Commits

Author SHA1 Message Date
sweep-ai[bot]
45a7d65fe3
Merge main into sweep/add-reset-button-settings-dialog 2023-12-06 02:45:49 +00:00
sweep-ai[bot]
17244ba1b0
Merge main into sweep/add-reset-button-settings-dialog 2023-12-05 16:36:23 +00:00
sweep-ai[bot]
9549ebdeb2
Merge main into sweep/add-reset-button-settings-dialog 2023-12-04 21:43:38 +00:00
sweep-ai[bot]
dd5c828f26
Merge main into sweep/add-reset-button-settings-dialog 2023-12-04 21:38:46 +00:00
sweep-ai[bot]
2520b72bf4
Merge main into sweep/add-reset-button-settings-dialog 2023-12-04 21:32:24 +00:00
sweep-ai[bot]
979fb9886a
Merge main into sweep/add-reset-button-settings-dialog 2023-12-04 00:58:27 +00:00
sweep-ai[bot]
682db767fc
Merge main into sweep/add-reset-button-settings-dialog 2023-12-04 00:53:40 +00:00
sweep-ai[bot]
7dd0637868
Merge main into sweep/add-reset-button-settings-dialog 2023-12-03 19:45:44 +00:00
sweep-ai[bot]
7e81c26d2e
Merge main into sweep/add-reset-button-settings-dialog 2023-12-03 19:43:17 +00:00
sweep-ai[bot]
7f976e71b7
Merge main into sweep/add-reset-button-settings-dialog 2023-12-02 23:09:27 +00:00
sweep-ai[bot]
4c4165c7e4
Merge main into sweep/add-reset-button-settings-dialog 2023-11-30 21:23:32 +00:00
sweep-ai[bot]
6dbe544532
Merge main into sweep/add-reset-button-settings-dialog 2023-11-30 21:09:31 +00:00
sweep-ai[bot]
84fbc4f936
Merge main into sweep/add-reset-button-settings-dialog 2023-11-30 17:42:38 +00:00
sweep-ai[bot]
d82d81ea1a
Merge main into sweep/add-reset-button-settings-dialog 2023-11-30 17:08:57 +00:00
sweep-ai[bot]
965dd547e8 Delete failing sweep.yaml 2023-11-30 16:54:21 +00:00
sweep-ai[bot]
98885299b1
feat: Updated frontend/src/components/SettingsDial 2023-11-30 16:53:26 +00:00
2 changed files with 7 additions and 42 deletions

View File

@ -14,6 +14,7 @@ import { Switch } from "./ui/switch";
import { Label } from "./ui/label";
import { Input } from "./ui/input";
import { Select, SelectContent, SelectItem, SelectTrigger } from "./ui/select";
import { Button } from "./ui/button";
import { capitalize } from "../lib/utils";
import { IS_RUNNING_ON_CLOUD } from "../config";
import {
@ -57,6 +58,9 @@ function SettingsDialog({ settings, setSettings }: Props) {
</Label>
<Input
const handleResetSettings = () => {
localStorage.clear();
};
id="access-code dark:border-gray-700 dark:bg-gray-800 dark:text-white"
placeholder="Enter your Screenshot to Code access code"
value={settings.accessCode || ""}
@ -229,3 +233,6 @@ function SettingsDialog({ settings, setSettings }: Props) {
}
export default SettingsDialog;
<div className="mt-4">
<Button onClick={handleResetSettings}>Reset to Defaults</Button>
</div>

View File

@ -1,42 +0,0 @@
# Sweep AI turns bugs & feature requests into code changes (https://sweep.dev)
# For details on our config file, check out our docs at https://docs.sweep.dev/usage/config
# This setting contains a list of rules that Sweep will check for. If any of these rules are broken in a new commit, Sweep will create an pull request to fix the broken rule.
rules:
- "All docstrings and comments should be up to date."
['All new business logic should have corresponding unit tests.', 'Refactor large functions to be more modular.', 'Add docstrings to all functions and file headers.']
# This is the branch that Sweep will develop from and make pull requests to. Most people use 'main' or 'master' but some users also use 'dev' or 'staging'.
branch: 'main'
# By default Sweep will read the logs and outputs from your existing Github Actions. To disable this, set this to false.
gha_enabled: True
# This is the description of your project. It will be used by sweep when creating PRs. You can tell Sweep what's unique about your project, what frameworks you use, or anything else you want.
#
# Example:
#
# description: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8.
description: ''
# This sets whether to create pull requests as drafts. If this is set to True, then all pull requests will be created as drafts and GitHub Actions will not be triggered.
draft: False
# This is a list of directories that Sweep will not be able to edit.
blocked_dirs: []
# This is a list of documentation links that Sweep will use to help it understand your code. You can add links to documentation for any packages you use here.
#
# Example:
#
# docs:
# - PyGitHub: ["https://pygithub.readthedocs.io/en/latest/", "We use pygithub to interact with the GitHub API"]
docs: []
# Sandbox executes commands in a sandboxed environment to validate code changes after every edit to guarantee pristine code. For more details, see the [Sandbox](./sandbox) page.
sandbox:
install:
- trunk init
check:
- trunk fmt {file_path} || return 0
- trunk check --fix --print-failures {file_path}