-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_generated_meme.html
More file actions
202 lines (182 loc) · 9.59 KB
/
edit_generated_meme.html
File metadata and controls
202 lines (182 loc) · 9.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edit Generated Memecoin - LaunchAgencyBot</title>
<link rel="stylesheet" href="/static/css/global.css">
</head>
<body>
<div class="app-container">
<!-- Header -->
<header class="app-header">
<div style="display: flex; align-items: center; gap: 15px;">
<a href="/generated.html" class="back-arrow" title="Back to Generated">⬅</a>
<h1>✏️ Edit Generated Memecoin</h1>
</div>
<div class="header-info">
<span id="memecoin-info" style="opacity: 0.8;"></span>
</div>
</header>
<!-- Main Content Area -->
<main class="main-content">
<!-- Loading State -->
<div id="loading-state" class="loading-state">
<div class="spinner"></div>
<p>Loading generated memecoin...</p>
</div>
<!-- Error State -->
<div id="error-state" class="empty-state" style="display: none;">
<div class="empty-icon">❌</div>
<h2>Error Loading Memecoin</h2>
<p id="error-message">Failed to load generated memecoin data.</p>
<button id="retry-btn" class="action-btn-secondary icon-retry">Retry</button>
</div>
<!-- Edit Interface -->
<div id="edit-interface" class="memecoin-display" style="display: none;">
<!-- Top Section: Image + Editable Metadata -->
<div class="top-section">
<!-- Image Section (Left Side) -->
<div class="image-section">
<div id="memecoin-image-container" class="image-container">
<img id="memecoin-image" src="" alt="Generated Memecoin Image" style="display: none;">
<div id="image-placeholder" class="image-placeholder" style="display: none;">
<span>🖼️</span>
<p>No image available</p>
</div>
</div>
<!-- Generation Info Below Image -->
<div class="info-group" style="margin-top: 20px;">
<label class="parameter-label">Generation Info</label>
<div class="metadata-row">
<div class="metadata-field">
<label>Created:</label>
<span id="created-at" class="token-date">-</span>
</div>
</div>
</div>
</div>
<!-- Editable Metadata (Right Side) -->
<div class="right-metadata">
<h2 style="margin-top: 0;">📝 Edit Memecoin</h2>
<div class="edit-form-group">
<label for="edit-name">Token Name</label>
<input
type="text"
id="edit-name"
class="edit-form-input"
maxlength="50"
placeholder="e.g., DogeCoin Supreme"
required
>
</div>
<div class="edit-form-group">
<label for="edit-ticker">Token Ticker</label>
<input
type="text"
id="edit-ticker"
class="edit-form-input"
maxlength="10"
placeholder="e.g., DOGE"
style="text-transform: uppercase;"
required
>
</div>
<div class="edit-form-group">
<label for="edit-description">Description</label>
<textarea
id="edit-description"
class="edit-form-textarea"
maxlength="1000"
rows="4"
placeholder="Enter token description..."
></textarea>
<div class="character-count">
<span id="description-count">0</span> / 1000 characters
</div>
</div>
</div>
</div>
<!-- AI Assistance Section (Optional) -->
<div class="section-container" style="margin-top: 30px;">
<h2>🤖 AI Assistance (Optional)</h2>
<p style="opacity: 0.8; margin-bottom: 15px;">
Need help? Provide feedback and the AI will intelligently regenerate affected parts.
<strong>Leave empty to save your manual edits directly.</strong>
The system will automatically retrieve context from the vector database if needed.
</p>
<div class="edit-form-group">
<label for="feedback-input">AI Feedback (Optional)</label>
<textarea
id="feedback-input"
class="edit-form-textarea"
placeholder="e.g., 'The pumpkin should have the real Solana logo' or 'Make it more pixel art style'"
rows="3"
maxlength="2000"
></textarea>
<div class="character-count">
<span id="feedback-count">0</span> / 2000 characters
</div>
</div>
<!-- Smart Action Button -->
<div class="edit-action-buttons">
<button id="action-btn" class="action-btn-primary">
Update Memecoin
</button>
<button id="cancel-btn" class="action-btn-tertiary">
Cancel
</button>
</div>
</div>
<!-- Proposal Review Section (Initially Hidden) -->
<div id="proposal-section" class="section-container" style="display: none; margin-top: 30px;">
<h2>📝 Edit Proposal</h2>
<p style="opacity: 0.8; margin-bottom: 15px;">
Review the AI-generated changes below. You can manually edit before accepting.
<span id="regeneration-notice" style="display: none; color: #4CAF50; font-weight: bold;">
✨ Image will be regenerated with enhanced context
</span>
</p>
<!-- Proposal UUID (Hidden) -->
<input type="hidden" id="proposal-uuid">
<!-- Proposed Changes -->
<div class="proposal-diff">
<div class="form-group">
<label for="proposed-name" class="parameter-label">Token Name</label>
<input type="text" id="proposed-name" class="form-input" maxlength="50">
</div>
<div class="form-group">
<label for="proposed-ticker" class="parameter-label">Token Ticker</label>
<input type="text" id="proposed-ticker" class="form-input" maxlength="10" style="text-transform: uppercase;">
</div>
<div class="form-group">
<label for="proposed-description" class="parameter-label">Description</label>
<textarea id="proposed-description" class="form-textarea" rows="3" maxlength="1000"></textarea>
</div>
<!-- Image Preview (if regenerated) -->
<div id="image-preview-container" class="form-group" style="display: none;">
<label class="parameter-label">New Image Preview</label>
<div class="image-preview-wrapper" style="max-width: 300px; margin: 10px 0;">
<img id="proposed-image" src="" alt="Proposed Image" style="width: 100%; border-radius: 8px; border: 2px solid #4CAF50;">
</div>
</div>
</div>
<div class="action-buttons" style="margin-top: 20px;">
<button id="accept-btn" class="action-btn-primary" style="flex: 1;">
✅ Accept & Apply Changes
</button>
<button id="reject-btn" class="action-btn-tertiary" style="flex: 1;">
❌ Reject Proposal
</button>
</div>
</div>
</div>
</main>
<!-- Toast Container -->
<div id="toast-container"></div>
</div>
<!-- JavaScript -->
<script src="/static/js/shared/toast-manager.js"></script>
<script src="/static/js/pages/edit_generated_meme.js"></script>
</body>
</html>