Skip to content

[Bug]: make:filament-api-service with more than one namespace available for resource placement #86

@acornforth

Description

@acornforth

What happened?

When you have multiple available namespaces for the make:filament-api-service-command,

it prompts you to select which namepspace, this is fine, but then it delegates to other make commands. These make commands also attempt to promt the user to choose a namespace, but the prompt is invisible, making it hard to select.

How to reproduce the bug

create a cluster in one of your panels

run artisan make:filament-api-service

cluster shoudl appear now as well as the main panel's resources namespace. select the second entry, observe that the command doesn't exit, press return again (invisibly selects the first entry) and the command with fail with error,

if you try again but press ⬇ before enter, it will still not complete, there is another invisible prompt, do the same again and you can get the command to complete.

Package Version

3.4.2

PHP Version

8.3.14

Laravel Version

11.38.2

Which operating systems does with happen with?

macOS, Windows, Linux

Notes

Ideally it wouldn't be necessary to prompt the user multiple times for the same information, might it be worth passing the selected namespace as a param to the delegated commands?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions