Skip to content

fix: profile dialog selector for March 2026 UI update#575

Merged
sigvardt merged 1 commit intomainfrom
ai/issue-563-bug-profile-section-editor-dialog-selector-timeout
Mar 17, 2026
Merged

fix: profile dialog selector for March 2026 UI update#575
sigvardt merged 1 commit intomainfrom
ai/issue-563-bug-profile-section-editor-dialog-selector-timeout

Conversation

@sigvardt
Copy link
Owner

Summary

Resolves #563

This PR fixes an issue where the PROFILE_DIALOG_ROOT_SELECTOR timed out when attempting to edit profile sections. LinkedIn's March 2026 UI update changed the rendering of modal dialogs from <dialog> tags (with open attribute) back to .artdeco-modal elements or zero-height container structures, making the specific .last().waitFor({ state: "visible" }) fail as it picked a hidden remnant <dialog> shell.

Changes

  • Broadened PROFILE_DIALOG_ROOT_SELECTOR to match both standard <dialog> elements and div.artdeco-modal.
  • Consolidated resolveLatestVisibleDialogOrOverlay into resolveLatestVisibleDialog as they now share the same robust backward-loop visibility check on the unified selector.
  • Removed hardcoded fallback arrays that checked strictly for dialog[open], [role='dialog'] to rely on the shared selector source of truth.

Closes #563

- Replaces PROFILE_DIALOG_ROOT_SELECTOR with a broader definition that includes .artdeco-modal and .artdeco-modal-overlay--is-top-layer .artdeco-modal.
- Consolidates resolveLatestVisibleDialogOrOverlay and resolveLatestVisibleDialog to ensure we catch CSS-based modal rendering changes without regressions.
- Fixes the timeout issue caused when a visible modal is no longer a <dialog> element but an .artdeco-modal container.
@sigvardt sigvardt enabled auto-merge (squash) March 17, 2026 19:20
@sigvardt sigvardt merged commit 210175b into main Mar 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Profile section editor dialog selector timeout — LinkedIn March 2026 UI update

1 participant