mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-24 15:38:10 +02:00
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:
1 parent
103a380f21
commit
7517df10e4
2 files changed
+25
-17
No files matched your search
@@ -34,6 +34,10 @@ externalPort = 5000
|
|||||||
localPort = 37659
|
localPort = 37659
|
||||||
externalPort = 4200
|
externalPort = 4200
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 39387
|
||||||
|
externalPort = 8008
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 40537
|
localPort = 40537
|
||||||
externalPort = 3000
|
externalPort = 3000
|
||||||
@@ -46,6 +50,10 @@ externalPort = 6000
|
|||||||
localPort = 43245
|
localPort = 43245
|
||||||
externalPort = 3001
|
externalPort = 3001
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 45547
|
||||||
|
externalPort = 8000
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 46681
|
localPort = 46681
|
||||||
externalPort = 5173
|
externalPort = 5173
|
||||||
|
|||||||
@@ -562,27 +562,11 @@ export default function NewPost() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</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 && (
|
{generatedVariants.length > 0 && (
|
||||||
<Card className="rounded-2xl border-border/50 shadow-lg">
|
<Card className="rounded-2xl border-border/50 shadow-lg">
|
||||||
<CardHeader className="p-6">
|
<CardHeader className="p-6">
|
||||||
<CardTitle>Variations générées par l'IA</CardTitle>
|
<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>
|
</CardHeader>
|
||||||
<CardContent className="space-y-3">
|
<CardContent className="space-y-3">
|
||||||
{generatedVariants.map((variant, index) => (
|
{generatedVariants.map((variant, index) => (
|
||||||
@@ -612,6 +596,22 @@ export default function NewPost() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</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>
|
||||||
|
|
||||||
<div className="space-y-8">
|
<div className="space-y-8">
|
||||||
|
|||||||
Reference in new issue
Block a user