Laravel-Backpack / theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.
MIT License
21 stars 12 forks source link

[Bug] The documentation is wrong for dashboard creation #178

Closed SilverComet89 closed 2 months ago

SilverComet89 commented 2 months ago

Bug report

I'm trying to create some custom admin pages, and was told to copy the dashboard as an example. However in the theme documentation you have this:

cp -i vendor/backpack/theme-tabler/resources/views/dashboard.blade.php resources/views/vendor/backpack/theme-tabler/dashboard.blade.php

But the dashboard.blade.php file doesn't exist at the source to be copied.

What I did

Fresh install, followed instructions as the default Backpack dashboard looks broken.

What I expected to happen

A copying of the dashboard to replace the broken black text on black background of the core dashboard.

What happened

Error cp: vendor/backpack/theme-tabler/resources/views/dashboard.blade.php: No such file or directory

What I've already tried to fix it

Went looking for the file at source but doesn't exist, can't find in theme anywhere, copying the documented Backpack dashboard to the folder specified also doesn't appear to work - nothing happens.

jcastroa87 commented 2 months ago

Hello @SilverComet89

Sorry, we will check docs, can you try:

cp -i vendor/backpack/crud/src/resources/views/ui/dashboard.blade.php resources/views/vendor/backpack/ui/dashboard.blade.php

Let me know if you need anything else.

Cheers.

SilverComet89 commented 2 months ago

That gives me no change - currently looks like this:

Screenshot 2024-04-22 at 14 03 03
jcastroa87 commented 2 months ago

DId you customize the file? can you share the content of file with me please.

Thanks.

SilverComet89 commented 2 months ago

That was the key I think - sorry.

cp -i vendor/backpack/crud/src/resources/views/ui/dashboard.blade.php resources/views/vendor/backpack/ui/dashboard.blade.php

does work - though the text being black on black in light mode is pretty rough, I needed to update the content of @content.

So to summarise - the issues that remain are:

jcastroa87 commented 2 months ago

Thanks i will take action on this bug.

Cheers.

jcastroa87 commented 2 months ago

Hello @SilverComet89 light mode problem will be fixed with this PR https://github.com/Laravel-Backpack/theme-tabler/pull/179

Cheers.

jcastroa87 commented 2 months ago

Command issue will be fixed in this https://github.com/Laravel-Backpack/theme-tabler/pull/180

I will close the issue, but please feel free to re-open or create a new one if needed.

Cheers.