MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
18 stars 5 forks source link

Improve data display on document list items #834

Open allanlasser opened 1 week ago

allanlasser commented 1 week ago

Feedback from @morisy:

Metadata for documents is not shown in the search view: https://next.www.documentcloud.org/projects/209284-crest/

Feedback from @morisy:

Clicking a project "tag" takes you to the document, not the tag. Expected behavior (and current behavior) is clicking a tag, metadata, etc. takes you to that appropriate search https://imgur.com/a/sUnW7kD


To address both of these issues, we can enhance DocumentListItem.svelte in the following ways:

  1. List a limited number of tags and data on list items. If the number exceeds a threshold, we can present all of the data in a disclosure.
  2. Make all metadata link to a search query. This will require removing the link from the list item's row, moving the link onto the thumbnail and title instead.