Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Details pane title shows node/rel caption instead #43

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

QubitPi
Copy link
Owner

@QubitPi QubitPi commented Nov 27, 2023

Changelog

Added

Changed

  • Node inspector panel is showing not-so-useful title of "Node properties/Rel properties". It's better to display the node/rel caption there, which is what is PR do

    • A natural option is to apply the caption generation logic to the pane title section of the node inspection panel; a details inspection, however, realized that this would bring some of the graphing logics into the panel logic, which violated separation of concerns

    • So there is a technical obstacle which prevents this business requirement to become a reality

    • We would need to resolve this conflict by noticing that there are 3 options here:

      1. refactoring architecture (time-consuming)
      2. reject this business requirement (I really don't want to)
      3. use some other texts for the title section.
    • The 3rd option immediately indicates some tiny refactoring hints below. We see the caption logic includes 2 parts: property selection and property rendering. The property selection can be naturally decoupled with graphing logic and be exported. Rendering the new title only requires knowing what property to display as text. **So our strategy is, to support this business requirement, separate the two logic into two methods and reuse one of the methods

      Untitled Diagram drawio

Deprecated

Removed

Fixed

Security

Checklist

  • Test
  • Self-review
  • Documentation
  • (neo4j-arc) Manually bump version

Reference

@QubitPi QubitPi merged commit cbc57e6 into master Nov 27, 2023
12 checks passed
@QubitPi QubitPi deleted the details-pane-title branch November 27, 2023 11:51
@QubitPi QubitPi changed the title Details pane title Details pane title shows node/rel caption instead Nov 27, 2023
QubitPi added a commit that referenced this pull request Nov 27, 2023
* Details pane title shows node/rel caption instead

* Add unit tests

* Add E2E tests

* Version bump

version bump
QubitPi added a commit that referenced this pull request Dec 11, 2023
* Details pane title shows node/rel caption instead

* Add unit tests

* Add E2E tests

* Version bump

version bump
QubitPi added a commit that referenced this pull request Jun 11, 2024
* Details pane title shows node/rel caption instead

* Add unit tests

* Add E2E tests

* Version bump

version bump
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.

1 participant