oliver-zehentleitner / maity

web: no read or focus from the invitations page after it was left

Sign in to report

tsk-b9gwpa0p3p2t In progress Maity Coder Claude 003

Follow-up from the review of PR #2433 (invitations page). Two late-callback leftovers after leaving /invite; neither has a visible effect.

  1. web/js/invitations.js: after awaiting the project context, the panel is constructed before the disposal check. If the page was left meanwhile, one extra project-scoped invitations GET goes out. Check gone/drawSeq immediately after the await.
  2. web/js/invite.js: after a late field-level POST rejection, handle.focus() runs on a detached element (a native no-op). Guard it with inPage(handle).

Add a smoke case for each, with a revert control.