Skip to content

Remove history table from book and author pages#12092

Merged
mekarpeles merged 4 commits intointernetarchive:masterfrom
jimchamp:history-table
Mar 18, 2026
Merged

Remove history table from book and author pages#12092
mekarpeles merged 4 commits intointernetarchive:masterfrom
jimchamp:history-table

Conversation

@jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Mar 13, 2026

Closes #12074
Closes #12082

Removes history table from work, edition, and author pages. Historical edits on these records can be seen by clicking the "History" link that is found next to the "Edit" button.

The direct links to .json and .rdf records are a part of the history table template, and will also no longer be rendered on these pages. As of writing, there are about 440K .rdf requests in our nginx access logs.

Technical

The author page's styling breaks horribly without the .clearfix div, which is a part of the history table template.

image

To prevent this, the author page history table has been replaced by a .clearfix div.

Testing

Screenshot

Stakeholders

image

Author page -- short list of authored books.

image

Book page.

Copilot AI review requested due to automatic review settings March 13, 2026 18:07
@github-actions github-actions bot added the Priority: 2 Important, as time permits. [managed] label Mar 13, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the inline “History” preview table from edition and author pages so users rely on the existing “History” link in the page databar, reducing render cost and eliminating the .json/.rdf direct-link section that was part of the history template.

Changes:

  • Removed lib/history rendering (and its profiling timer) from the edition page template.
  • Removed lib/history rendering from the author page template and added a standalone .clearfix to preserve layout.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
openlibrary/templates/type/edition/view.html Drops History table render block and associated timing measurement from edition view.
openlibrary/templates/type/author/view.html Replaces History table render with a .clearfix div to prevent layout breakage.

You can also share your feedback on Copilot code review. Take the survey.

@tfmorris
Copy link
Contributor

Why not just edit the history table template to remove the unwanted information and leave the rest, perhaps renaming it more appropriately if you're ambitious? In addition to RDF & JSON, some pages also have OPDS and Wikipedia citation links.
Screenshot 2026-03-13 at 17 27 12

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Mar 14, 2026
@mekarpeles
Copy link
Member

I do agree with @tfmorris that https://github.com/internetarchive/openlibrary/blob/606ba88a13f96de264d250de16b9b616f5908493/openlibrary/templates/lib/history.html#L30C1-L64C23 (i.e. export options which doesn't even seem related to history) likely deserves to remain on the page; maybe we can move it into its own sub template.

@mekarpeles mekarpeles added Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] and removed Needs: Response Issues which require feedback from lead labels Mar 15, 2026
@github-actions github-actions bot removed the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Mar 18, 2026
@mekarpeles mekarpeles merged commit fcfb7b5 into internetarchive:master Mar 18, 2026
3 checks passed
mekarpeles added a commit that referenced this pull request Mar 20, 2026
* Remove history table from book and author pages
* split page exports and history modules

---------

Co-authored-by: Mek <michael.karpeles@gmail.com>
@jimchamp jimchamp deleted the history-table branch March 20, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 2 Important, as time permits. [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move history section on books and author pages to load async when in view. @jimchamp Remove History table previews from book pages

4 participants