liberu-genealogy / genealogy-laravel

Full genealogy application using Laravel 11, PHP 8.3, Filament 3.2 and Livewire 3.5
https://www.liberu.net
MIT License
125 stars 57 forks source link

Sweep: finish pedigree chart #200

Closed curtisdelicata closed 8 months ago

curtisdelicata commented 8 months ago

Details

Finish the conversion of https://github.com/magicsunday/webtrees-pedigree-chart to work with our laravel 11, filament 3.2, livewire project. Use d3 files and convert to livewire and blade. Add the required controllers and filament 3 pages. Add the web route. Use data from people table to supply the chart rendering.

Checklist - [X] Create `app/Http/Livewire/PedigreeChart.php` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/3bcccb928418bbbdb9f7eb790f929ab2fc24f32d [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/app/Http/Livewire/PedigreeChart.php) - [X] Running GitHub Actions for `app/Http/Livewire/PedigreeChart.php` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/app/Http/Livewire/PedigreeChart.php) - [X] Create `resources/views/livewire/pedigree-chart.blade.php` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/0c66b7d920c516951328228feb3f3003fc46954c [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/resources/views/livewire/pedigree-chart.blade.php) - [X] Running GitHub Actions for `resources/views/livewire/pedigree-chart.blade.php` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/resources/views/livewire/pedigree-chart.blade.php) - [X] Create `app/Http/Controllers/PedigreeChartController.php` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/6cf9517e93c22033010329f719f8d053d8cd2870 [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/app/Http/Controllers/PedigreeChartController.php) - [X] Running GitHub Actions for `app/Http/Controllers/PedigreeChartController.php` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/app/Http/Controllers/PedigreeChartController.php) - [X] Create `app/Filament/Resources/PedigreeChartResource.php` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/7c23a11b01f1ec8548200bc281af6846c3b57cb0 [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/app/Filament/Resources/PedigreeChartResource.php) - [X] Running GitHub Actions for `app/Filament/Resources/PedigreeChartResource.php` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/app/Filament/Resources/PedigreeChartResource.php) - [X] Modify `routes/web.php` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/ce6b0a0f64f3485850182492a96a4625927d013a [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/routes/web.php) - [X] Running GitHub Actions for `routes/web.php` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/finish_pedigree_chart/routes/web.php)
sweep-ai[bot] commented 8 months ago

🚀 Here's the PR! #208

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

[!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 4eb86a6
Checking routes/web.php for syntax errors... ✅ routes/web.php has no syntax errors! 1/1 ✓
Checking routes/web.php for syntax errors...
✅ routes/web.php 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/3a58e2733bab99b9443d781488d2833c82cbc4e5/README.md#L31-L39 https://github.com/liberu-genealogy/genealogy-laravel/blob/3a58e2733bab99b9443d781488d2833c82cbc4e5/routes/web.php#L1-L24 https://github.com/liberu-genealogy/genealogy-laravel/blob/3a58e2733bab99b9443d781488d2833c82cbc4e5/config/filament-spatie-roles-permissions.php#L2-L141
I also found the following external resources that might be helpful: **Summaries of links found in the content:** https://github.com/magicsunday/webtrees-pedigree-chart: The page is about a pedigree chart module for the webtrees genealogy application. It provides an SVG-based chart that can display up to 25 generations of ancestors from an individual. The module can be installed manually or using Composer or Git. To install with Composer, the command "composer require magicsunday/webtrees-pedigree-chart --update-no-dev" can be used. To install with Git, the command "git clone https://github.com/magicsunday/webtrees-pedigree-chart.git modules_v4/webtrees-pedigree-chart" can be used. The page also provides instructions on how to configure and use the module. Additionally, there are code snippets for building/updating the JavaScript and running tests. The page includes topics related to visualization, D3, SVG, chart, charts, tree, module, data-visualization, webtrees, pedigree, ancestors, and genealogy-application.

Step 2: ⌨️ Coding

Ran GitHub Actions for 3bcccb928418bbbdb9f7eb790f929ab2fc24f32d:

Ran GitHub Actions for 0c66b7d920c516951328228feb3f3003fc46954c:

Ran GitHub Actions for 6cf9517e93c22033010329f719f8d053d8cd2870:

Ran GitHub Actions for 7c23a11b01f1ec8548200bc281af6846c3b57cb0:

--- 
+++ 
@@ -23,3 +23,4 @@
 Route::post('/accept-invitation/{token}', 'TeamInvitationController@acceptInvitation')->name('accept.invitation');

 });
+Route::get('/pedigree-chart', 'App\Http\Controllers\PedigreeChartController@index')->name('pedigree.chart');

Ran GitHub Actions for ce6b0a0f64f3485850182492a96a4625927d013a:


Step 3: 🔁 Code Review

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


🎉 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.