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

enhance "Incoming Thing Updates" in UI to provide more information at a glance #1813

Merged
merged 1 commit into from Nov 24, 2023

Conversation

thjaeckle
Copy link
Member

  • added 2 columns "Action" (e.g. showing "merged" or "modified") and "Path" (showing on which level) to the table
  • prioritized "_context" over "features" and "attributes" to extract "Field(s)" from - only done for actions on path "/"
  • added a selection to the "Thing Update Detail" view which information to display from the selected event

@thfries again, I would appreciate your input on this :)

I noticed you swapped reading from either "_context" or features/attributes in getColumnValues() method recently.
That does not work, for newer Ditto versions both are present, so we have to first check for existence of ["_context"].value (which Ditto 3.4 provides) and can then fall-back to plain features/attributes to determining the updated "Field(s)".

This PR improves displaying "merge" and also "delete" events a lot - because "Action" and "Path" are shown in the table.

… a glance

* added 2 columns "Action" (e.g. showing "merged" or "modified") and "Path" (showing on which level) to the table
* prioritized "_context" over "features" and "attributes" to extract "Field(s)" from - only done for actions on path "/"
* added a selection to the "Thing Update Detail" view which information to display from the selected event

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle thjaeckle added the UI Issues related to the Ditto explorer UI label Nov 22, 2023
@thjaeckle thjaeckle added this to the 3.5.0 milestone Nov 22, 2023
@thjaeckle thjaeckle self-assigned this Nov 22, 2023
@thfries
Copy link
Contributor

thfries commented Nov 24, 2023

Works like a charm. Nice!
Happy to see that "growing".
We may show that tab uncollapsed per default?

LGTM

@thjaeckle
Copy link
Member Author

I think it is OK to be collapsed by default, as on new events there will be the indicator next to the heading of the section that there is something happening there.

@thjaeckle thjaeckle merged commit a91a6f7 into master Nov 24, 2023
3 checks passed
@thjaeckle thjaeckle deleted the feature/enhance-incoming-thing-updates branch November 24, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Issues related to the Ditto explorer UI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants