liberu-genealogy / genealogy-laravel

Full genealogy application using Laravel 11, PHP 8.3, Filament 3.2 and Livewire 3.5
https://www.liberu.org.uk
MIT License
101 stars 58 forks source link

Sweep: circular dependencies #236

Closed curtisdelicata closed 4 months ago

curtisdelicata commented 4 months ago

Details

Fix circular dependencies in following files mainly the grid and grid-cols Add any imports for tailwind that are missing. Fix @apply definitions

resources/css/tailwind.css and resources/css/custom.css

Checklist - [X] Modify `resources/css/tailwind.css` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/1dc21473f3cd4efb7a363bef5110bf94bf606aa7 [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/resources/css/tailwind.css#L20-L20) - [X] Running GitHub Actions for `resources/css/tailwind.css` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/resources/css/tailwind.css#L20-L20) - [X] Modify `resources/css/app.css` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/93ab8b710449d54eb713e7110f00ee15cc21591c [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/resources/css/app.css) - [X] Running GitHub Actions for `resources/css/app.css` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/resources/css/app.css) - [X] Modify `vite.config.js` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/5366db5e4f87a4c57eefc1f93cd81a45dfb2ddcc [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/vite.config.js#L6-L6) - [X] Running GitHub Actions for `vite.config.js` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/vite.config.js#L6-L6) - [X] Modify `resources/css/custom.css` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/01d19c696f057b749d743dccb5b9ffdd1d900d32 [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/resources/css/custom.css) - [X] Running GitHub Actions for `resources/css/custom.css` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/circular_dependencies/resources/css/custom.css)
sweep-ai[bot] commented 4 months ago

🚀 Here's the PR! #237

See Sweep's progress at the progress dashboard!
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: c03a297756)

[!TIP] I'll email you at genealogysoftwareuk@gmail.com when I complete this pull request!


Actions (click)

GitHub Actions✓

Here are the GitHub Actions logs prior to making any changes:

Sandbox logs for 716c490
Checking resources/css/tailwind.css for syntax errors... ✅ resources/css/tailwind.css has no syntax errors! 1/1 ✓
Checking resources/css/tailwind.css for syntax errors...
✅ resources/css/tailwind.css has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


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 think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/liberu-genealogy/genealogy-laravel/blob/9893c0e718da4dfa77a35e2ca3c175eb6e6161e6/resources/css/tailwind.css#L1-L34 https://github.com/liberu-genealogy/genealogy-laravel/blob/9893c0e718da4dfa77a35e2ca3c175eb6e6161e6/resources/css/custom.css#L1-L43 https://github.com/liberu-genealogy/genealogy-laravel/blob/9893c0e718da4dfa77a35e2ca3c175eb6e6161e6/vite.config.js#L1-L18

Step 2: ⌨️ Coding

--- 
+++ 
@@ -18,7 +18,6 @@
 .form-input {
   @apply border-2 border-gray-300 p-3 rounded-lg focus:outline-none focus:border-blue-500;
 }
-@import 'custom.css';
 .card {
   @apply bg-white rounded-lg shadow-md overflow-hidden;
 }

Ran GitHub Actions for 1dc21473f3cd4efb7a363bef5110bf94bf606aa7:

--- 
+++ 
@@ -1,3 +1,6 @@
+@import 'tailwind.css';
+@import 'custom.css';
+
 @tailwind base;
 @tailwind components;
 @tailwind utilities;

Ran GitHub Actions for 93ab8b710449d54eb713e7110f00ee15cc21591c:

--- 
+++ 
@@ -4,7 +4,7 @@
 export default defineConfig({
     plugins: [
         laravel({
-            input: ['resources/css/app.css', 'resources/js/app.js', 'resources/css/tailwind.css', 'resources/css/custom.css'],
+            input: ['resources/css/app.css', 'resources/js/app.js'],
             refresh: [
                 ...refreshPaths,
                 'app/Filament/**',

Ran GitHub Actions for 5366db5e4f87a4c57eefc1f93cd81a45dfb2ddcc:

--- 
+++ 
@@ -12,13 +12,13 @@
   @apply grid gap-6;
 }
 .grid-cols-1 {
-  @apply grid-cols-1;
+  @apply grid-cols-[1];
 }
 .md\:grid-cols-2 {
-  @apply md:grid-cols-2;
+  @apply md:grid-cols-[2];
 }
 .lg\:grid-cols-3 {
-  @apply lg:grid-cols-3;
+  @apply lg:grid-cols-[3];
 }
 .card {
   @apply bg-white rounded-lg shadow-md overflow-hidden;

Ran GitHub Actions for 01d19c696f057b749d743dccb5b9ffdd1d900d32:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/circular_dependencies.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.Something wrong? Let us know.

This is an automated message generated by Sweep AI.