Add dashboard redesign, custom section builder, and enhanced search functionality
Features: - Complete dashboard redesign with improved UI components and layout - Implement custom section builder for personalized book organization - Add new events tracking system for user interactions - Enhance search functionality with better static search.js - Update TypeScript type definitions for API responses Backend: - Update Go dependencies in go.mod - Add new frontend routes in router Templates: - Update admin and dashboard templates with new components Frontend: - Refactor analytics, collections, conflicts, and queue modules - Add new documentation features in docs.ts - Implement linking between books and collections - Add toast notifications for user feedback - Include placeholder book SVG asset This commit consolidates multiple feature additions and improvements across the entire stack including backend, templates, and frontend.
This commit is contained in:
@@ -139,12 +139,16 @@ func registerFrontendRoutes(cfg *Config) {
|
||||
|
||||
prefs, _ := cfg.DashboardService.GetDashboardPreferences(c.Request().Context(), userUUID, libUUID)
|
||||
|
||||
limit := 20
|
||||
if prefs.ItemsPerSection.Int32 > 0 {
|
||||
limit = int(prefs.ItemsPerSection.Int32)
|
||||
}
|
||||
var sections []services.DashboardSection
|
||||
sections, err = cfg.DashboardService.GetDashboardSections(
|
||||
c.Request().Context(),
|
||||
userUUID,
|
||||
libUUID,
|
||||
int(prefs.ItemsPerSection.Int32),
|
||||
limit,
|
||||
prefs.CollectionOrder,
|
||||
prefs.HiddenCollections,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user