Implement sorting and display of file size in the table view

* Display the file size in the Book Metadata details section
* Implement sorting and display of file size in the table view
* Implement AppMigration feature
* Populate missing file sizes for books with null file size in 'populateFileSizes' migration
* Implement sorting and display of file size in the table view

---------

Co-authored-by: adityachandelgit
This commit is contained in:
Aditya Chandel
2025-04-25 13:56:38 -06:00
committed by GitHub
co-authored by adityachandelgit
parent 2df8e193cc
commit d855acd426
4 changed files with 14 additions and 1 deletions
@@ -117,6 +117,7 @@ export class BookBrowserComponent implements OnInit, AfterViewInit {
{label: 'Author', icon: '', field: 'author', command: () => this.sortBooks('author')},
{label: 'Last Read', field: 'lastReadTime', command: () => this.sortBooks('lastReadTime')},
{label: 'Added On', field: 'addedOn', command: () => this.sortBooks('addedOn')},
{label: 'File Size', icon: '', field: 'fileSizeKb', command: () => this.sortBooks('fileSizeKb')},
{label: 'Locked', icon: '', field: 'locked', command: () => this.sortBooks('locked')},
{label: 'Publisher', icon: '', field: 'publisher', command: () => this.sortBooks('publisher')},
{label: 'Published Date', icon: '', field: 'publishedDate', command: () => this.sortBooks('publishedDate')},