From 5faf562250bdd5ca42381acc3eb557b582c198ba Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 11 Mar 2026 11:04:53 -0400 Subject: [PATCH] Fix Path A: Resolve function mismatches and missing functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed template function call mismatches: - conflicts.templ: Renamed showConflictModal→showResolveModal, hideConflictModal→hideResolveModal, handleResolveConflict→handleResolveSubmit - collections.templ: Fixed case mismatch addSelectedBooks→addbooksToAdd - queue.templ: Removed dead /static/queue.js reference - progress.templ: Removed vestigial x-data="progress" attribute Added missing queue functions: - showQueueItemModal() - Shows queue item detail modal - hideQueueItemModal() - Hides queue item modal - filterQueue() - Filters queue by status (stubbed) Fixed build errors: - main.ts: Removed imports for deleted themeDropdown.ts and woodPaneling.ts files All fixes are minimal and conservative. No breaking changes to existing functionality. TypeScript builds successfully (168KB main.js). Templates regenerate successfully. --- templates/api_explorer_templ.go | 4 ++-- templates/bookshelf_templ.go | 4 ++-- templates/collections.templ | 2 +- templates/collections_templ.go | 12 ++++++------ templates/conflicts.templ | 8 ++++---- templates/conflicts_templ.go | 4 ++-- templates/header_templ.go | 2 +- templates/index_templ.go | 2 +- templates/login_templ.go | 2 +- templates/progress.templ | 2 +- templates/progress_templ.go | 2 +- templates/queue.templ | 1 - templates/queue_templ.go | 2 +- web/src/main.ts | 2 -- web/src/queue.ts | 30 ++++++++++++++++++++++++++++++ 15 files changed, 53 insertions(+), 26 deletions(-) diff --git a/templates/api_explorer_templ.go b/templates/api_explorer_templ.go index fd45a96..0e60336 100644 --- a/templates/api_explorer_templ.go +++ b/templates/api_explorer_templ.go @@ -96,12 +96,12 @@ func APIExplorer(explorer APIExplorerData) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } else { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "

Loading your library...

📚

No Books Yet

Select a library to view your collection

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/collections.templ b/templates/collections.templ index b7534f8..dc9f35a 100644 --- a/templates/collections.templ +++ b/templates/collections.templ @@ -252,7 +252,7 @@ templ CollectionDetail(user User, collection CollectionData, books []handlers.Bo - diff --git a/templates/collections_templ.go b/templates/collections_templ.go index 2cb3ebd..d6d3e1f 100644 --- a/templates/collections_templ.go +++ b/templates/collections_templ.go @@ -50,14 +50,14 @@ func Collection(user User, collections []CollectionData, errorMessage string) te } } for _, col := range collections { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -243,7 +243,7 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "

Books in this Collection

0 selected
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "

Books in this Collection

0 selected
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -318,12 +318,12 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "

Add Books to Collection

Search and select books to add to this collection.

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "

Add Books to Collection

Search and select books to add to this collection.

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/conflicts.templ b/templates/conflicts.templ index c9284b7..0092ca3 100644 --- a/templates/conflicts.templ +++ b/templates/conflicts.templ @@ -107,7 +107,7 @@ templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total in

Type: { conflict.ConflictType }

- @@ -127,11 +127,11 @@ templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total in

Resolve Conflict

Book Title

- -
+
@@ -230,7 +230,7 @@ templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total in
- +
diff --git a/templates/conflicts_templ.go b/templates/conflicts_templ.go index 393bd10..6698549 100644 --- a/templates/conflicts_templ.go +++ b/templates/conflicts_templ.go @@ -115,7 +115,7 @@ func Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total int if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "

Created: ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "

Created: ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -152,7 +152,7 @@ func Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total int return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "

Resolve Conflict

Book Title

Resolution Options

Manual Progress

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "

Resolve Conflict

Book Title

Resolution Options

Manual Progress

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/header_templ.go b/templates/header_templ.go index 83e9dc1..014b5c2 100644 --- a/templates/header_templ.go +++ b/templates/header_templ.go @@ -29,7 +29,7 @@ func Header(user User, currentPath string) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "