summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2025-04-11 17:58:23 +0200
committerWolfgang Müller2025-04-11 17:58:23 +0200
commit44d7ddb0686494a659a3f681d620765b81d29f13 (patch)
tree6c3ad8d10ef97fc4d90a64c4a3a6dec6c02ff0fb
parent9b08134370c3f218d7d0a2ae001943f13095dbc8 (diff)
downloadhircine-next.tar.gz
frontend: Use more consistent sorting for SortLabelsnext
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.
-rw-r--r--frontend/src/lib/Enums.ts44
1 files 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, string> = {
[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<ComicSort, string> = {
@@ -72,37 +72,37 @@ export const ComicSortLabel: Record<ComicSort, string> = {
[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, string> = {
[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, string> = {
[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, string> = {
[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<NamespaceSort, string> = {
@@ -110,25 +110,25 @@ export const NamespaceSortLabel: Record<NamespaceSort, string> = {
[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, string> = {
[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, string> = {
[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<UpdateMode, string> = {