Rearrange post text input to appear after AI-generated options

Update NewPost component to move the textarea for post text below the generated AI variants.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/RFobs06
This commit is contained in:
michaelschal committed 2025-10-09 12:40:33 +00:00
1 parent 103a380f21
commit 7517df10e4
2 files changed
+25 -17

No files matched your search

+8
View File
@@ -34,6 +34,10 @@ externalPort = 5000
localPort = 37659
externalPort = 4200
[[ports]]
localPort = 39387
externalPort = 8008
[[ports]]
localPort = 40537
externalPort = 3000
@@ -46,6 +50,10 @@ externalPort = 6000
localPort = 43245
externalPort = 3001
[[ports]]
localPort = 45547
externalPort = 8000
[[ports]]
localPort = 46681
externalPort = 5173
+17 -17
View File
@@ -562,27 +562,11 @@ export default function NewPost() {
</CardContent>
</Card>
<Card className="rounded-2xl border-border/50 shadow-lg">
<CardHeader className="p-6">
<CardTitle>Texte de la publication</CardTitle>
<CardDescription>Écrivez ou générez le texte de votre publication</CardDescription>
</CardHeader>
<CardContent>
<Textarea
value={postText}
onChange={(e) => setPostText(e.target.value)}
placeholder="Écrivez votre texte ici ou générez-le avec l'IA..."
rows={8}
data-testid="textarea-post-text"
/>
</CardContent>
</Card>
{generatedVariants.length > 0 && (
<Card className="rounded-2xl border-border/50 shadow-lg">
<CardHeader className="p-6">
<CardTitle>Variations générées par l'IA</CardTitle>
<CardDescription>Cliquez sur "Utiliser" pour remplir le texte ci-dessus</CardDescription>
<CardDescription>Cliquez sur "Utiliser" pour remplir le texte ci-dessous</CardDescription>
</CardHeader>
<CardContent className="space-y-3">
{generatedVariants.map((variant, index) => (
@@ -612,6 +596,22 @@ export default function NewPost() {
</CardContent>
</Card>
)}
<Card className="rounded-2xl border-border/50 shadow-lg">
<CardHeader className="p-6">
<CardTitle>Texte de la publication</CardTitle>
<CardDescription>Écrivez ou générez le texte de votre publication</CardDescription>
</CardHeader>
<CardContent>
<Textarea
value={postText}
onChange={(e) => setPostText(e.target.value)}
placeholder="Écrivez votre texte ici ou générez-le avec l'IA..."
rows={8}
data-testid="textarea-post-text"
/>
</CardContent>
</Card>
</div>
<div className="space-y-8">