danwill89 / gen-ai

MIT License
0 stars 0 forks source link

Sweep: rename left-menu.css #17

Closed danwill89 closed 1 year ago

danwill89 commented 1 year ago

Details

Checklist - [X] Create `app/styles/left-menu.module.scss` ✓ https://github.com/danwill89/gen-ai/commit/8d226777b89d2177f11bf2415f83343caadf7af2 - [X] Check `app/styles/left-menu.module.scss` ✗ - [X] Modify `app/styles/left-menu.module.scss` ✓ https://github.com/danwill89/gen-ai/commit/663759c2d0117dc35208858a277a473c455cf36d - [X] Check `app/styles/left-menu.module.scss` ✗ - [X] Modify `app/styles/left-menu.module.scss` ✓ https://github.com/danwill89/gen-ai/commit/1e35a8c7249836a3d8e995c2f59bc4a5deea53f6 - [X] Check `app/styles/left-menu.module.scss` ✗ - [X] Modify `app/styles/left-menu.module.scss` ✓ https://github.com/danwill89/gen-ai/commit/e0025f3d32c893d29847a1d0f93c5fabe142ba30 - [X] Check `app/styles/left-menu.module.scss` ✓ - [X] Modify `app/components/left-menu.tsx` ✓ https://github.com/danwill89/gen-ai/commit/aefb941ebe5424d57bececbb098dd093a2ff691a - [X] Check `app/components/left-menu.tsx` ✓ https://github.com/danwill89/gen-ai/commit/9ebb9c5c0c995620e301bc0e04d30f4d8f3532ca - [X] Check `app/styles/left-menu.module.scss` ✓ - [X] Check `app/styles/left-menu.module.scss` ✓ - [X] Check `app/styles/left-menu.module.scss` ✓ - [X] Modify `app/components/left-menu.tsx` ! No changes made ![Flowchart](http://24.199.78.105:8082/public/07c323d215cfb471bf97d5673d11f3f4471ad96c8512b27ccd782f7cda82dffa_17_flowchart.svg)
sweep-ai[bot] commented 1 year ago

Here's the PR! https://github.com/danwill89/gen-ai/pull/18.

Sweep Basic Tier: I'm using GPT-4. You have 5 GPT-4 tickets left for the month and 3 for the day.

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/danwill89/gen-ai/blob/520fcf47b6a2b496ee63755da1d34974e3e7f262/app/page.tsx#L1-L20 https://github.com/danwill89/gen-ai/blob/520fcf47b6a2b496ee63755da1d34974e3e7f262/app/components/left-menu.tsx#L1-L23 https://github.com/danwill89/gen-ai/blob/520fcf47b6a2b496ee63755da1d34974e3e7f262/app/components/left-menu.css#L1-L17 https://github.com/danwill89/gen-ai/blob/520fcf47b6a2b496ee63755da1d34974e3e7f262/README.md#L1-L35 https://github.com/danwill89/gen-ai/blob/520fcf47b6a2b496ee63755da1d34974e3e7f262/LICENSE#L1-L20

Step 2: ⌨️ Coding

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
  FAILURES  
 prettier  app/styles/left-menu.module.scss  .trunk/out/lhTnc.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 app/styles/left-menu.module.scss 2/2 ❌ (`1`)
  FAILURES  
 prettier  app/styles/left-menu.module.scss  .trunk/out/Bc9Mk.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
# .trunk/out/Bc9Mk.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 app/styles/left-menu.module.scss
      stdin_path: (none)
      run_from: /tmp/trunk-0/GgTBaD/W0alVk
      timeout: 10m
      rerun: (cd /tmp/trunk-0/GgTBaD/W0alVk; 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 HOME=/root NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w app/styles/left-menu.module.scss)
      affects_cache:
        - package.json
      direct_configs:
        []
      exit_status: exited
      exit_code: 2
      stdout: (none)
      stderr: |
        [error] app/styles/left-menu.module.scss: SyntaxError: CssSyntaxError: Unknown word (19:1)
        [error]   17 |   margin-right: 10px;
        [error]   18 | }
        [error] > 19 | 
        [error]      | ^
        [error]   20 |
        [error]   21 | 
        [error]   22 | import React from "react";
    parser: |
      (none)
Run trunk upgrade to upgrade 2 linters

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
  FAILURES  
 prettier  app/styles/left-menu.module.scss  .trunk/out/Fl44F.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 app/styles/left-menu.module.scss 2/2 ❌ (`1`)
  FAILURES  
 prettier  app/styles/left-menu.module.scss  .trunk/out/PeAz4.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
# .trunk/out/PeAz4.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 app/styles/left-menu.module.scss
      stdin_path: (none)
      run_from: /tmp/trunk-0/e9fgw3/dZAQjT
      timeout: 10m
      rerun: (cd /tmp/trunk-0/e9fgw3/dZAQjT; 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 app/styles/left-menu.module.scss)
      affects_cache:
        - package.json
      direct_configs:
        []
      exit_status: exited
      exit_code: 2
      stdout: (none)
      stderr: |
        [error] app/styles/left-menu.module.scss: SyntaxError: CssSyntaxError: Unknown word (20:1)
        [error]   18 | }
        [error]   19 |
        [error] > 20 | 
        [error]      | ^
        [error]   21 | import React from "react";
        [error]   22 | import styles from "../styles/left-menu.module.scss";
        [error]   23 |
    parser: |
      (none)
Run trunk upgrade to upgrade 2 linters

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
  FAILURES  
 prettier  app/styles/left-menu.module.scss  .trunk/out/kt9tU.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 app/styles/left-menu.module.scss 2/2 ❌ (`1`)
  FAILURES  
 prettier  app/styles/left-menu.module.scss  .trunk/out/kJeQS.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
# .trunk/out/kJeQS.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 app/styles/left-menu.module.scss
      stdin_path: (none)
      run_from: /tmp/trunk-0/AiZcGC/GvGjQl
      timeout: 10m
      rerun: (cd /tmp/trunk-0/AiZcGC/GvGjQl; 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 HOME=/root NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w app/styles/left-menu.module.scss)
      affects_cache:
        - package.json
      direct_configs:
        []
      exit_status: exited
      exit_code: 2
      stdout: (none)
      stderr: |
        [error] app/styles/left-menu.module.scss: SyntaxError: CssSyntaxError: Unknown word (20:1)
        [error]   18 | }
        [error]   19 |
        [error] > 20 | import React from "react";
        [error]      | ^
        [error]   21 | import styles from "../styles/left-menu.module.scss";
        [error]   22 |
        [error]   23 | const LeftMenu: React.FC = () => {
    parser: |
      (none)
Run trunk upgrade to upgrade 2 linters

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures app/styles/left-menu.module.scss 2/2 ✓
Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 2 linters

trunk fmt app/components/left-menu.tsx || exit 0 1/2 ✓
 ✔ Formatted app/components/left-menu.tsx
Re-checking autofixed files...

Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures app/components/left-menu.tsx 2/2 ✓
Checked 1 file
✔ No issues

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures app/styles/left-menu.module.scss 2/2 ✓
Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 2 linters

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures app/styles/left-menu.module.scss 2/2 ✓
Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 2 linters

trunk fmt app/styles/left-menu.module.scss || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures app/styles/left-menu.module.scss 2/2 ✓
Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 2 linters


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/rename-left-menu-css.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord