fix(costs): row buttons, settle-up rows and share toggles say what they are about to a screen reader

A screen reader lists a page's buttons together, and the costs views gave
it twenty "Edit" and "Delete" buttons with nothing to tell them apart.

- Edit and delete on an expense name the expense ("Edit: Dinner"), edit
  and undo on a payment name who paid whom, on desktop and phone.
- A settle-up row shows only initials in its avatars, its names lived in a
  tooltip; the row now carries them for assistive tech too, and its Settle
  button says who pays whom and how much.
- The search field of every searchable select (currency, time zone,
  category) was read out as "..."; it now says Search in the user's
  language.
- The public link toggles on the phone share sheet and the journey share
  toggles say whether they are on (aria-pressed), not only by colour.
- Japanese still said "you" in the settle-up lines.

Refs #2604
This commit is contained in:
Maurice
2026-10-12 15:45:56 +02:00
parent dbbbd07b1c
commit 35eba21128
14 changed files with 111 additions and 63 deletions
@@ -112,7 +112,7 @@ describe('BookingCostsSection', () => {
const user = userEvent.setup();
renderSection();
await user.click(linkSelect());
await user.type(screen.getByPlaceholderText('...'), 'snack');
await user.type(screen.getByPlaceholderText('Search'), 'snack');
expect(screen.getByRole('button', { name: /Snacks/ })).toBeInTheDocument();
expect(screen.queryByRole('button', { name: /Souvenirs/ })).not.toBeInTheDocument();
});