feat(dialogs): Vacay, Collections, Atlas and Journey in the new dialog look

Every popup of the four pages moves to the shared dialog frame the trip
uses: head band with its icon, the scrolling body, the footer with its
actions, and ConfirmDialog for the questions.

- Vacay: settings, removing a year (now says so when it fails), the
  fusion request, inviting a person, a person's colour and sharing the
  calendar.
- Collections: new and edited lists, adding a place, importing a file and
  a trip's places, sharing, labels and assigning them, copying to a trip,
  moving or duplicating, saving a trip's places and deleting a list. The
  stylesheet of the old import view goes.
- Atlas: the country popup with the flag in its head, its choices as rows
  and the wishlist step; Dawarich's Atlas dialog and its accept dialog on
  the desktop.
- Journey: creating a journey, its settings, linking a trip, inviting a
  contributor, the entry editor (discarding asks in a dialog) and the
  photo provider picker; the entry card's menu is the shared one.

The phone keeps its own sheets: where a dialog is shared with it
(Dawarich, the contributor invite, the provider picker) only the desktop
frame changes.
This commit is contained in:
Maurice
2026-09-28 16:52:32 +02:00
parent 9064ee57b7
commit acd003ea67
46 changed files with 3338 additions and 2803 deletions
@@ -2,7 +2,7 @@
import React from 'react'
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
import { http, HttpResponse } from 'msw'
import { render, screen, fireEvent, waitFor, within } from '../../../tests/helpers/render'
import { render, screen, fireEvent, waitFor } from '../../../tests/helpers/render'
import { server } from '../../../tests/helpers/msw/server'
import { resetAllStores } from '../../../tests/helpers/store'
import { useVacayStore } from '../../store/vacayStore'
@@ -98,12 +98,15 @@ describe('VacaySharedCalendars errors', () => {
fireEvent.click(screen.getByTitle('Share calendar'))
const hint = await screen.findByRole('button', { name: 'Share' })
fireEvent.click(hint.closest('.fixed') as HTMLElement)
// The dialog frame only closes on a press that starts and ends on the backdrop.
const backdrop = hint.closest('.fixed') as HTMLElement
fireEvent.mouseDown(backdrop)
fireEvent.click(backdrop)
expect(screen.queryByRole('button', { name: 'Share' })).not.toBeInTheDocument()
fireEvent.click(screen.getByTitle('Share calendar'))
const header = (await screen.findByText('Share calendar')).closest('.justify-between') as HTMLElement
fireEvent.click(within(header).getByRole('button'))
await screen.findByText('Share calendar')
fireEvent.click(screen.getByRole('button', { name: 'Close' }))
expect(screen.queryByRole('button', { name: 'Share' })).not.toBeInTheDocument()
fireEvent.click(screen.getByTitle('Share calendar'))