hash icon indicating copy to clipboard operation
hash copied to clipboard

H-2774: Show type and draft status change in entity history tab

Open CiaranMn opened this issue 8 months ago β€’ 1 comments

🌟 What is the purpose of this PR?

In the history section of the entity editor, show rows for when:

  1. A type is added, removed or upgraded on the entity
  2. Draft status is changed from false to true or from true to false

Also fixes a couple of bugs related to ApolloClient state now being immutable (as it should be, but has caused errors to be thrown where we do mutate it).

Pre-Merge Checklist πŸš€

🚒 Has this modified a publishable library?

This PR:

  • [x] does not modify any publishable blocks or libraries, or modifications do not need publishing

πŸ“œ Does this require a change to the docs?

The changes in this PR:

  • [x] are internal and do not require a docs change

πŸ•ΈοΈ Does this require a change to the Turbo Graph?

The changes in this PR:

  • [x] do not affect the execution graph

⚠️ Known issues

The history do not filter out drafts which may be irrelevant to the history being viewed, either because they are new drafts of a live entity being viewed which shouldn't be in its own history, or because multiple drafts in the past were created and only one was selected to be turned into the live entity – to be addressed in H-3030, H-3031.

❓ How to test this?

  1. Make relevant changes, look at the history

πŸ“Ή Demo

https://github.com/hashintel/hash/assets/37743469/560c8114-861d-435a-ab30-d674a2aa706b

CiaranMn avatar Jun 28 '24 12:06 CiaranMn