Giter Club home page Giter Club logo

profile-filament-plugin's Introduction

๐Ÿ‘‹ Hi there! I'm Randall Wilk

I'm a full-stack web developer that specializes in the Laravel framework.

rawilk's github stats Top Languages

Favorite Tech

Tools, languages, and other things that I like to work with.

Dev tools & languages

PHP MySQL Laravel NPM TailwindCSS Vite CSS3 Shell Script Nginx Git

Software & tools

Google Chrome macOS PhpStorm DigitalOcean Spotify Ubuntu Alfred GitHub Apple

profile-filament-plugin's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar rawilk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

profile-filament-plugin's Issues

`pf-passkey` icon not found

profile-filament-plugin Version

v0.3.2

Laravel Version

v10.46.0

Bug description

Svg by name "pf-passkey" from set "default" not found.

The custom Blade icons set that the package registers does not exist when it comes to resolving the icon. For now my workaround is to register the default set per the blade icons config and place a duplicate of pf-passkey.svg in my own /resources/svg folder.

Steps to reproduce

Install package as per instructions.

Relevant log output

No response

Delete Function Error in DeleteAccount

profile-filament-plugin Version

v0.2.1

Laravel Version

v10.10

Bug description

Bug Report: Delete Function Error in Plugin

Issue Description:

I encountered a minor bug while utilizing the delete function in my project. The specific issue arises with the label handling, where appending **?? '**' was necessary to avoid an error.

Error Log:

The following error was logged:

local.ERROR: Attempt to read property "email" on null {"view":{"view":"/Users/xxxxx/vendor/filament/forms/resources/views/components/field-wrapper/index.blade.php","data":[]},"exception":"[object] (Spatie\LaravelIgnition\Exceptions\ViewException(code: 0): Attempt to read property "email" on null at /Users/xxxxx/vendor/rawilk/profile-filament-plugin/src/Livewire/DeleteAccount.php:61)

Affected Code:

Here is the snippet of code where the issue occurs:

protected function getEmailInput(): Component
{
    return TextInput::make('email')
        /** @phpstan-ignore-next-line */
        ->label(fn () => __('profile-filament::pages/settings.delete_account.actions.delete.email_label', ['email' => Filament::auth()->user()->email **?? '**']))
        ->required()
        ->email()
        ->rules([
            fn (): Closure => function (string $attribute, $value, Closure $fail) {
                /** @phpstan-ignore-next-line */
                if (Str::lower($value) !== Str::lower(Filament::auth()->user()->email)) {
                    $fail(__('profile-filament::pages/settings.delete_account.actions.delete.incorrect_email'));
                },
        ]);
}

Steps to reproduce

Steps to Reproduce the Delete Function Error

  1. Initial Setup:

    • Ensure you are working with the specific version of the plugin where the issue was observed.
    • Set up the necessary environment that mirrors the conditions under which the bug was initially encountered.
  2. Navigate to the Relevant Section:

    • Go to the part of the application where the delete functionality is implemented.
  3. Trigger the Delete Function:

    • Perform the actions that typically lead to the invocation of the delete function. This could be clicking a delete button or selecting an option from a menu.
  4. Observe the Error:

    • At this point, you should encounter the specific error as mentioned in the bug report.
    • The error message should be similar to the one logged: Attempt to read property "email" on null.
  5. Check the Error Log:

    • Review the error log for details similar to the following:
       local.ERROR: Attempt to read property "email" on null ...
      
    • This log can help in pinpointing the exact location and nature of the issue.
  6. Review the Code:

    • Examine the code section where the error is occurring, particularly focusing on the label handling in the getEmailInput() method.
  7. Attempt a Workaround:

    • Try adding **?? '**' to the label as a temporary fix and observe if the error persists.

Relevant log output

local.ERROR: Attempt to read property "email" on null ...

Cannot use passkeys with non-default panel

profile-filament-plugin Version

v0.3.2

Laravel Version

v10.46

Bug description

Adding a passkey fails in a panel other than the default one. This is because a 403 occurs on the client side when fetching /sessions/webauthn/attestation-pk. Somewhere in this flow I believe the 'current panel' is resolved, erroneously returning the default one which in my instance the user does not have access to.****

Steps to reproduce

As above.

Relevant log output

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.