diff --git a/internal/handlers/auth.go b/internal/handlers/auth.go index c7ee9c1..023caf6 100644 --- a/internal/handlers/auth.go +++ b/internal/handlers/auth.go @@ -989,10 +989,10 @@ func (h *AuthHandler) CreateDefaultCollectionsForUser(ctx context.Context, userI QueryType string Priority int32 }{ - {"continue-reading", "Books you're currently reading (0 < progress < 1)", "📖", "#7aa2f7", "continue-reading", 1}, - {"recently-added", "Newly added items to this library", "🆕", "#9ece6a", "recently-added", 2}, - {"recently-read", "Books you've finished (progress >= 1)", "✅", "#e0af68", "recently-read", 3}, - {"not-started", "Books you haven't read yet (progress = 0 or no record)", "📕", "#f7768e", "not-started", 4}, + {"Continue Reading", "Books you're currently reading (0 < progress < 1)", "📖", "#7aa2f7", "continue-reading", 1}, + {"Recently Added", "Newly added items to this library", "🆕", "#9ece6a", "recently-added", 2}, + {"Recently Read", "Books you've finished (progress >= 1)", "✅", "#e0af68", "recently-read", 3}, + {"Not Started", "Books you haven't read yet (progress = 0 or no record)", "📕", "#f7768e", "not-started", 4}, } for _, col := range defaultCollections { diff --git a/internal/handlers/dashboard.go b/internal/handlers/dashboard.go index 1de1d5b..8f0c244 100644 --- a/internal/handlers/dashboard.go +++ b/internal/handlers/dashboard.go @@ -129,10 +129,10 @@ func (h *DashboardHandler) RestoreSystemCollection(c *echo.Context) error { } validCollections := map[string]bool{ - "continue-reading": true, - "recently-added": true, - "recently-read": true, - "not-started": true, + "Continue Reading": true, + "Recently Added": true, + "Recently Read": true, + "Not Started": true, } if !validCollections[req.CollectionName] { return c.JSON(http.StatusBadRequest, map[string]string{"error": "Invalid system collection name"}) diff --git a/internal/services/dashboard_service.go b/internal/services/dashboard_service.go index 0579297..586d635 100644 --- a/internal/services/dashboard_service.go +++ b/internal/services/dashboard_service.go @@ -405,10 +405,10 @@ func (s *DashboardService) RestoreSystemCollection(ctx context.Context, userID u Priority int32 QueryType string }{ - "continue-reading": {"Books you're currently reading (0 < progress < 1)", "📖", "#7aa2f7", 1, "continue-reading"}, - "recently-added": {"Newly added items to this library", "🆕", "#9ece6a", 2, "recently-added"}, - "recently-read": {"Books you've finished (progress >= 1)", "✅", "#e0af68", 3, "recently-read"}, - "not-started": {"Books you haven't read yet (progress = 0 or no record)", "📕", "#f7768e", 4, "not-started"}, + "Continue Reading": {"Books you're currently reading (0 < progress < 1)", "📖", "#7aa2f7", 1, "continue-reading"}, + "Recently Added": {"Newly added items to this library", "🆕", "#9ece6a", 2, "recently-added"}, + "Recently Read": {"Books you've finished (progress >= 1)", "✅", "#e0af68", 3, "recently-read"}, + "Not Started": {"Books you haven't read yet (progress = 0 or no record)", "📕", "#f7768e", 4, "not-started"}, } meta, exists := defaultMetadata[collectionName] diff --git a/templates/restore_system_collection_modal.templ b/templates/restore_system_collection_modal.templ index 32810fb..a65cada 100644 --- a/templates/restore_system_collection_modal.templ +++ b/templates/restore_system_collection_modal.templ @@ -15,10 +15,10 @@ templ RestoreSystemCollectionModal() { >
Select a system collection to restore:
Select a system collection to restore: