diff --git a/src/Handlers/StubHandler.php b/src/Handlers/StubHandler.php index 6fc7dbd8..320cbb2c 100644 --- a/src/Handlers/StubHandler.php +++ b/src/Handlers/StubHandler.php @@ -84,7 +84,9 @@ public function getStubs(): Collection \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Index\Table\Filter\Add::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Index\Table\Filter\Remove::make($resource)->get(), - // \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Render::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Index\Widget\RenderFooterWidgets::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Index\Widget\RenderHeaderWidgets::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\ListRecords::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\ListRecordsPaginated::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Trashed::make($resource)->get(), @@ -138,7 +140,8 @@ public function getStubs(): Collection \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Action\Render::make($resource)->get(), - \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Widget\Render::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Widget\RenderFooterWidgets::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Widget\RenderHeaderWidgets::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Form\Field\Disabled::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Form\Field\Exists::make($resource)->get(), @@ -153,7 +156,8 @@ public function getStubs(): Collection \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Action\Render::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Form\Render::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\RelationManager\Render::make($resource)->get(), - \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Widget\Render::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Widget\RenderFooterWidgets::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Widget\RenderHeaderWidgets::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Form\Field\Disabled::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Edit\Form\Field\Exists::make($resource)->get(), @@ -169,7 +173,8 @@ public function getStubs(): Collection \CodeWithDennis\FilamentTests\Stubs\Resource\Page\View\Action\Render::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\View\Form\Render::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\View\RelationManager\Render::make($resource)->get(), - \CodeWithDennis\FilamentTests\Stubs\Resource\Page\View\Widget\Render::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\View\Widget\RenderFooterWidgets::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\View\Widget\RenderHeaderWidgets::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Custom\Render::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\Custom\Action\Render::make($resource)->get(), diff --git a/src/Stubs/Resource/Page/Create/Widget/Render.php b/src/Stubs/Resource/Page/Create/Widget/RenderFooterWidgets.php similarity index 64% rename from src/Stubs/Resource/Page/Create/Widget/Render.php rename to src/Stubs/Resource/Page/Create/Widget/RenderFooterWidgets.php index 416ac388..7d4fa79b 100644 --- a/src/Stubs/Resource/Page/Create/Widget/Render.php +++ b/src/Stubs/Resource/Page/Create/Widget/RenderFooterWidgets.php @@ -2,13 +2,16 @@ namespace CodeWithDennis\FilamentTests\Stubs\Resource\Page\Create\Widget; +use Closure; use CodeWithDennis\FilamentTests\Stubs\Base; -class Render extends Base +class RenderFooterWidgets extends Base { + public Closure|bool $isTodo = true; + public function getDescription(): string { - return 'can render widget on the create page'; + return 'can render footer widgets on the create page'; } public function getShouldGenerate(): bool diff --git a/src/Stubs/Resource/Page/Create/Widget/RenderHeaderWidgets.php b/src/Stubs/Resource/Page/Create/Widget/RenderHeaderWidgets.php new file mode 100644 index 00000000..3ea2abfb --- /dev/null +++ b/src/Stubs/Resource/Page/Create/Widget/RenderHeaderWidgets.php @@ -0,0 +1,21 @@ +todo(); diff --git a/stubs/Resource/Page/Index/Widget/RenderFooterWidgets.stub b/stubs/Resource/Page/Index/Widget/RenderFooterWidgets.stub new file mode 100644 index 00000000..34783ed8 --- /dev/null +++ b/stubs/Resource/Page/Index/Widget/RenderFooterWidgets.stub @@ -0,0 +1,3 @@ +it({{ DESCRIPTION }}, function () { + // +}){{ RESOLVED_GROUP_METHOD }}->todo(); diff --git a/stubs/Resource/Page/Index/Widget/RenderHeaderWidgets.stub b/stubs/Resource/Page/Index/Widget/RenderHeaderWidgets.stub new file mode 100644 index 00000000..34783ed8 --- /dev/null +++ b/stubs/Resource/Page/Index/Widget/RenderHeaderWidgets.stub @@ -0,0 +1,3 @@ +it({{ DESCRIPTION }}, function () { + // +}){{ RESOLVED_GROUP_METHOD }}->todo(); diff --git a/stubs/Resource/Page/View/Widget/RenderFooterWidgets.stub b/stubs/Resource/Page/View/Widget/RenderFooterWidgets.stub new file mode 100644 index 00000000..34783ed8 --- /dev/null +++ b/stubs/Resource/Page/View/Widget/RenderFooterWidgets.stub @@ -0,0 +1,3 @@ +it({{ DESCRIPTION }}, function () { + // +}){{ RESOLVED_GROUP_METHOD }}->todo(); diff --git a/stubs/Resource/Page/View/Widget/RenderHeaderWidgets.stub b/stubs/Resource/Page/View/Widget/RenderHeaderWidgets.stub new file mode 100644 index 00000000..34783ed8 --- /dev/null +++ b/stubs/Resource/Page/View/Widget/RenderHeaderWidgets.stub @@ -0,0 +1,3 @@ +it({{ DESCRIPTION }}, function () { + // +}){{ RESOLVED_GROUP_METHOD }}->todo();