Skip to content

Add 'View in Source' link to property and individual detail panels #175

Description

@JohnRDOrazio

Summary

In Developer mode, the class detail panel has a "View in Source" link that scrolls to the class definition in the source editor. The property and individual detail panels lack this feature.

Current Behavior

  • ClassDetailPanel: Has a "View in Source" action that triggers setPendingScrollIri to scroll to the class IRI in the source editor
  • PropertyDetailPanel: No "View in Source" link
  • IndividualDetailPanel: No "View in Source" link

Desired Behavior

All three detail panels should offer a "View in Source" link in Developer mode that scrolls to the entity's IRI definition in the source editor.

Implementation Notes

  • The setPendingScrollIri mechanism already exists and works for any IRI in subject position
  • The source IRI index (sourceIriIndex) tracks all subjects, not just classes
  • Need to pass onViewInSource (or setPendingScrollIri) callback to PropertyDetailPanel and IndividualDetailPanel
  • Only show the link in Developer mode (when the source editor is available)

🤖 Generated with Claude Code

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXUser experience improvementsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions