noCV
CMODAL-104 · Handle nested interactions

Return focus when a portal dialog trigger disappears

Practice briefBugAdvanced

After deleting a row through its dialog, the original trigger no longer exists. Provide a surviving fallback target.

Focused work estimate
2h 45m + prerequisites
Priority in the scenario
High
Engineering practice
Focus management · DOM

Estimated field mix

  • Accessibility70%
  • Frontend30%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

Fictional membership portal Juniper manages synthetic team settings. Use locally owned components and a local settings adapter.

Setup prerequisites

  • Create synthetic settings forms and destructive-action stubs.
  • Provide delayed success, rejection and removed-trigger cases.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Existing trigger regains focus
  • Deleted trigger uses nearest contextual control
  • Failure keeps focus inside dialog

Implementation constraints

  • Resolve fallback after committed row removal.

Verification to include

  • Save without deleting trigger
  • Delete the trigger's row

Deliverables

  • Focus-return resolver and cases

Rollout and recovery

Keep an action-result placeholder if no valid target exists.

Value of the work

For the engineer: Practice focus containment, dismissal and asynchronous feedback.

For the team: Inspect whether shared UI primitives protect users across many product flows.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.