rex-9 / sweep

0 stars 0 forks source link

Sweep: modal is not closing when clicked the close button #5

Closed rex-9 closed 1 year ago

rex-9 commented 1 year ago
Checklist - [X] `src/modal.js` ✅ Commit [`92d1009`](https://github.com/rex-9/sweep/commit/92d10090f519cc90250407c6bce97a3ab7620964)
sweep-ai[bot] commented 1 year ago

Here's the PR! https://github.com/rex-9/sweep/pull/6.

⚡ Sweep Free Trial: I'm creating this ticket using GPT-4. You have 3 GPT-4 tickets left for the month and 1 for the day. For more GPT-4 tickets, visit our payment portal.

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.

Step 2: ⌨️ Coding

trunk init 1/31 ✓
⥿ Downloading Trunk 1.16.2...
⥿ Downloading Trunk 1.16.2...
⢿ Downloading Trunk 1.16.2...
⣝ Downloading Trunk 1.16.2...
⣽ Downloading Trunk 1.16.2...
⣞ Downloading Trunk 1.16.2...
⣡ Downloading Trunk 1.16.2...
⣯ Downloading Trunk 1.16.2...
⣟ Downloading Trunk 1.16.2...
⥿ Downloading Trunk 1.16.2...
⢿ Downloading Trunk 1.16.2...
⣝ Downloading Trunk 1.16.2...
⣽ Downloading Trunk 1.16.2...
⣞ Downloading Trunk 1.16.2...
✔ Downloading Trunk 1.16.2... done
⥿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⥿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)
  checkov 2.4.9 (3 json, 2 yaml files)
  eslint 8.50.0 (4 javascript, 10 typescript files)
  git-diff-check (28 files)
  markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml)
  osv-scanner 1.4.0 (1 lockfile file)
  prettier 3.0.3 (2 css, 1 html, 4 javascript, 3 json, 1 markdown, 10 typescript, 2 yaml files)
  svgo 3.0.2 (2 svg files) (created svgo.config.js)
  trivy 0.45.1 (1 lockfile, 2 yaml files)
  trufflehog 3.57.0 (29 files)
  yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt src/modal.js 2/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 3/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/nZ5rv.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 4/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 5/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/9HTGX.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 6/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 7/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/crMe4.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 8/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 9/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/xYJLf.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 10/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 11/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/vTzKp.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 12/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 13/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/LkF1r.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 14/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 15/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/PVEp2.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 16/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 17/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/gkS8E.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 18/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 19/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/GD6tk.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 20/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 21/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/DoJ7X.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 22/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 23/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/3NPE1.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 24/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 25/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/PZDyz.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 26/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 27/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/CqKzh.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 28/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 29/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/G8VZY.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure
trunk fmt src/modal.js 30/31 ✓

 ✔ Formatted src/modal.js
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix src/modal.js 31/31 ❌ (`1`)

  FAILURES  
 eslint  src/modal.js  .trunk/out/4xzpM.yaml
  NOTICES  
 [suggestion] Eslint could not resolve dependencies; try running `yarn install`
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ No issues, 1 failure


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/fix-modal-close-button.

.


🎉 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