Skip to content

Fix action buttons in viewer#35

Merged
rganchev merged 2 commits intomainfrom
viewer-action-buttons
Jan 7, 2026
Merged

Fix action buttons in viewer#35
rganchev merged 2 commits intomainfrom
viewer-action-buttons

Conversation

@rganchev
Copy link
Contributor

  • Disambiguate "internal" vs "external" link buttons during creation.
  • "Internal link" action buttons now contain only the query string portion of the URL. This way internal links don't depend on the domain of the application, i.e. tapestries can be exported/imported across different domains.
  • Removed the "broken link" icon that was displayed for action buttons without an action. Added a badge instead, to attract the user's attention.
  • Fixed some styles in the viewer, specifically the scene cursor updates (they were not applied, because the scene-cursor class was not defined in the viewer).

Sachanski
Sachanski previously approved these changes Dec 19, 2025
Copy link
Collaborator

@Sachanski Sachanski left a comment

Choose a reason for hiding this comment

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

No changes needed on the backend when importing, right?

setShowModal(false)
dispatch(updateItem(dto.id, { dto: { action } }))
const actionType = determineActionType(url, tapestryPath, tapestryId)
const action = extractAction(url, actionType)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't mind the separate functions, but it seems they can be a single function seeing how the output from the first is fed as an input to the second, but as I already said - keeping them separate is perfectly fine as well, more flexible even.

interactiveElement?.modelId !== pointerInteraction.target.modelId

if (isHoveringInactiveElement) {
cursor = 'pointer'
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this is where that one went...

@rganchev rganchev merged commit 8ff7cf8 into main Jan 7, 2026
1 check passed
@rganchev rganchev deleted the viewer-action-buttons branch January 7, 2026 10:47
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.

2 participants