MedicOneSystems / MedicOneSystems/livewire-datatables

Dark Mode Support and Authentication

Open
#402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

I did not see this in your docs, I am curious if you support dark mode or not. If not, is there some way I can add it with out editing the vendor files for future updates?

I also noticed the table will not work, that is you cannot use pagination if you are logged out. For example:

namespace App\Flare\View\Livewire;

use App\Flare\Models\Item;
use Mediconesystems\LivewireDatatables\Column;
use Mediconesystems\LivewireDatatables\Http\Livewire\LivewireDatatable;
use Mediconesystems\LivewireDatatables\NumberColumn;

class ItemsTable extends LivewireDatatable
{

    public function builder()
    {
        return Item::query()->whereNotIn('type', ['quest', 'alchemy'])->whereNull('item_prefix_id')->whereNull('item_suffix_id');
    }

    public function columns()
    {
        return [
            NumberColumn::name('id')
                ->label('ID'),

            Column::name('name')
                ->label('Name'),

            NumberColumn::name('cost')
                ->label('Gold Cost'),
        ];
    }
}

This will load when logged out, but clicking on the pagination gives me a 302 and states I have to login. Is there a way to disable that? Or maybe it's a user error of some kind? Once I login the table works fully, but I also need it to work when the user is not logged in.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the logged-out pagination request with the ItemsTable example, focusing on the builder, columns, and redirect to login. Then identify the package entry points for pagination and styling; done means pagination works for logged-out users and dark mode can be added without editing vendor files.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php, tailwindcss
Domain
authentication, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.