mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
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:
@@ -240,8 +240,7 @@ const SCRIPTS: Record<string, GuideScript> = {
|
||||
},
|
||||
},
|
||||
{
|
||||
// The dialog's close button has no label of its own: it is the button in the header next to the title.
|
||||
target: p => settings(p).locator('h2').locator('xpath=..').getByRole('button').first(),
|
||||
target: p => settings(p).getByRole('button', { name: 'Close' }),
|
||||
act: async p => { await closeSettings(p); await settle(p) },
|
||||
},
|
||||
],
|
||||
@@ -272,8 +271,7 @@ const SCRIPTS: Record<string, GuideScript> = {
|
||||
},
|
||||
},
|
||||
{
|
||||
// The dialog's close button has no label of its own: it is the button in the header next to the title.
|
||||
target: p => settings(p).locator('h2').locator('xpath=..').getByRole('button').first(),
|
||||
target: p => settings(p).getByRole('button', { name: 'Close' }),
|
||||
act: async p => { await closeSettings(p); await settle(p) },
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user