Open only the info popover when a calendar bar is tapped

On touch screens a tap on a task bar both showed its info popover and
opened the schedule dialog. A tap now only opens the popover, which stays
open until something else is tapped, and the popover's own "Open schedule"
button opens the dialog. Mouse clicks and Enter still open the dialog
directly. The popover is no longer a tooltip since it holds a button, and
the bar's aria-describedby points only at the details.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 09:35:53 +02:00
co-authored by Claude Sonnet 5.5
parent 4bba130c4c
commit 3faa4cfbc6
6 changed files with 161 additions and 36 deletions
@@ -179,7 +179,8 @@ it('shows the job details in the info popover of a bar', function () {
$task = TaskModel::query()->sole();
Livewire::test('jobs::calendar')
->assertSee('aria-describedby="bar-info-'.$task->id.'-'.$this->other->id.'"', escape: false)
->assertSee('aria-describedby="bar-info-'.$task->id.'-'.$this->other->id.'-details"', escape: false)
->assertSee('Avaa aikataulu: tehtävä Mainoskuvat')
->assertSeeInOrder([
'Työ', $this->job->number, 'Kampanja',
'Asiakas', CustomerModel::query()->findOrFail($this->job->customer_id)->name,