@@ -92,28 +92,6 @@ export function Home({ hasSearched, setHasSearched }: HomeProps) {
9292
9393 setIsLoading ( false ) ;
9494 } ;
95-
96- // const filteredSoftware = software.filter(sw => {
97- // const matchesSearch = !search ||
98- // sw.name.toLowerCase().includes(search.toLowerCase()) ||
99- // sw.description.toLowerCase().includes(search.toLowerCase()) ||
100- // sw.features.some(f => f.toLowerCase().includes(search.toLowerCase())) ||
101- // sw.bestFor.some(b => b.toLowerCase().includes(search.toLowerCase()));
102- //
103- // const matchesCategory = filters.category === 'all' || sw.category === filters.category;
104- // const matchesPricing = filters.pricing === 'all' || sw.pricing === filters.pricing;
105- // const matchesPlatform = filters.platform === 'all' || sw.platforms.includes(filters.platform);
106- //
107- // let matchesAiAnalysis = true;
108- // if (aiAnalysis) {
109- // matchesAiAnalysis = aiAnalysis.features.some((feature: string) =>
110- // sw.features.some(f => f.toLowerCase().includes(feature.toLowerCase()))
111- // );
112- // }
113- //
114- // return matchesSearch && matchesCategory && matchesPricing && matchesPlatform && matchesAiAnalysis;
115- // });
116-
11795 return (
11896 < main className = "max-w-7xl mx-auto px-4 py-8" >
11997 { ! hasSearched ? (
@@ -210,7 +188,7 @@ export function Home({ hasSearched, setHasSearched }: HomeProps) {
210188 value = { taskDescription }
211189 onChange = { ( e ) => {
212190 setTaskDescription ( e . target . value ) ;
213- setShowDescriptionSuggestions ( true ) ; // turn on
191+ setShowDescriptionSuggestions ( false ) ; // turn on
214192 } }
215193 onFocus = { ( ) => setShowDescriptionSuggestions ( false ) } // turn on
216194 onKeyDown = { ( e ) => {
@@ -248,105 +226,9 @@ export function Home({ hasSearched, setHasSearched }: HomeProps) {
248226 </ button >
249227 </ div >
250228 </ div >
251-
252- { /*<div className="relative" ref={searchRef}>*/ }
253- { /* <div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">*/ }
254- { /* <Search className="h-5 w-5 text-gray-400" />*/ }
255- { /* </div>*/ }
256- { /* <input*/ }
257- { /* type="text"*/ }
258- { /* placeholder="Search within results..."*/ }
259- { /* className="pl-10 w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"*/ }
260- { /* value={search}*/ }
261- { /* onChange={(e) => {*/ }
262- { /* setSearch(e.target.value);*/ }
263- { /* setShowSuggestions(true);*/ }
264- { /* }}*/ }
265- { /* onFocus={() => setShowSuggestions(true)}*/ }
266- { /* />*/ }
267- { /*</div>*/ }
268-
269- { /*<div className="grid grid-cols-1 md:grid-cols-3 gap-4">*/ }
270- { /* <select*/ }
271- { /* className="rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"*/ }
272- { /* value={filters.category}*/ }
273- { /* onChange={(e) =>*/ }
274- { /* setFilters({ ...filters, category: e.target.value })*/ }
275- { /* }*/ }
276- { /* >*/ }
277- { /* <option value="all">All Categories</option>*/ }
278- { /* <option value="productivity">Productivity</option>*/ }
279- { /* <option value="development">Development</option>*/ }
280- { /* <option value="design">Design</option>*/ }
281- { /* <option value="communication">Communication</option>*/ }
282- { /* <option value="business">Business</option>*/ }
283- { /* <option value="multimedia">Multimedia</option>*/ }
284- { /* </select>*/ }
285-
286- { /* <select*/ }
287- { /* className="rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"*/ }
288- { /* value={filters.pricing}*/ }
289- { /* onChange={(e) =>*/ }
290- { /* setFilters({ ...filters, pricing: e.target.value })*/ }
291- { /* }*/ }
292- { /* >*/ }
293- { /* <option value="all">All Pricing Types</option>*/ }
294- { /* <option value="free">Free</option>*/ }
295- { /* <option value="freemium">Freemium</option>*/ }
296- { /* <option value="paid">Paid</option>*/ }
297- { /* <option value="subscription">Subscription</option>*/ }
298- { /* </select>*/ }
299-
300- { /* <select*/ }
301- { /* className="rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"*/ }
302- { /* value={filters.platform}*/ }
303- { /* onChange={(e) =>*/ }
304- { /* setFilters({ ...filters, platform: e.target.value })*/ }
305- { /* }*/ }
306- { /* >*/ }
307- { /* <option value="all">All Platforms</option>*/ }
308- { /* {allPlatforms.map((platform) => (*/ }
309- { /* <option key={platform} value={platform}>*/ }
310- { /* {platform}*/ }
311- { /* </option>*/ }
312- { /* ))}*/ }
313- { /* </select>*/ }
314- { /*</div>*/ }
315229 </ div >
316230 </ div >
317231
318- { /*{aiAnalysis && (*/ }
319- { /* <div className="mb-8 bg-white rounded-lg shadow p-6">*/ }
320- { /* <h3 className="text-lg font-semibold text-gray-900 mb-4">AI Analysis</h3>*/ }
321- { /* <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">*/ }
322- { /* <div>*/ }
323- { /* <h4 className="font-medium text-gray-700 mb-2">Key Features Needed:</h4>*/ }
324- { /* <ul className="list-disc pl-4 space-y-1">*/ }
325- { /* {aiAnalysis.features.map((feature: string, index: number) => (*/ }
326- { /* <li key={index} className="text-gray-600">{feature}</li>*/ }
327- { /* ))}*/ }
328- { /* </ul>*/ }
329- { /* </div>*/ }
330- { /* <div>*/ }
331- { /* <h4 className="font-medium text-gray-700 mb-2">Best For:</h4>*/ }
332- { /* <ul className="list-disc pl-4 space-y-1">*/ }
333- { /* {aiAnalysis.bestFor.map((user: string, index: number) => (*/ }
334- { /* <li key={index} className="text-gray-600">{user}</li>*/ }
335- { /* ))}*/ }
336- { /* </ul>*/ }
337- { /* </div>*/ }
338- { /* <div>*/ }
339- { /* <h4 className="font-medium text-gray-700 mb-2">Recommended Platforms:</h4>*/ }
340- { /* <ul className="list-disc pl-4 space-y-1">*/ }
341- { /* {aiAnalysis.platforms.map((platform: string, index: number) => (*/ }
342- { /* <li key={index} className="text-gray-600">{platform}</li>*/ }
343- { /* ))}*/ }
344- { /* </ul>*/ }
345- { /* </div>*/ }
346- { /* </div>*/ }
347- { /* </div>*/ }
348- { /*)}*/ }
349-
350232 { software . length > 0 ? (
351233 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" >
352234 { software . map ( ( sw ) => (
0 commit comments