From 44d7ddb0686494a659a3f681d620765b81d29f13 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 11 Apr 2025 17:58:23 +0200 Subject: frontend: Use more consistent sorting for SortLabels We're deciding against alphabetical sorting here because the labels do make up logical groups. Generic metadata is at the top, then any date information, and then lastly any association counts. --- frontend/src/lib/Enums.ts | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/frontend/src/lib/Enums.ts b/frontend/src/lib/Enums.ts index 292ed7d..c557cfa 100644 --- a/frontend/src/lib/Enums.ts +++ b/frontend/src/lib/Enums.ts @@ -62,8 +62,8 @@ export const ArchiveSortLabel: Record = { [ArchiveSort.Path]: 'Path', [ArchiveSort.Size]: 'File Size', [ArchiveSort.CreatedAt]: 'Created At', - [ArchiveSort.PageCount]: 'Page Count', - [ArchiveSort.Random]: 'Random' + [ArchiveSort.Random]: 'Random', + [ArchiveSort.PageCount]: '# Pages' }; export const ComicSortLabel: Record = { @@ -72,37 +72,37 @@ export const ComicSortLabel: Record = { [ComicSort.Date]: 'Date', [ComicSort.CreatedAt]: 'Created At', [ComicSort.UpdatedAt]: 'Updated At', - [ComicSort.TagCount]: 'Tag Count', - [ComicSort.ArtistCount]: 'Artist Count', - [ComicSort.CharacterCount]: 'Character Count', - [ComicSort.CircleCount]: 'Circle Count', - [ComicSort.WorldCount]: 'World Count', - [ComicSort.PageCount]: 'Page Count', - [ComicSort.Random]: 'Random' + [ComicSort.Random]: 'Random', + [ComicSort.ArtistCount]: '# Artists', + [ComicSort.CharacterCount]: '# Characters', + [ComicSort.CircleCount]: '# Circles', + [ComicSort.PageCount]: '# Pages', + [ComicSort.TagCount]: '# Tags', + [ComicSort.WorldCount]: '# Worlds' }; export const ArtistSortLabel: Record = { [ArtistSort.Name]: 'Name', [ArtistSort.CreatedAt]: 'Created At', [ArtistSort.UpdatedAt]: 'Updated At', - [ArtistSort.ComicCount]: 'Comic Count', - [ArtistSort.Random]: 'Random' + [ArtistSort.Random]: 'Random', + [ArtistSort.ComicCount]: '# Count' }; export const CharacterSortLabel: Record = { [CharacterSort.Name]: 'Name', [CharacterSort.CreatedAt]: 'Created At', [CharacterSort.UpdatedAt]: 'Updated At', - [CharacterSort.ComicCount]: 'Comic Count', - [CharacterSort.Random]: 'Random' + [CharacterSort.Random]: 'Random', + [CharacterSort.ComicCount]: '# Comics' }; export const CircleSortLabel: Record = { [CircleSort.Name]: 'Name', [CircleSort.CreatedAt]: 'Created At', [CircleSort.UpdatedAt]: 'Updated At', - [CircleSort.ComicCount]: 'Comic Count', - [CircleSort.Random]: 'Random' + [CircleSort.Random]: 'Random', + [CircleSort.ComicCount]: '# Comics' }; export const NamespaceSortLabel: Record = { @@ -110,25 +110,25 @@ export const NamespaceSortLabel: Record = { [NamespaceSort.SortName]: 'Sort Name', [NamespaceSort.CreatedAt]: 'Created At', [NamespaceSort.UpdatedAt]: 'Updated At', - [NamespaceSort.TagCount]: 'Tag Count', - [NamespaceSort.Random]: 'Random' + [NamespaceSort.Random]: 'Random', + [NamespaceSort.TagCount]: '# Tags' }; export const TagSortLabel: Record = { [TagSort.Name]: 'Name', [TagSort.CreatedAt]: 'Created At', - [TagSort.ComicCount]: 'Comic Count', - [TagSort.NamespaceCount]: 'Namespace Count', [TagSort.UpdatedAt]: 'Updated At', - [TagSort.Random]: 'Random' + [TagSort.Random]: 'Random', + [TagSort.ComicCount]: '# Comics', + [TagSort.NamespaceCount]: '# Namespaces' }; export const WorldSortLabel: Record = { [WorldSort.Name]: 'Name', [WorldSort.CreatedAt]: 'Created At', [WorldSort.UpdatedAt]: 'Updated At', - [WorldSort.ComicCount]: 'Comic Count', - [WorldSort.Random]: 'Random' + [WorldSort.Random]: 'Random', + [WorldSort.ComicCount]: '# Comics' }; export const UpdateModeLabel: Record = { -- cgit v1.2.3-2-gb3c3