Skip to content

fix: open links in view mode#2350

Open
VladaHarbour wants to merge 4 commits intomainfrom
sd-2089_view-mode-link
Open

fix: open links in view mode#2350
VladaHarbour wants to merge 4 commits intomainfrom
sd-2089_view-mode-link

Conversation

@VladaHarbour
Copy link
Contributor

Open link in new tab in View mode instead of opening edit link modal.

@linear
Copy link

linear bot commented Mar 10, 2026

Copy link
Contributor

@artem-harbour artem-harbour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VladaHarbour VladaHarbour force-pushed the sd-2089_view-mode-link branch from 899f068 to eb69f3e Compare March 10, 2026 15:37
Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladaHarbour clean approach, and the behavior test rewrite is a nice improvement.

one thing to fix: goToAnchor is called on an object that doesn't have it, so anchor links won't work in production. the test hides this.

also a question about whether skipping linkPopoverResolver in viewing mode is intentional. not blocking.

one small cleanup suggestion on the rel parsing. tests look good.

left inline comments.

@VladaHarbour VladaHarbour force-pushed the sd-2089_view-mode-link branch from eb69f3e to d5cc8e6 Compare March 11, 2026 17:22
@VladaHarbour
Copy link
Contributor Author

Hi @caio-pizzol! Could you please check linkPopoverResolver related comment? Didn't add any fixes for this so far but everything else was addressed

Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladaHarbour goToAnchor fix and rel cleanup look good. you're right about the resolver — direct navigation is the right call for viewing mode.

one thing: navigateToAnchor scrolls twice per click — left a suggestion. also a small cleanup on _presentationEditor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants