Skip to content

Stop asking what theme to install in installation wizard#5952

Merged
pxpm merged 2 commits intomainfrom
copilot/remove-theme-selection-in-installation
Mar 4, 2026
Merged

Stop asking what theme to install in installation wizard#5952
pxpm merged 2 commits intomainfrom
copilot/remove-theme-selection-in-installation

Conversation

Copy link
Contributor

Copilot AI commented Mar 2, 2026

WHY

BEFORE - What was wrong? What was happening before this PR?

Running php artisan backpack:install prompted the user to choose from 3 themes (Theme-tabler, CoreUI v4, CoreUI v2). This choice is unnecessary in v7 — Theme-tabler is the standard.

AFTER - What is happening after this PR?

Theme-tabler is installed automatically, with no prompt. If a theme is already installed, installation is skipped. Users can still uninstall/swap themes afterward.

HOW

How did you achieve that, in technical terms?

  • installTheme(): Replaced the interactive listChoice() prompt with a direct call to backpack:require:theme-tabler, guarded by isAnyThemeInstalled().
  • handle(): Moved installTheme() outside the no-interaction guard — both interactive and non-interactive paths now share the same auto-install logic, removing the duplicated else branch.
  • Removed the now-unused isEveryThemeInstalled() private method.

Is it a breaking change?

No. Developers who already have a theme installed won't be affected. Those without one will get Theme-tabler automatically instead of being prompted.

How can we test the before & after?

Before: Run php artisan backpack:install on a fresh install — you'd be prompted to pick a theme.

After: Run php artisan backpack:install — Theme-tabler installs automatically with no prompt.

# Fresh Laravel app, no theme installed
php artisan backpack:install
# Theme-tabler should install silently without any theme selection prompt
Original prompt

This section details on the original issue you should resolve

<issue_title>Stop asking what theme to install in installation wizard</issue_title>
<issue_description>When you install backpack/crud and run php artisan backpack:install you get asked what theme you want installed. That's no longer needed in v7 - we should assume the developer wants to install Theme-tabler and do that automatically. They would still be able to un-install it if then want.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…ll Theme-tabler

Co-authored-by: tabacitu <1032474+tabacitu@users.noreply.github.com>
Copilot AI changed the title [WIP] Stop asking for theme selection during installation wizard Stop asking what theme to install in installation wizard Mar 2, 2026
@tabacitu tabacitu assigned pxpm and unassigned tabacitu Mar 2, 2026
@tabacitu tabacitu marked this pull request as ready for review March 2, 2026 14:15
@pxpm pxpm merged commit 471cc33 into main Mar 4, 2026
11 checks passed
@pxpm pxpm deleted the copilot/remove-theme-selection-in-installation branch March 4, 2026 12:37
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.

Stop asking what theme to install in installation wizard

3 participants