Skip to content

Revision History UI#1188

Merged
subdavis merged 5 commits into
mainfrom
client/revision-history
Mar 24, 2022
Merged

Revision History UI#1188
subdavis merged 5 commits into
mainfrom
client/revision-history

Conversation

@subdavis
Copy link
Copy Markdown
Contributor

@subdavis subdavis commented Feb 28, 2022

Summary of changes

  • Adds revision history contextual sidebar, and a button to open it which so far I really dislike. Feedback needed.
  • Clone or download annotations when a past revision is loaded.

Please forgive the random book cover instead of real data.

Menu open, Latest selected

Screenshot from 2022-02-28 08-22-10

Menu open, previous rev selected

Screenshot from 2022-02-28 08-22-23

Download menu

Screenshot from 2022-02-28 08-22-37

fixes #1078

@subdavis subdavis force-pushed the client/revision-history branch 2 times, most recently from 1e1e680 to f00f99a Compare March 11, 2022 20:33
@subdavis subdavis marked this pull request as ready for review March 11, 2022 20:43
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

This is really awesome and the ability to clone will be a nice stop-gap until true rollback is implemented.

Comment thread client/platform/web-girder/views/ViewerLoader.vue
Comment thread client/platform/web-girder/views/RevisionHistory.vue Outdated
Comment thread client/platform/web-girder/views/RevisionHistory.vue
Comment thread client/platform/web-girder/views/RevisionHistory.vue
Comment thread client/platform/web-girder/views/RevisionHistory.vue Outdated
Comment thread client/dive-common/store/context.ts
Comment thread client/dive-common/use/useRequest.ts Outdated
@subdavis subdavis force-pushed the client/revision-history branch from dc3d1ee to 2fdda66 Compare March 23, 2022 15:15
@subdavis subdavis requested a review from BryonLewis March 23, 2022 15:23
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Everything checks out. Only additional thing I noticed is the author link not being visible for some people. It's a relatively minor thing but if it's included as a link it should be visible/clickable for all users. I don't know whether to remove the link or place it on a new line in each list item is better?

Comment on lines +116 to +118
<router-link
:to="`/user/${revision.author_id}`"
>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor, this could be off-screen and not accessible by the user because of truncation. Should the author be on a separate left justified line to always enable getting to the user?

@subdavis subdavis requested a review from BryonLewis March 23, 2022 20:04
@subdavis
Copy link
Copy Markdown
Contributor Author

Switch to three line layout

Screenshot from 2022-03-23 16-04-16

Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Two super minor things that we may just want to create issues for in the future and don't need to be apart of this PR:

Don't know if this first one is really an issue?
Context View is saved in the state so if you were to back out to Data Browser with it open and load a new dataset it will start with the contextView open (either Confidence Pairs or Revision History). I don't think this needs to be fixed.

Selecting a revision which is higher than your load limit (20) will cause it to refresh and reset the scroll page. My fault about the loadNext() being activated on reload. I have a dataset with 40 revision, I click on revision 4 and it resets all of the data and scrolling so that it isn't highlighted in the list when the revision reloads.

@subdavis subdavis merged commit 7dc8673 into main Mar 24, 2022
@subdavis subdavis deleted the client/revision-history branch March 24, 2022 14:51
subdavis added a commit that referenced this pull request Mar 24, 2022
* Revision History

* No global checkout

* Respond to comments

* Tooltip

* Three line layout
@BryonLewis BryonLewis mentioned this pull request Mar 30, 2022
6 tasks
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.

Add new UI for access to revision history in UI

3 participants