Skip to content

Conversation

arduinomaster22
Copy link

This pull request introduces several changes to enhance the functionality and user experience of the SEO scanning tool. The primary updates include the integration of the Laravel Prompts package, modifications to the SeoScanUrl command to improve user interaction, and updates to the Seo class to utilize the new progress functionality.

Integration and functionality improvements:

  • composer.json: Added laravel/prompts package to the dependencies.
  • src/Commands/SeoScanUrl.php: Updated the command to use Laravel Prompts for user input and progress indication. This includes changing the url argument to be optional and adding interactive prompts for the URL and JavaScript option.

Class updates:

  • src/Seo.php: Replaced the Symfony ProgressBar with Laravel Prompts Progress for better progress tracking. [1] [2]

Copy link
Contributor

@Baspa Baspa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also take a look at the tests? They're failing now.

$this->info('Please wait while we scan your web page...');
$this->line('');
$url = $this->argument('url') ?? text(
label: 'Pleaes enter the url',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here

class SeoScanUrl extends Command
{
public $signature = 'seo:scan-url {url} {--javascript}';
public $signature = 'seo:scan-url {url?} {--javascript}';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I don't want to enter a url and want to scan the whole website?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah never mind I see it's the Scan URL command 🙂

@Baspa
Copy link
Contributor

Baspa commented May 19, 2025

@arduinomaster22 bump

@Baspa Baspa changed the title Add Laravel Prompts to command interface #19 feat: add Laravel Prompts to command interface #19 Aug 18, 2025
@Baspa Baspa assigned Baspa and unassigned arduinomaster22 Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants