Data table page

A list of records to work through, here a project's issues: a search and filters with the applied ones as chips, status counts that filter in one press, columns to sort by, boxes to select rows and act on them together (on this page or every page that matches), a menu on each row, the number per page and the pages. Every part of it is a link or a form, so it all works with no script; the script adds the confirmation beside Delete, the select-all box and the row menus.

The issues list, light and dark

The issues list on a phone, light and dark

A block, not a component: copy the view below into your app. It is a page in the sidebar shell, which assumes the base layout.

What it shows

  • The header (page header): the title, how many issues there are, New issue, and Export CSV and Import, which fold into a More menu when the header is narrow. Export keeps the query string, so it exports what is on screen.

  • The filters (filter bar): a search, the assignee as a native select (ds::input as="select"), when it was last updated as a date picker range with presets, and Apply. They are one GET form: the query string is the state. The applied filters show as chips that each take one away, with Clear all beside them. On a phone the controls fold behind a "Filter issues" button.

  • Status as link chips with their counts (chip group): one press filters, keeping the other filters, with no script.

  • The table (table): sorted by a column's header, which is a link carrying sort and direction and dropping page. The first column is the issue's key and title, a link to it; then a status badge, the priority (Urgent as a badge, the rest as words), the assignee with an avatar, and when it was updated.

  • Selecting rows: every row has a box, the header a select-all box. Checking any brings up the selection bar with Archive and Delete; with the whole page checked it offers "Select all 248", which posts all=1 with the filters, so the server acts on every issue that matches them and not on every issue there is. Delete asks first, beside the button, in a confirm popover:

    Two issues selected, Delete asking, light and dark

  • Each row's menu (dropdown): Open, Edit and Archive, which posts on its own. Delete is left to the selection bar, where it asks first.

  • The foot: how many per page, a select that belongs to the filter form and submits it, and the package's pagination view, which says where you are.

  • No match: the table keeps its header and says so in its body, with a way back to everything (empty state):

    No issue matches the filters, light and dark

  • Loading: a skeleton swap holds the table's place with skeleton rows while $issues is null, which is what a Livewire component shows during a request (below):

    Loading, light and dark

  • Empty, a project with no issues at all: no filters, no table, an empty state with New issue and Import a CSV. Error: when the search behind the list fails, an alert in the table's place says so, with Try again, and the filters stay as they were. Both are states the test suite renders.

Built from

The markup

resources/views/issues/index.blade.php

{{--
    A project's issues as a list to work through: search and filter, sort,
    page, and act on several at once. Every part is a link or a form, so it
    works with no script. The controller passes $project, $issues (a
    paginator, or null while it is not loaded yet), $counts (status =>
    how many, '' for all), $filters (q, status, assignee, updated as
    [from, to], per_page), $sort, $direction, $people and $error.
--}}
@php
    $statuses = ['todo' => 'To do', 'in_progress' => 'In progress', 'in_review' => 'In review', 'done' => 'Done'];
    $tones = ['todo' => 'neutral', 'in_progress' => 'accent', 'in_review' => 'warning', 'done' => 'success'];
    $priorities = ['urgent' => 'Urgent', 'high' => 'High', 'medium' => 'Medium', 'low' => 'Low'];

    $here = route('projects.issues', $project['key']);
    [$from, $to] = $filters['updated'];
    $day = fn (string $date, string $format = 'j M') => \Illuminate\Support\Carbon::parse($date)->format($format);
    $active = count(array_filter([$filters['q'], $filters['status'], $filters['assignee'], $from ?? $to]));
    $loaded = $issues !== null;
    // What the reader checked before a no-script Delete sent the page back to ask.
    $checked = array_map('strval', old('selected', []));
@endphp

<x-layouts.app title="{{ $project['name'] }} issues">
    <div class="flex flex-col gap-5">
        <x-ds::page-header
            title="Issues"
            :description="number_format($counts['']).' issues in '.$project['name']"
            :secondary="[
                ['label' => 'Export CSV', 'href' => route('projects.issues.export', [$project['key'], ...request()->query()]), 'icon' => 'arrow-down-tray'],
                ['label' => 'Import', 'href' => route('projects.issues.import', $project['key']), 'icon' => 'arrow-up-tray'],
            ]"
            :collapseActions="true"
        >
            <x-slot:actions>
                <x-ds::button icon="plus" :href="route('issues.create')">New issue</x-ds::button>
            </x-slot:actions>
        </x-ds::page-header>

        @if ($counts[''] === 0)
            <x-ds::empty-state icon="inbox" title="No issues in {{ $project['name'] }} yet" description="Report the first one, or bring a list over from a spreadsheet.">
                <x-slot:action>
                    <div class="flex flex-wrap justify-center gap-2">
                        <x-ds::button icon="plus" :href="route('issues.create')">New issue</x-ds::button>
                        <x-ds::button variant="secondary" :href="route('projects.issues.import', $project['key'])">Import a CSV</x-ds::button>
                    </div>
                </x-slot:action>
            </x-ds::empty-state>
        @else
            <form id="issue-filters" method="GET" action="{{ $here }}" class="flex flex-col gap-3">
                <input type="hidden" name="sort" value="{{ $sort }}">
                <input type="hidden" name="direction" value="{{ $direction }}">
                @if ($filters['status'])
                    <input type="hidden" name="status" value="{{ $filters['status'] }}">
                @endif

                <x-ds::filter-bar label="Filter issues" :active="$active" :resetHref="$here" :collapsible="true">
                    <x-slot:search>
                        <x-ds::input type="search" name="q" aria-label="Search issues" placeholder="Title or key" icon="magnifying-glass" :value="$filters['q']" />
                    </x-slot:search>

                    <x-ds::input as="select" name="assignee" aria-label="Assignee">
                        <option value="">Anyone</option>
                        <option value="none" @selected($filters['assignee'] === 'none')>Unassigned</option>
                        @foreach ($people as $person)
                            <option value="{{ $person }}" @selected($filters['assignee'] === $person)>{{ $person }}</option>
                        @endforeach
                    </x-ds::input>
                    <x-ds::date-picker name="updated" label="Updated" :hideLabel="true" :range="true" :presets="true" :value="[$from, $to]" placeholder="Any time" class="w-64" />
                    <x-ds::button type="submit" variant="secondary">Apply</x-ds::button>

                    <x-slot:applied>
                        @if ($filters['q'])
                            <x-ds::filter-chip label="Search" :value="$filters['q']" :removeHref="request()->fullUrlWithoutQuery(['q', 'page'])" />
                        @endif
                        @if ($filters['status'])
                            <x-ds::filter-chip label="Status" :value="$statuses[$filters['status']]" :removeHref="request()->fullUrlWithoutQuery(['status', 'page'])" />
                        @endif
                        @if ($filters['assignee'])
                            <x-ds::filter-chip label="Assignee" :value="$filters['assignee'] === 'none' ? 'Unassigned' : $filters['assignee']" :removeHref="request()->fullUrlWithoutQuery(['assignee', 'page'])" />
                        @endif
                        @if ($from || $to)
                            <x-ds::filter-chip label="Updated" :value="($from ? $day($from) : '…').' – '.($to ? $day($to, 'j M Y') : '…')" :removeHref="request()->fullUrlWithoutQuery(['updated_start', 'updated_end', 'page'])" />
                        @endif
                    </x-slot:applied>
                </x-ds::filter-bar>
            </form>

            {{-- Links, so a status is one press and needs no script; each keeps the other filters. --}}
            <x-ds::chip-group label="Status" :hideLabel="true" size="sm">
                <x-ds::chip :href="request()->fullUrlWithQuery(['status' => null, 'page' => null])" :active="! $filters['status']" :count="$counts['']">All</x-ds::chip>
                @foreach ($statuses as $value => $name)
                    <x-ds::chip :href="request()->fullUrlWithQuery(['status' => $value, 'page' => null])" :active="$filters['status'] === $value" :count="$counts[$value]">{{ $name }}</x-ds::chip>
                @endforeach
            </x-ds::chip-group>

            @if ($error)
                <x-ds::alert tone="danger" title="The issues could not be loaded">
                    <p>{{ $error }} Your filters are kept; try again in a moment.</p>
                    <x-slot:actions>
                        <x-ds::button variant="secondary" size="sm" icon="arrow-path" :href="request()->fullUrl()">Try again</x-ds::button>
                    </x-slot:actions>
                </x-ds::alert>
            @else
                {{-- One form for the boxes and the bulk actions; each action posts to its own route. --}}
                <form id="issue-bulk" method="POST" action="{{ route('issues.bulk.archive', $project['key']) }}" class="flex flex-col gap-3">
                    @csrf
                    {{-- So "all 248" means all that match these filters, not every issue. --}}
                    @foreach (request()->only(['q', 'status', 'assignee', 'updated_start', 'updated_end']) as $key => $value)
                        <input type="hidden" name="filters[{{ $key }}]" value="{{ $value }}">
                    @endforeach

                    @if (session('confirmDelete'))
                        <x-ds::alert tone="danger" title="Delete {{ session('confirmDelete') }} issues?">
                            <p>They go with their comments and history. This cannot be undone.</p>
                            <x-slot:actions>
                                <x-ds::button type="submit" variant="danger" size="sm" :formaction="route('issues.bulk.destroy', $project['key'])" name="confirmed" value="1">Delete {{ session('confirmDelete') }} issues</x-ds::button>
                                <x-ds::button variant="ghost" size="sm" :href="request()->fullUrl()">Keep them</x-ds::button>
                            </x-slot:actions>
                        </x-ds::alert>
                    @endif

                    @if ($loaded && $issues->isNotEmpty())
                        <x-ds::selection-bar for="issues" :count="count($checked)" :total="$issues->total()">
                            <x-ds::button type="submit" variant="secondary" size="sm" icon="archive-box">Archive</x-ds::button>
                            {{-- With the script, Delete asks beside the button. Without it, the plain Delete posts unconfirmed and the controller sends the page back to ask. --}}
                            <x-ds::confirm-popover
                                title="Delete the selected issues?"
                                description="They go with their comments and history. This cannot be undone."
                                confirmLabel="Delete"
                                :formaction="route('issues.bulk.destroy', $project['key'])"
                                confirmField="confirmed"
                                class="[@media(scripting:none)]:hidden"
                            >
                                <x-slot:trigger>
                                    <x-ds::button variant="secondary" tone="danger" size="sm" icon="trash">Delete</x-ds::button>
                                </x-slot:trigger>
                            </x-ds::confirm-popover>
                            <x-ds::button type="submit" :formaction="route('issues.bulk.destroy', $project['key'])" variant="secondary" tone="danger" size="sm" icon="trash" class="[@media(scripting:enabled)]:hidden">Delete</x-ds::button>
                        </x-ds::selection-bar>
                    @endif

                    <x-ds::skeleton-swap :loaded="$loaded">
                        <x-slot:placeholder>
                            <div class="flex flex-col gap-3 rounded-control border border-border bg-surface p-4">
                                @foreach (range(1, 8) as $row)
                                    <x-ds::skeleton variant="block" size="sm" />
                                @endforeach
                            </div>
                        </x-slot:placeholder>

                        @if ($loaded)
                            <x-ds::table
                                id="issues"
                                label="Issues"
                                :selectable="true"
                                :stickyFirst="true"
                                :sort="$sort"
                                :direction="$direction"
                                :columns="[
                                    ['label' => 'Issue', 'key' => 'key', 'sortable' => true],
                                    ['label' => 'Status', 'width' => 'w-32'],
                                    ['label' => 'Priority', 'key' => 'priority', 'sortable' => true, 'width' => 'w-28'],
                                    ['label' => 'Assignee', 'width' => 'w-44'],
                                    ['label' => 'Updated', 'key' => 'updated', 'sortable' => true, 'width' => 'w-28'],
                                    ['label' => '', 'width' => 'w-14'],
                                ]"
                            >
                                @forelse ($issues as $issue)
                                    <x-ds::table-row :value="$issue['id']" :selected="in_array((string) $issue['id'], $checked, true)" :selectLabel="'Select '.$issue['key']">
                                        {{-- The row's header, and it stays put: a phone scrolled sideways still says which issue a row is. --}}
                                        <x-ds::table-cell :rowHeader="true">
                                            <a href="{{ route('issues.show', $issue['key']) }}" class="group flex min-w-44 flex-col rounded-chip sm:min-w-64 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring">
                                                <span class="text-meta font-normal tabular-nums text-fg-muted">{{ $issue['key'] }}</span>
                                                <span class="group-hover:underline">{{ $issue['title'] }}</span>
                                            </a>
                                        </x-ds::table-cell>
                                        <x-ds::table-cell :nowrap="true"><x-ds::badge :tone="$tones[$issue['status']]">{{ $statuses[$issue['status']] }}</x-ds::badge></x-ds::table-cell>
                                        <x-ds::table-cell :nowrap="true">
                                            @if ($issue['priority'] === 'urgent')
                                                <x-ds::badge tone="danger" :dot="true">Urgent</x-ds::badge>
                                            @else
                                                {{ $priorities[$issue['priority']] }}
                                            @endif
                                        </x-ds::table-cell>
                                        <x-ds::table-cell :nowrap="true">
                                            @if ($issue['assignee'])
                                                <span class="flex items-center gap-2">
                                                    <x-ds::avatar :name="$issue['assignee']" size="xs" :decorative="true" />
                                                    {{ $issue['assignee'] }}
                                                </span>
                                            @else
                                                <span class="text-fg-muted">Unassigned</span>
                                            @endif
                                        </x-ds::table-cell>
                                        <x-ds::table-cell :nowrap="true"><time datetime="{{ $issue['updated'] }}">{{ $day($issue['updated']) }}</time></x-ds::table-cell>
                                        <x-ds::table-cell align="right">
                                            <x-ds::dropdown>
                                                <x-slot:trigger>
                                                    <x-ds::button variant="ghost" size="sm" icon="ellipsis-horizontal" :iconOnly="true" :aria-label="'Actions for '.$issue['key']" />
                                                </x-slot:trigger>

                                                <x-ds::dropdown-item icon="arrow-top-right-on-square" :href="route('issues.show', $issue['key'])">Open</x-ds::dropdown-item>
                                                <x-ds::dropdown-item icon="pencil-square" :href="route('issues.edit', $issue['key'])">Edit</x-ds::dropdown-item>
                                                <x-ds::dropdown-item icon="archive-box" as="button" :formaction="route('issues.archive', $issue['key'])">Archive</x-ds::dropdown-item>
                                            </x-ds::dropdown>
                                        </x-ds::table-cell>
                                    </x-ds::table-row>
                                @empty
                                    <tr>
                                        {{-- Six columns and the boxes' column. --}}
                                        <td colspan="7">
                                            <x-ds::empty-state icon="magnifying-glass" title="No issues match" description="Nothing in {{ $project['name'] }} fits every filter at once. Take one away, or start again." :bare="true">
                                                <x-slot:action>
                                                    <x-ds::button variant="secondary" :href="$here">Clear filters</x-ds::button>
                                                </x-slot:action>
                                            </x-ds::empty-state>
                                        </td>
                                    </tr>
                                @endforelse
                            </x-ds::table>
                        @endif
                    </x-ds::skeleton-swap>
                </form>

                @if ($loaded && $issues->total() > 0)
                    <div class="flex flex-wrap items-center gap-x-4 gap-y-3">
                        <div class="flex items-center gap-2">
                            {{-- Part of the filter form, which it submits on change; with no script, Show does. --}}
                            <x-ds::input as="select" name="per_page" form="issue-filters" aria-label="Issues per page" x-data x-on:change="$el.form.requestSubmit()">
                                @foreach ([10, 25, 50] as $size)
                                    <option value="{{ $size }}" @selected($filters['per_page'] === $size)>{{ $size }} per page</option>
                                @endforeach
                            </x-ds::input>
                            <x-ds::button type="submit" form="issue-filters" variant="secondary" class="[@media(scripting:enabled)]:hidden">Show</x-ds::button>
                        </div>
                        <div class="w-full sm:w-auto sm:min-w-0 sm:flex-1">
                            {{ $issues->withQueryString()->links('ds::pagination') }}
                        </div>
                    </div>
                @endif
            @endif
        @endif
    </div>
</x-layouts.app>

Wire it up

The routes

use App\Http\Controllers\IssueBulkController;
use App\Http\Controllers\IssueController;
use App\Http\Controllers\ProjectIssueController;

Route::middleware('auth')->group(function () {
    Route::get('projects/{project}/issues', [ProjectIssueController::class, 'index'])->name('projects.issues');
    Route::get('projects/{project}/issues/export', [ProjectIssueController::class, 'export'])->name('projects.issues.export');
    Route::get('projects/{project}/issues/import', [ProjectIssueController::class, 'import'])->name('projects.issues.import');
    Route::post('projects/{project}/issues/archive', [IssueBulkController::class, 'archive'])->name('issues.bulk.archive');
    Route::post('projects/{project}/issues/delete', [IssueBulkController::class, 'destroy'])->name('issues.bulk.destroy');
    Route::post('issues/{issue}/archive', [IssueBulkController::class, 'archiveOne'])->name('issues.archive');
    Route::get('issues/{issue}/edit', [IssueController::class, 'edit'])->name('issues.edit');
});

issues.show and issues.create are the shell's. Delete is a POST to its own URI rather than a DELETE because the selection bar's buttons share one form, whose method is POST, and each picks its route with formaction. The project is bound by its key (getRouteKeyName() returning key).

The list

The query string is read once, checked against what the page offers, and used for the query, the counts and the view:

namespace App\Http\Controllers;

use App\Models\Project;
use Illuminate\Database\QueryException;
use Illuminate\Http\Request;

class ProjectIssueController
{
    private const SORTS = ['key' => 'number', 'priority' => 'priority_rank', 'updated' => 'updated_at'];

    public function index(Request $request, Project $project)
    {
        $filters = $request->validate([
            'q' => ['nullable', 'string', 'max:100'],
            'status' => ['nullable', 'in:todo,in_progress,in_review,done'],
            'assignee' => ['nullable', 'string'],
            'updated_start' => ['nullable', 'date'],
            'updated_end' => ['nullable', 'date', 'after_or_equal:updated_start'],
            'per_page' => ['nullable', 'in:10,25,50'],
        ]);
        $sort = array_key_exists((string) $request->query('sort'), self::SORTS) ? $request->query('sort') : 'updated';
        $direction = $request->query('direction') === 'asc' ? 'asc' : 'desc';

        // Everything but the status: the chips count what each status would leave.
        $matching = fn () => $project->issues()->filter(collect($filters)->except('status')->all());

        try {
            $issues = $matching()
                ->when($filters['status'] ?? null, fn ($q, $status) => $q->where('status', $status))
                ->with('assignee')
                ->orderBy(self::SORTS[$sort], $direction)
                ->paginate((int) ($filters['per_page'] ?? 10))
                ->through(fn ($issue) => [
                    'id' => $issue->id,
                    'key' => $issue->key,
                    'title' => $issue->title,
                    'status' => $issue->status,
                    'priority' => $issue->priority,
                    'assignee' => $issue->assignee?->name,
                    'updated' => $issue->updated_at->toDateString(),
                ]);
            $error = null;
        } catch (QueryException $e) {
            report($e);
            [$issues, $error] = [null, 'The search service did not answer in time.'];
        }

        $counts = $matching()->toBase()->selectRaw('status, count(*) as n')->groupBy('status')->pluck('n', 'status');

        return view('issues.index', [
            'project' => ['key' => $project->key, 'name' => $project->name],
            'issues' => $issues,
            'counts' => ['' => (int) $counts->sum(), ...$counts->all()] + array_fill_keys(['todo', 'in_progress', 'in_review', 'done'], 0),
            'filters' => [
                'q' => $filters['q'] ?? '',
                'status' => $filters['status'] ?? '',
                'assignee' => $filters['assignee'] ?? '',
                'updated' => [$filters['updated_start'] ?? null, $filters['updated_end'] ?? null],
                'per_page' => (int) ($filters['per_page'] ?? 10),
            ],
            'sort' => $sort,
            'direction' => $direction,
            'people' => $project->team->members()->orderBy('name')->pluck('name')->all(),
            'error' => $error,
        ]);
    }
}

filter() is a local scope of your own on the Issue model: the search on the key and the title, assignee (with none for unassigned) and the two dates on updated_at. counts[''] is every issue the other filters leave, so "All" agrees with the chips beside it; the header's count reads it too. A failed count would throw past the try; put it inside if the counts come from the same search service.

Archive and delete: one, several or all

The boxes post selected[]; "Select all 248" adds all=1, and the form carries the filters as filters[…] so "all" means all that match:

namespace App\Http\Controllers;

use App\Models\Issue;
use App\Models\Project;
use Illuminate\Http\Request;

class IssueBulkController
{
    public function archive(Request $request, Project $project)
    {
        $count = $this->chosen($request, $project)->update(['archived_at' => now()]);

        return back()->with('status', "{$count} issues archived.");
    }

    public function destroy(Request $request, Project $project)
    {
        $chosen = $this->chosen($request, $project);

        // The popover's Delete posts confirmed=1. The no-script Delete does
        // not, so the page comes back with the same boxes checked and asks.
        if (! $request->boolean('confirmed')) {
            return back()->withInput()->with('confirmDelete', $chosen->count());
        }

        $count = $chosen->count();
        $chosen->delete();

        return back()->with('status', "{$count} issues deleted.");
    }

    public function archiveOne(Issue $issue)
    {
        $issue->update(['archived_at' => now()]);

        return back()->with('status', "{$issue->key} archived.");
    }

    private function chosen(Request $request, Project $project)
    {
        $request->validate(['selected' => ['required_without:all', 'array'], 'selected.*' => ['integer']]);

        return $request->boolean('all')
            ? $project->issues()->filter($request->input('filters', []))
            : $project->issues()->whereKey($request->input('selected'));
    }
}

Authorise each action with a policy of your own before acting. A flashed status is the place for a toast; the settings page block shows one. The row menu's Archive sits inside the bulk form, so it posts the checked boxes too; archiveOne ignores them.

Live, with Livewire

The same view with the filters as properties kept in the query string, and the table's own Livewire hooks. What changes from the plain page:

namespace App\Livewire;

use Livewire\Attributes\Url;
use Livewire\Component;
use Livewire\WithPagination;

class ProjectIssues extends Component
{
    use WithPagination;

    #[Url] public string $q = '';
    #[Url] public string $status = '';
    #[Url] public string $assignee = '';
    #[Url] public array $updated = [null, null];
    #[Url] public string $sort = 'updated';
    #[Url] public string $direction = 'desc';
    public array $selected = [];

    public function updated($property): void
    {
        if (in_array($property, ['q', 'status', 'assignee', 'updated'])) {
            $this->resetPage();
            $this->selected = [];
        }
    }

    public function sortBy(string $key): void
    {
        $this->direction = $this->sort === $key && $this->direction === 'asc' ? 'desc' : 'asc';
        $this->sort = $key;
        $this->resetPage();
    }

    public function paginationView(): string
    {
        return 'ds::pagination-livewire';
    }
}
<x-ds::input type="search" aria-label="Search issues" icon="magnifying-glass" :clearable="true" wire:model.live.debounce.300ms="q" />
<x-ds::date-picker name="updated" label="Updated" :range="true" :presets="true" wire:model.live="updated" />
<x-ds::filter-chip label="Status" :value="$statuses[$status]" x-on:remove="$wire.set('status', '')" />

<x-ds::skeleton-swap :loaded="true" wire:loading.attr="aria-busy" wire:target="q, status, assignee, updated, sortBy, gotoPage">
    <x-slot:placeholder>…</x-slot:placeholder>
    <x-ds::table id="issues" :selectable="true" selectModel="$wire.selected" :sort="$sort" :direction="$direction" sortAction="sortBy('{key}')" :columns="$columns">
        @foreach ($issues as $issue)
            <x-ds::table-row wire:key="issue-{{ $issue['id'] }}" :value="$issue['id']" :selectLabel="'Select '.$issue['key']">…</x-ds::table-row>
        @endforeach
    </x-ds::table>
</x-ds::skeleton-swap>

The status chips become a chip group of radios bound with wire:model.live="status", and the selection bar's actions wire:clicks, as its page shows; "Select all" dispatches select-all for the component to answer. wire:loading.attr="aria-busy" is what brings the skeletons back during a request, with no script of the package's. This recipe was written against the components' documented Livewire hooks, not run in a Livewire app.

Phone, keyboard, no script

  • Phone: the table keeps its columns and scrolls sideways inside its own border, rather than turning into stacked cards. A card list would draw every row a second time, with a second set of boxes posting the same ids, or need a component the package does not have, and the table's sorting, select-all and selection bar would not carry over. The issue's key and title are the first column, the row's header, and it stays put (stickyFirst) while the others scroll under it, so a row is always known. The filter controls fold behind a "Filter issues" button, the search staying in the row; the pagination is Previous, "1 / 25" and Next.
  • Keyboard: the search, the controls, Apply, the status chips, each sortable header, then the select-all box and every row: its box, the issue's link and its "Actions for" menu button. Space checks a box and Shift with a press checks a run. In the selection bar, Delete opens its question with focus on Cancel; Escape closes it and gives focus back. Clear selection hands focus to the select-all box.
  • No script: the filters are a GET form with Apply, the status chips, the sort headers and the pages are links, and per page has its own Show button. The boxes post with the form: Archive archives what is checked, and Delete posts with no question, so the controller sends the page back with the boxes still checked and asks in an alert, whose Delete posts confirmed=1. What needs the script: the select-all box, "Select all 248", the row menus (each row's title still links to the issue), the date picker's calendar (two native date fields post the same names instead), and the filter popover on a phone (the controls stay in the row).

From the package repo: edit this page on GitHub.

Was this page helpful?