Closed sweep-ai[bot] closed 11 months ago
src/config/allThemes.ts
β
Sandbox logs for
trunk fmt src/config/allThemes.ts || exit 0
1/2 βFAILURES prettier src/config/allThemes.ts .trunk/out/YLjHb.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures src/config/allThemes.ts
2/2 β (`1`)ISSUES src/config/allThemes.ts:44:25 44:25 high Parsing error: ';' expected. eslint/ FAILURES prettier src/config/allThemes.ts .trunk/out/DC8LR.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β 1 new issue # .trunk/out/DC8LR.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w src/config/allThemes.ts stdin_path: (none) run_from: /tmp/trunk-0/Och27V/U9W6mZ timeout: 10m rerun: (cd /tmp/trunk-0/Och27V/U9W6mZ; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w src/config/allThemes.ts) affects_cache: - package.json direct_configs: - .prettierrc.cjs exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] src/config/allThemes.ts: SyntaxError: ';' expected. (44:26) [error] 42 | [error] 43 | export default allThemes [error] > 44 | [ThemeName.PastelLight]: { [error] | ^ [error] 45 | name: ThemeName.PastelLight, [error] 46 | type: ThemeType.Light, [error] 47 | sidebarColor: '#f0f0f0', parser: | (none)
src/config/allThemes.ts
β
Sandbox logs for
trunk fmt src/config/allThemes.ts || exit 0
1/2 βFAILURES prettier src/config/allThemes.ts .trunk/out/tjIUL.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure
trunk check --fix --print-failures src/config/allThemes.ts
2/2 β (`1`)ISSUES src/config/allThemes.ts:44:25 44:25 high Parsing error: ';' expected. eslint/ FAILURES prettier src/config/allThemes.ts .trunk/out/QpIOj.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β 1 new issue # .trunk/out/QpIOj.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w src/config/allThemes.ts stdin_path: (none) run_from: /tmp/trunk-0/TJKbZL/s6x8Nb timeout: 10m rerun: (cd /tmp/trunk-0/TJKbZL/s6x8Nb; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w src/config/allThemes.ts) affects_cache: - package.json direct_configs: - .prettierrc.cjs exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] src/config/allThemes.ts: SyntaxError: ';' expected. (44:26) [error] 42 | [error] 43 | export default allThemes [error] > 44 | [ThemeName.PastelLight]: { [error] | ^ [error] 45 | name: ThemeName.PastelLight, [error] 46 | type: ThemeType.Light, [error] 47 | sidebarColor: '#f0f0f0', parser: | (none) Run trunk upgrade to upgrade 2 linters
src/config/allThemes.ts
β
Sandbox logs for
trunk fmt src/config/allThemes.ts || exit 0
1/2 βChecked 1 file β No issues Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures src/config/allThemes.ts
2/2 βChecked 1 file β No issues
src/config/allThemes.ts
β
Sandbox logs for
trunk fmt src/config/allThemes.ts || exit 0
1/2 βChecked 1 file β No issues Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures src/config/allThemes.ts
2/2 βChecked 1 file β No issues
src/config/allThemes.ts
β
Sandbox logs for
trunk fmt src/config/allThemes.ts || exit 0
1/2 βChecked 1 file β No issues Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures src/config/allThemes.ts
2/2 βChecked 1 file β No issues
The themes look very mediocre. Make them look better... Add two more with gradients
Done.
PR Feedback (click)
Description
This PR adds more light and dark themes to the application. The
allThemes.ts
file in thesrc/config/
directory has been modified to include the new themes. Each theme is defined as an object with properties forname
,type
,sidebarColor
,navbarColor
, andeditorColor
. Thename
property corresponds to a value in theThemeName
enum, and thetype
property corresponds to a value in theThemeType
enum. The color properties are CSS color values that create visually appealing themes.Summary of Changes
ThemeName
enum for each new theme.allThemes
object for each new theme, with properties forname
,type
,sidebarColor
,navbarColor
, andeditorColor
.Please review and merge this PR to add more themes to the application.
Fixes #31.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py to be more modular
!π‘ To get Sweep to edit this pull request, you can: