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

Next/previous navigation in history view #5723

Open
davisagli opened this issue Jan 31, 2024 · 10 comments
Open

Next/previous navigation in history view #5723

davisagli opened this issue Jan 31, 2024 · 10 comments

Comments

@davisagli
Copy link
Sponsor Member

davisagli commented Jan 31, 2024

It would be nice to have next/previous buttons to jump between revisions in the history view.

Also document how to reach the history view.

@AnshulKahar2729
Copy link
Member

Can you add the screenshot of it? Which history?

@glenmiracle18
Copy link

How do you want to implement this?

@sammyifelse
Copy link

hey @davisagli can you please elaborate about your issue and where you want the buttons

@stevepiercy
Copy link
Collaborator

@davisagli I edited your issue description. Evidently newcomers don't know how to reach the history view or read the Volto Release Notes for v16.0.0, and I had to scan the code to find it.

Even then, it appears on the Plone demo's history view for a given page does not do much, other than display a table of publication history. I can't view a diff or any details of what actually changed. I think that hidden detail history view is what you want to have next/previous on, correct?

Screenshot 2024-03-18 at 3 33 55 PM

@davisagli
Copy link
Sponsor Member Author

@stevepiercy There's a ... menu for each revision, off screen to the right in your screenshot, which lets you view the diff. Yeah, that's where it'd be handy to have an easier way to go forward/back without returning to the listing.

@stevepiercy
Copy link
Collaborator

@davisagli I don't see the stoplight icon anywhere. Does a site setting need to be enabled?

Screenshot 2024-03-18 at 4 21 19 PM

Sample HTML from a typical row in the table:

<tr class="">
    <td class=""><span></span></td>
    <td class=""><span>Create (undefined → Private)</span></td>
    <td class="">admin</td>
    <td class=""><time datetime="2023-07-06T21:35:21+00:00" title="Thursday, July 6, 2023 at 2:35 PM">7/6/2023</time></td>
    <td class=""></td>
    <td class=""></td>
</tr>

@davisagli
Copy link
Sponsor Member Author

davisagli commented Mar 18, 2024 via email

@stevepiercy
Copy link
Collaborator

I added a text block. It does not show up in the history. Is that a "CMFEditions revision"?

Screenshot 2024-03-18 at 4 44 47 PM

Screenshot 2024-03-18 at 4 45 58 PM

@davisagli
Copy link
Sponsor Member Author

@stevepiercy Those are all workflow transitions. I don't think you have versioning enabled for this content type.

As far as I know, the control panel to enable versioning for a content type is only available in the Classic UI so far. And I don't know if there is a way to access the Classic UI for demo.plone.org

Anyway, this is a really low priority feature suggestion and I'm not going to spend more time on it now.

@stevepiercy
Copy link
Collaborator

Understood. At least now there is sufficient information in this issue so that a first-timer can pick it up and run with it. They'll need to install Plone and visit the backend to enable the history view for each content type, if it is not enabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

5 participants