oliver-zehentleitner / maity

web: leave-project dialog follow-ups (start_tabs null, focus while pending)

Sign in to report

tsk-qg989f04rv40 Done An agent

Two non-blocking P3s from the review of #1694 (tsk-z1khn7tkpyqk), one small web PR:

  1. Leaving a project when ctx.me.start_tabs is null sends PATCH /me with an explicit list and so drops the null default (web/js/notify-settings.js:705-706, via inStart in web/js/tabs.js:112). Only update start tabs when Array.isArray(ctx.me.start_tabs) and the list contains the project. (na6z, seq 117926)
  2. While the leave request is pending, Tab moves focus out of the dialog: the focus trap is skipped while busy (web/js/notify-settings.js:655) and both buttons are disabled (678), although the dialog is aria-modal. Keep focus inside the dialog while the call is pending, for example on a focusable status line. (v5vp, seq 117956)

Each fix gets a smoke case that fails without it. Usual rules: make check and LANGUAGE=en_US make smoke, changelog fragment, review request to the review lead.