Skip to content

Conversation

@jr-rk
Copy link

@jr-rk jr-rk commented Sep 18, 2025

  • Added new feature for downloads of item's bitstreams

  • Fixed Copilot's suggestions: any type & redundant property access pattern

Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 0 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

Cherrypick our new feature for displaying the Total Downloads of each item's bitstreams (sum of bitstreams download)

* Added new feature for downloads of item's bitstreams

* Fixed Copilot's suggestions: any type & redundant property access pattern
@jr-rk jr-rk self-assigned this Sep 18, 2025
@jr-rk jr-rk requested a review from Copilot September 18, 2025 15:41
Copy link

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

This PR adds a new feature to display the total downloads count for each item by aggregating download statistics from all its bitstreams. The feature includes a dedicated component with proper internationalization support and integrates with the existing usage reporting system.

  • Added TotalDownloadsComponent to fetch and display aggregated download statistics
  • Implemented internationalization support for download labels in English and Czech
  • Updated usage report model to support flexible value properties

Reviewed Changes

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

Show a summary per file
File Description
src/assets/i18n/en.json5 Added English translation for downloads label
src/assets/i18n/cs.json5 Added Czech translation for downloads label
src/app/item-page/simple/field-components/file-section/total-downloads.component.ts Main component logic for fetching and calculating total downloads
src/app/item-page/simple/field-components/file-section/total-downloads.component.html Component template for displaying download count
src/app/item-page/item-page.module.ts Module registration and service provider configuration
src/app/core/statistics/models/usage-report.model.ts Updated model to support flexible value properties

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

* Implemented configurable showing of component
@jr-rk jr-rk requested a review from milanmajchrak September 18, 2025 15:51
@jr-rk jr-rk linked an issue Sep 22, 2025 that may be closed by this pull request
Copy link
Collaborator

@milanmajchrak milanmajchrak left a comment

Choose a reason for hiding this comment

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

Copilot

@milanmajchrak milanmajchrak merged commit ea6ab24 into dtq-dev Nov 7, 2025
5 checks passed
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.

UFAL/Cherrypick item view Total Downloads feature

4 participants