feat: working serach now

This commit is contained in:
Mann Patel
2026-02-15 06:27:50 -07:00
parent 2ec7c53302
commit 409f45c05f
5 changed files with 301 additions and 25 deletions

View File

@@ -178,6 +178,12 @@ export default function AudioPostCard({ post }) {
}`}>
{post.status}
</span>
<span></span>
{post.language && (
<span className="text-xs px-2 py-0.5 bg-blue-100 text-blue-700 rounded">
{post.language.toUpperCase()}
</span>
)}
</div>
</div>
{post.status === 'ready' && (
@@ -205,6 +211,8 @@ export default function AudioPostCard({ post }) {
</button>
</div>
{/* Description */}
{post.description && (
<p className="text-sm text-gray-700 mb-4 line-clamp-2">
@@ -212,6 +220,7 @@ export default function AudioPostCard({ post }) {
</p>
)}
{/* Audio Player - Only show if ready */}
{post.status === 'ready' && (
<>
@@ -325,15 +334,6 @@ export default function AudioPostCard({ post }) {
<p className="text-sm text-red-800">Failed to process this recording. Please try uploading again.</p>
</div>
)}
{/* Language Tag */}
{post.language && (
<div className="mt-3">
<span className="text-xs px-2 py-1 bg-blue-100 text-blue-700 rounded">
{post.language.toUpperCase()}
</span>
</div>
)}
</div>
</article>
)