pxlrbt / filament-spotlight Goto Github PK
View Code? Open in Web Editor NEWQuickly navigate your Filament pages
License: MIT License
Quickly navigate your Filament pages
License: MIT License
Path: src/Actions/RegisterPages.php
$url = $page::getUrl();
replace to
if (in_array($page, ['Wallo\FilamentCompanies\Pages\Companies\CompanySettings'], true) && FilamentCompanies::hasCompanyFeatures()) { $url = $page::getUrl([Auth::user()?->currentCompany]); } else { $url = $page::getUrl(); }
It seems like the english translation is missing some translations, like Search for a :record, Logout, Dashboard and so on. Also, adding 'Search for a :record' as a key in the translation doesn't seem to pick it up here:
SpotlightCommandDependency::make('record')->setPlaceholder(__('Search for a :record', ['record' => $this->resource::getModelLabel()]))
I tried to clear the cache, and change both English and Italian languages to this:
'What do you want to do?', 'Search for a :record' => 'Test :record', ]; but with no avail.This has already been mentioned in #17 but we have a few pages within our application that have route parameters. One possible solution would be to check whether or not the page should register navigation in RegisterPages:
if ($page::shouldRegisterNavigation() === false) {
continue;
}
If having pages that aren't in the navigation is an intended feature of this package then maybe that could be togglable? Or some way to excluded certain pages added?
When I search for a record for it's title it doesn't show up in the spotlight results
In URL I have set uuid instead of id: [resource]/[uuid]/edit . Edits in work fine in Filament routes but Spotlight ignores the method in the Model:
public function getRouteKeyName()
{
return 'uuid';
}
and does: [resource]/[id]/edit so it is 404.
That should be checked when performing search. Am I missing something?
Problem 1
- pxlrbt/filament-spotlight[0.1.0, ..., v0.3.2] require filament/filament ^2.10.34 -> found filament/filament[v2.10.34, ..., v2.17.51] but it conflicts with your root composer.json require (^3.0).
- pxlrbt/filament-spotlight[v0.3.3, ..., v0.3.8] require filament/filament ^2.14.0 -> found filament/filament[v2.14.0, ..., v2.17.51] but it conflicts with your root composer.json require (^3.0).
- Root composer.json requires pxlrbt/filament-spotlight * -> satisfiable by pxlrbt/filament-spotlight[0.1.0, ..., v0.3.8].
When using Filament guard, checking auth()->check() throws an exception:
method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
It can be solved using:
Filament::auth()->check()
The dist spotlight.js file was deleted in the commit 50f8a79 and with that the plugin stopped working in version 0.3.4.
how to added backdrop blur please
The documentation could have some implementation details, such as selecting specific database columns to display a result from a resource, and others we don't know.
pxlrbt\FilamentSpotlight\Actions\RegisterUserMenu::getUrl(): Return value must be of type string, null returned
I noticed that when I added Spotlight to my dashboard, the pages became 2~3 seconds slower to load. I have approximately 30 resources.
Hi,
After installing the package, I got this error :
Missing required parameter for [Route: filament.pages.{record}/exammodule] [URI: account/{record}/exammodule] [Missing parameter: record]
How could I resolve this please? thanks
Currently only non-resource pages are filtered by shouldRegisterSpotlight()
. This should also apply to resources and resource pages.
text-gray-300 not build in filament
Hello,
I noticed some slowness in panel after an update of filament to v2.15.33 than usual, than I found that the plugin is not working at all.
After some inspection, I confirmed that is not working starting from the Filament v2.15.29 (with Laravel 9.26.1/PHP8.1).
I didn't dig deeper, I'm not sure, but I remember that the PR #3719 regarding support for Turbo Navigation got my attention that may cause similar issues.
It would be very cool if the search results would feature the navigation Icon of the ressource.
Good for quick navigation and readability.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.