"Edit with Shakespeare" internal link in showcase

This commit is contained in:
Alex Gleason committed 2025-10-12 22:35:35 -05:00
1 parent e648ecd8b8
commit 5c3c565174
2 files changed
+11 -12

No files matched your search

+7 -7
View File
@@ -35,31 +35,31 @@ export function AppShowcase() {
// Separate template apps from other apps
const templateApps = useMemo(() =>
shuffleArray(visibleSubmissions.filter(app => app.appTags.includes('Template'))),
shuffleArray(visibleSubmissions.filter(app => app.appTags.includes('Template'))),
[visibleSubmissions]
);
const nonTemplateSubmissions = visibleSubmissions.filter(app => !app.appTags.includes('Template'));
// Get Halloween Hackathon 2025 apps that are featured (for main showcase)
const halloweenApps = useMemo(() =>
shuffleArray(nonTemplateSubmissions.filter(app =>
app.appTags.includes('Halloween Hackathon 2025') && app.isFeatured
)),
shuffleArray(nonTemplateSubmissions.filter(app =>
app.appTags.includes('Halloween Hackathon 2025') && app.isFeatured
)),
[nonTemplateSubmissions]
);
// Filter out Halloween Hackathon 2025 apps from other sections (unless featured, they go in Halloween section)
const nonHalloweenSubmissions = nonTemplateSubmissions.filter(app =>
!app.appTags.includes('Halloween Hackathon 2025')
!app.appTags.includes('Halloween Hackathon 2025')
);
// Shuffle featured and approved apps on each component mount/render for random display order
const featuredApps = useMemo(() =>
shuffleArray(nonHalloweenSubmissions.filter(app => app.isFeatured)),
shuffleArray(nonHalloweenSubmissions.filter(app => app.isFeatured)),
[nonHalloweenSubmissions]
);
const approvedApps = useMemo(() =>
shuffleArray(nonHalloweenSubmissions.filter(app => app.isApproved && !app.isFeatured)),
shuffleArray(nonHalloweenSubmissions.filter(app => app.isApproved && !app.isFeatured)),
[nonHalloweenSubmissions]
);
+4 -5
View File
@@ -1,4 +1,5 @@
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import { Button } from '@/components/ui/button';
import { Card, CardContent } from '@/components/ui/card';
import {
@@ -561,10 +562,8 @@ export function AppShowcaseCard({ app, onEdit, showModerationControls, hideAppro
{/* Action Links */}
<div className="flex items-center gap-2 mt-auto">
<a
href={`https://shakespeare.diy/clone?url=${encodeURIComponent(app.repositoryUrl)}`}
target="_blank"
rel="noopener noreferrer"
<Link
to={`/clone?url=${encodeURIComponent(app.repositoryUrl)}`}
className="flex-1"
>
<img
@@ -572,7 +571,7 @@ export function AppShowcaseCard({ app, onEdit, showModerationControls, hideAppro
alt="Edit with Shakespeare"
className="h-6 hover:opacity-80 transition-opacity"
/>
</a>
</Link>
<Button variant="outline" size="sm" asChild>
<a
href={app.websiteUrl}