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

Footnotes usability issues and fixes #75

Open
willbarton opened this issue Sep 24, 2024 · 4 comments
Open

Footnotes usability issues and fixes #75

willbarton opened this issue Sep 24, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@willbarton
Copy link
Contributor

We've been using wagtail-footnotes at CFPB for a few months now, and it's so much better than our previous approach of... just maintaining footnotes as content. But our content editors have encountered a few usability issues that we'd like to solve, and I'd like to get some guidance on the ways forward, and changes that you all might be willing to accept.

TLDR: We've identified the following UX issues with footnotes and would like to fix them, and have those fixes accepted:

  • Footnotes don't preserve insert-order and so the ordering can change on saving drafts. I have a PR open to make Footnote objects Orderable: Make footnotes orderable #74
  • Wagtail InlinePanel numeration creates additional confusion by adding an index to Footnote objects listed on the edit page that can change with the above issue, and that has no bearing on the footnote's rendered/citation index. I don't really think there's a fix for this.
  • Visually scanning for a specific footnote to insert into content in the footnote modal is difficult on pages with a large number of footnotes. We have a rough fix in this branch in our fork, but while it meets our needs, I'm not sure if it meets the needs of other wagtail-footnotes users, or if there might be a different preferred approach.

To set the scene, we have some reports that are published as web pages, written by our researchers, that include a fair number of footnotes:
https://www.consumerfinance.gov/data-research/research-reports/issue-spotlight-medical-billing-and-collections-among-older-americans/

The first issue is that Footnote doesn't define any specific ordering, and so when a content editor adds a bunch of footnotes, and then saves a draft, the footnotes appear to move around on the page.

Combine that with the second issue, which is an unfortunate side-effect of Wagtail InlinePanel prefix indexing where each child panel gets an index added. These two issues together makes it appear as though footnotes are changing order.

The index is... particularly unfortunate when it comes to footnotes/endnotes, where numeration is contextually important. I don't think this is easily addressable given that the indexing is hard-coded in InlinePanel.BoundPanel.

Our proposed fix in #74 to make Footnote model inherit from Orderable ensures that the ordering on the edit page is at least always a content editor's choice.

Continuing to look at that same page, we have footnotes like these:

Pasted image 20240924082444

When selecting a footnote in the Footnotes modal in content, it can be difficult for content editors to visually scan for the correct footnote, given the nearly identical content. The most readily available visual cue is the UUID, which is... not human-friendly as a mental map between this list and the list at the bottom of the edit page.

Pasted image 20240924084006

A possibility we've been testing is to pull out the inline panel index from the footnotes list at the bottom and add it to the modal, so that there's at least a quick, easy visual cue that maps from that listing to the modal. The code for this is in this branch in our fork (FWIW, that branch is based on the Orderable PR branch).

Pasted image 20240924084749

This has its own problem of re-using (and this, re-emphasizing) an index that has no bearing on the reflect the rendered footnote index, but at least it's not adding another one?

My question for this problem is: is this the sort of change that would be accepted? Are there alternative approaches you all might prefer?

We have a fair number of pages like the example above (many of our recently published reports are now using wagtail-footnotes), and wagtail-footnotes has made creating and maintaining these so much better for our content editors. We're happy to do contribute back the work to address the issues we're finding, but I suspect we're on the extreme end of users with our reports pages and their footnotes.

@zerolab
Copy link
Member

zerolab commented Sep 24, 2024

@willbarton thank for raising this. Will need a few days to get to it, and I've also asked for some UX/UI guidance from the team.

@willbarton
Copy link
Contributor Author

@zerolab any thoughts on #74 or updates on this issue? We can proceed by using our fork with the changes I described, but I'd prefer not to diverge too far if wagtail-footnotes takes a different path.

@zerolab
Copy link
Member

zerolab commented Oct 18, 2024

@willbarton it is on my list for this afternoon to look at

@thibaudcolas
Copy link
Member

I got to look into the UX of the footnotes package, and have simple ways to improve it proposed here: #78. I think those changes would help quite a bit, not sure if they’d fully fix the issues discussed here.

@thibaudcolas thibaudcolas added the enhancement New feature or request label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants