tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

How to make onboarding in dashboard

Open JorisSD opened this issue 1 year ago • 9 comments

Im trying to use the Guava Tutorial Plugin to my dashboard for when users first login. image i followed this step, and i want the tutorial to start on the profile icon at the top. i tried to do that but i cant seem to make it work. Could you assist me?

JorisSD avatar Mar 27 '24 13:03 JorisSD

you have a video that displays what i want. Its video number 2 i believe.

JorisSD avatar Mar 27 '24 14:03 JorisSD

Hi, @JorisSD! Are you using laravel 11? I haven't updated it yet and it might not work with it.

EDIT: also leave out the "parent::mount()" method, which shouldn't be there.

lukas-frey avatar Mar 27 '24 14:03 lukas-frey

I am on Version 10.48.2 And yes i already removed "parent::mount()"

JorisSD avatar Mar 27 '24 15:03 JorisSD

I am on Version 10.48.2 And yes i already removed "parent::mount()"

Ok, then it should work.

This is a sample Step which should work for the Profile menu:


Step::make(Selector::make('.fi-dropdown.fi-user-menu'))
                ->interceptClick()
                ->passThrough(true)
                ->actions([])
                ->label('User menu')
                ->description('Click the user menu'),
                ```

lukas-frey avatar Mar 28 '24 19:03 lukas-frey

`<?php

namespace App\Filament\App\Pages;

use Filament\Pages\Page; use Guava\Tutorials\Concerns\InteractsWithTutorials; use Guava\Tutorials\Contracts\HasTutorials; use Guava\Tutorials\Selectors\Selector; use Guava\Tutorials\Steps\Step; use Guava\Tutorials\Tutorial;

class Dashboard extends Page implements HasTutorials { use InteractsWithTutorials;

protected static ?string $navigationIcon = 'heroicon-o-home';

protected static string $view = 'filament.app.pages.dashboard';

public function mount(): void
{
    $this->mountTutorial();
}

public function tutorial(Tutorial $tutorial) : Tutorial
{
    return $tutorial->steps([
        Step::make(Selector::make('.fi-dropdown.fi-user-menu'))
            ->interceptClick()
            ->passThrough(true)
            ->actions([])
            ->label('User menu')
            ->description('Click the user menu'),
    ]);

}

}`

this is my current code but it doesnt seem to work got any tips or see any mistakes?

JorisSD avatar Apr 03 '24 12:04 JorisSD

any news from this?

giagara avatar Jul 10 '24 08:07 giagara

No sadly not, I have resorted to using a different plugin

JorisSD avatar Jul 10 '24 11:07 JorisSD

@JorisSD can i ask what plugin did you used? thanks

giagara avatar Oct 31 '24 09:10 giagara

@JorisSD can i ask what plugin did you used? thanks

I used onboarding manager pro by Ralph J Smit

I do have to inform you that it is a paid service

JorisSD avatar Oct 31 '24 09:10 JorisSD