Recently Added Chapter Feedback (#1020)

* Added an alt implementation which shows Recently Added chapters. No extra grouping is performed if multiple chapters per volume.

* Started working on a grouping implementation for series.

* Disabled the code for bookmarks cleanup as there is some critical issue in there.

* Implemented a Series Group activity stream which shows recently updated series and providers a count badge showing how many new chapters/volumes were added in that series.

* Removed the bookmark disabling code

* Cleaned up code

* One more code cleanup
This commit is contained in:
Joseph Milazzo 2022-02-02 07:18:09 -08:00 committed by GitHub
parent 0ce0ee39e0
commit 730624d364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 261 additions and 153 deletions

View file

@ -22,6 +22,10 @@
<div class="bulk-mode {{bulkSelectionService.hasSelections() ? 'always-show' : ''}}" (click)="handleSelection($event)" *ngIf="allowSelection">
<input type="checkbox" attr.aria-labelledby="{{title}}_{{entity?.id}}" [ngModel]="selected" [ngModelOptions]="{standalone: true}">
</div>
<div class="count" *ngIf="count > 1">
<span class="badge badge-primary">{{count}}</span>
</div>
</div>
<div class="card-body" *ngIf="title.length > 0 || actions.length > 0">

View file

@ -118,6 +118,12 @@ $image-width: 160px;
}
z-index: 10;
.count {
top: 5px;
right: 10px;
position: absolute;
}
}
.card-actions {

View file

@ -68,6 +68,10 @@ export class CardItemComponent implements OnInit, OnDestroy {
* This will supress the cannot read archive warning when total pages is 0
*/
@Input() supressArchiveWarning: boolean = false;
/**
* The number of updates/items within the card. If less than 2, will not be shown.
*/
@Input() count: number = 0;
/**
* Event emitted when item is clicked
*/