diff --git a/components/manual-viewer.tsx b/components/manual-viewer.tsx
index e545a184..3df40920 100644
--- a/components/manual-viewer.tsx
+++ b/components/manual-viewer.tsx
@@ -7,6 +7,7 @@ import {
Dialog,
DialogContent,
DialogHeader,
+ DialogDescription,
DialogTitle,
DialogClose,
} from '@/components/ui/dialog'
@@ -168,6 +169,10 @@ export function ManualViewer({ manualUrl, filename, isOpen, onClose }: ManualVie
}}
>
+
+ PDF viewer for {filename.replace(/\.pdf$/i, '')}. Use the actions to open the manual in a new tab,
+ download it, or browse available parts.
+
{filename.replace(/\.pdf$/i, '')}
@@ -280,4 +285,3 @@ export function ManualViewer({ manualUrl, filename, isOpen, onClose }: ManualVie
)
}
-
diff --git a/lib/parts-lookup.ts b/lib/parts-lookup.ts
index ea25c446..a3ebcc67 100644
--- a/lib/parts-lookup.ts
+++ b/lib/parts-lookup.ts
@@ -109,6 +109,10 @@ async function searchEBayForParts(partNumber: string, description?: string, manu
* Enhance parts data with real-time eBay listings
*/
async function enhancePartsData(parts: PartForPage[]): Promise {
+ if (!ebayClient.isConfigured()) {
+ return parts
+ }
+
const enhancedParts = await Promise.all(parts.map(async (part) => {
// Only search for parts without existing eBay listings
if (part.ebayListings.length === 0) {
@@ -261,4 +265,3 @@ export function clearPartsCache(): void {
manualPartsCache = null
manualPagesPartsCache = null
}
-