GithubHelp home page GithubHelp logo

bezhansalleh / filament-panel-switch Goto Github PK

View Code? Open in Web Editor NEW
97.0 4.0 18.0 2.54 MB

The Panel Switch Plugin for Filament offers a robust and customizable component for switching between panels in applications built with FilamentPHP.

License: MIT License

JavaScript 3.01% PHP 59.49% Blade 37.50%
filament filament-plugin filamentphp panel-switch panels

filament-panel-switch's People

Contributors

andrewdwallo avatar bezhansalleh avatar chengkangzai avatar dependabot[bot] avatar github-actions[bot] avatar ianlandsman avatar lucasgiovanny avatar thijmenkort avatar zsp03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

filament-panel-switch's Issues

[Question]: How can I only display panels that I have access to

What happened?

How can I only display panels that I have access to

How to reproduce the bug

i try this but not work
->visible(fn (): bool => auth()->user()?->hasAnyRole([
'admin',
'general_manager',
'super_admin',
]));

Package Version

1.0.5

PHP Version

8.2

Laravel Version

10.0

Which operating systems does with happen with?

macOS

Notes

No response

[Bug]: Top navigation breaks panel selection modal

What happened?

Hi.

Having the same issue as #12 and the suggestion (use another render hook) makes no difference.

It seems that when a panel uses ->topNavigation(), although the Panel Switch button is there (wherever you hook it to), clicking it does not show the panel selection modal.

How to reproduce the bug

Fresh installation, just add ->topNavigation()to the panel in App\Providers\Filament\AdminPanelProvider and try it.

Package Version

1

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

macOS

Notes

No response

[Bug]: Slide-Over design doesn't work

What happened?

The default design appears. (All other designs work.)

How to reproduce the bug

Specify $panelSwitch->slideOver(); as instructed here.

Package Version

1.0.4

PHP Version

8.2.5

Laravel Version

10.39.0

Which operating systems does with happen with?

macOS

Notes

No response

[Help]: Is it possible to hide the switch for a particular panel?

What happened?

I'd like to hide the panel for a particular panel. I could not find a way to do that.

Thanks.

How to reproduce the bug

not applicable.

Package Version

1.0.5

PHP Version

8.3

Laravel Version

10.0.0

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: It cannot switch to default panel, if default panel has path = '/'

What happened?

I have added two panels.

  1. Admin panel on / path
  2. Another panel on /x path

I can switch from Admin to another panel but switching back to Admin panel does not work when the path is /. If i change the path to something else i works.

This would not work

return $panel
    ->default()
    ->id('admin')
    ->path('/')

This would work

return $panel
    ->default()
    ->id('admin')
    ->path('/admin')

How to reproduce the bug

  1. Create Two panels in your filament application,
    1.1) Admin Panel: set path to /
    1.1) Editor Panel: set path to /editor
  2. go browser switch to editor panel
  3. switch back to Admin panel
  4. you can not switch back and in url it shows: about:blank#blocked

Package Version

1.0.1

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

macOS

Notes

No response

Panel switch is not working when top Navigation is in use.

What happened?

When topNavigation() is enabled in the panel provider, the switcher becomes unclickable.

How to reproduce the bug

Enable topNavigation() in the panel provider. Switch to the panel in which navigation is set to topNavigation(), then try to switch to another panel using panel switch.

Package Version

1.0.1

PHP Version

8.1

Laravel Version

10.26.2

Which operating systems does with happen with?

No response

Notes

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.