-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedback.html
More file actions
412 lines (368 loc) · 16.9 KB
/
Copy pathfeedback.html
File metadata and controls
412 lines (368 loc) · 16.9 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback — ADB Pro</title>
<meta name="description" content="Submit feedback, bug reports, and feature requests for ADB Pro.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="icon" type="image/x-icon" href="assets/favicon.ico">
<style>
.feedback-container {
max-width: 640px;
margin: 0 auto;
padding: 0 24px;
}
.feedback-form {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 32px;
box-shadow: var(--shadow);
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
font-weight: 600;
font-size: 14px;
color: var(--text-primary);
margin-bottom: 6px;
}
.form-group .form-hint {
display: block;
font-size: 13px;
color: var(--text-muted);
margin-top: 4px;
}
.form-group select,
.form-group textarea,
.form-group input[type="email"] {
width: 100%;
padding: 10px 14px;
font-family: var(--font-sans);
font-size: 14px;
color: var(--text-primary);
background: var(--bg-body);
border: 1px solid var(--border);
border-radius: 8px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select:focus,
.form-group textarea:focus,
.form-group input[type="email"]:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea {
min-height: 140px;
resize: vertical;
line-height: 1.6;
}
.form-group select:disabled,
.form-group textarea:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.form-actions {
display: flex;
align-items: center;
gap: 16px;
margin-top: 24px;
}
.form-actions .btn { cursor: pointer; border: none; font-family: var(--font-sans); }
.form-actions .btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
}
.form-status {
margin-top: 20px;
padding: 14px 18px;
border-radius: 8px;
font-size: 14px;
display: none;
}
.form-status.success {
display: block;
background: var(--success-soft);
color: #065f46;
border: 1px solid var(--success);
}
.form-status.error {
display: block;
background: #fee2e2;
color: #991b1b;
border: 1px solid #f87171;
}
[data-theme="dark"] .form-status.success {
color: #6ee7b7;
}
[data-theme="dark"] .form-status.error {
background: rgba(248,113,113,0.1);
color: #fca5a5;
}
.form-status a {
color: inherit;
font-weight: 600;
text-decoration: underline;
}
.required {
color: #ef4444;
margin-left: 2px;
}
</style>
</head>
<body>
<!-- ═══ Navigation ═══ -->
<nav class="site-nav">
<div class="nav-inner">
<a href="index.html" class="nav-brand">
<img src="assets/logo.png" alt="ADB Pro" class="nav-brand-logo" width="32" height="32">
ADB Pro
</a>
<div class="nav-links">
<a href="index.html">Home</a>
<a href="features/index.html">Features</a>
<a href="getting-started.html">Getting Started</a>
<a href="https://plugins.jetbrains.com/plugin/32100-adb-pro/pricing" target="_blank">Pricing</a>
<a href="dictionaries/index.html">Dictionaries</a>
<a href="blog/index.html">Blog</a>
</div>
<div class="nav-actions">
<button class="theme-toggle" onclick="toggleTheme()" aria-label="Toggle theme">
<svg class="icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
<svg class="icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
<a href="https://plugins.jetbrains.com/plugin/32100-adb-pro" class="btn btn-primary btn-sm" target="_blank">Get ADB Pro</a>
</div>
<button class="nav-toggle" onclick="toggleMobileMenu()" aria-label="Menu">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
</button>
</div>
</nav>
<div class="mobile-menu" id="mobile-menu">
<a href="index.html">Home</a>
<a href="features/index.html">Features</a>
<a href="getting-started.html">Getting Started</a>
<a href="https://plugins.jetbrains.com/plugin/32100-adb-pro/pricing" target="_blank">Pricing</a>
<a href="dictionaries/index.html">Dictionaries</a>
</div>
<!-- ═══ Hero ═══ -->
<section class="hero">
<div class="hero-content">
<div class="hero-badge">We value your input</div>
<h1>Send Us <span>Feedback</span></h1>
<p class="hero-sub">Report bugs, request features, or share suggestions. Your feedback helps make ADB Pro better for everyone.</p>
</div>
</section>
<!-- ═══ Feedback Form ═══ -->
<section class="section">
<div class="feedback-container">
<div class="feedback-form" id="feedbackForm">
<div class="form-group">
<label for="feature">Feature<span class="required">*</span></label>
<select id="feature" required>
<option value="">— Select a feature —</option>
<option value="AAB Tools">AAB Tools</option>
<option value="Signing Tools">Signing Tools</option>
<option value="Build Tools">Build Tools</option>
<option value="Bundle Inspector">Bundle Inspector</option>
<option value="Release Readiness">Release Readiness</option>
<option value="Lint Tools">Lint Tools</option>
<option value="Dependency Health">Dependency Health</option>
<option value="R8 Assistant">R8 Assistant</option>
<option value="Res Guard">Res Guard</option>
<option value="CI/CD Tools">CI/CD Tools</option>
<option value="Build Perf">Build Perf</option>
<option value="Quick Setup">Quick Setup</option>
<option value="General">General / Other</option>
</select>
</div>
<div class="form-group">
<label for="type">Feedback Type<span class="required">*</span></label>
<select id="type" required>
<option value="Bug Report">Bug Report</option>
<option value="Feature Request">Feature Request</option>
<option value="Suggestion">Suggestion</option>
<option value="Question">Question</option>
</select>
</div>
<div class="form-group">
<label for="content">Description<span class="required">*</span></label>
<textarea id="content" placeholder="Please describe your feedback in detail..." disabled></textarea>
<span class="form-hint">Select a feature above to enable this field.</span>
</div>
<div class="form-group">
<label for="email">Email <span style="font-weight:400; color:var(--text-muted);">(optional)</span></label>
<input type="email" id="email" placeholder="your@email.com">
<span class="form-hint">Used only to notify you when the issue is resolved.</span>
</div>
<div class="form-actions">
<button class="btn btn-primary" id="submitBtn" onclick="submitFeedback()">Submit Feedback</button>
<span id="submitStatus" style="font-size:13px; color:var(--text-muted);"></span>
</div>
<div class="form-status" id="formStatus"></div>
</div>
</div>
</section>
<!-- ═══ Footer ═══ -->
<footer class="site-footer">
<div class="footer-inner">
<div class="footer-brand">
<a href="index.html" class="nav-brand" style="font-size:16px;">
<img src="assets/logo.png" alt="ADB Pro" class="nav-brand-logo" width="28" height="28">
ADB Pro
</a>
<p>Advanced Android Development Tools for JetBrains IDEs.</p>
</div>
<div class="footer-links">
<div class="footer-col">
<h4>Product</h4>
<a href="features/index.html">Features</a>
<a href="https://plugins.jetbrains.com/plugin/32100-adb-pro/pricing" target="_blank">Pricing</a>
<a href="getting-started.html">Getting Started</a>
</div>
<div class="footer-col">
<h4>Resources</h4>
<a href="dictionaries/index.html">ProGuard Dictionaries</a>
<a href="https://plugins.jetbrains.com/plugin/32100-adb-pro" target="_blank">JetBrains Marketplace</a>
</div>
<div class="footer-col">
<h4>Legal</h4>
<a href="https://plugins.jetbrains.com/plugin/32100-adb-pro/pricing" target="_blank">Subscription Agreement</a>
<a href="privacy-policy.html">Privacy Policy</a>
<a href="https://www.jetbrains.com/legal/docs/store/terms/" target="_blank">JetBrains Store Terms</a>
</div>
</div>
</div>
<div class="footer-bottom">
© 2026 codetroupe. All rights reserved.
</div>
</footer>
<script src="assets/js/main.js"></script>
<script>
// ── GitHub Configuration ──────────────────────────────────────
const GITHUB_REPO = 'Codetroupe/codetroupe.github.io';
// ── Feature slug → display name mapping (for ?feature= deep link) ──
const FEATURE_SLUGS = {
'aab-tools': 'AAB Tools',
'signing-tools': 'Signing Tools',
'build-tools': 'Build Tools',
'bundle-inspector': 'Bundle Inspector',
'release-readiness': 'Release Readiness',
'lint-tools': 'Lint Tools',
'dependency-health': 'Dependency Health',
'r8-assistant': 'R8 Assistant',
'res-guard': 'Res Guard',
'cicd-tools': 'CI/CD Tools',
'build-perf': 'Build Perf',
'quick-setup': 'Quick Setup'
};
// ── Auto-fill form from URL query params ──
(function() {
const params = new URLSearchParams(window.location.search);
// Auto-select feature
const featureParam = params.get('feature');
if (featureParam) {
var select = document.getElementById('feature');
var matched = false;
for (var i = 0; i < select.options.length; i++) {
if (select.options[i].value === featureParam) {
select.selectedIndex = i;
matched = true;
break;
}
}
if (!matched && FEATURE_SLUGS[featureParam]) {
select.value = FEATURE_SLUGS[featureParam];
matched = true;
}
if (matched) onFeatureChange();
}
// Auto-select feedback type
const typeParam = params.get('type');
if (typeParam) {
var typeSelect = document.getElementById('type');
for (var i = 0; i < typeSelect.options.length; i++) {
if (typeSelect.options[i].value === typeParam) {
typeSelect.selectedIndex = i;
break;
}
}
}
// Auto-fill description (e.g. error logs from plugin)
const descParam = params.get('description');
if (descParam) {
var textarea = document.getElementById('content');
textarea.value = descParam;
textarea.disabled = false;
var hint = textarea.parentElement.querySelector('.form-hint');
if (hint) hint.style.display = 'none';
}
})();
// ── Enable textarea when a feature is selected ──
document.getElementById('feature').addEventListener('change', onFeatureChange);
function onFeatureChange() {
var textarea = document.getElementById('content');
var hint = textarea.parentElement.querySelector('.form-hint');
if (document.getElementById('feature').value) {
textarea.disabled = false;
textarea.placeholder = 'Please describe your feedback in detail...';
if (hint) hint.style.display = 'none';
} else {
textarea.disabled = true;
textarea.placeholder = 'Select a feature first...';
if (hint) hint.style.display = '';
}
}
// ── Submit feedback via GitHub pre-filled issue URL ──
function submitFeedback() {
var feature = document.getElementById('feature').value;
var type = document.getElementById('type').value;
var content = document.getElementById('content').value.trim();
var email = document.getElementById('email').value.trim();
// Validate
if (!feature) return showStatus('error', 'Please select a feature.');
if (!content) return showStatus('error', 'Please enter a description.');
if (content.length < 10) return showStatus('error', 'Description is too short. Please provide more detail.');
if (email && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) return showStatus('error', 'Please enter a valid email address.');
var title = '[' + type + '] ' + feature + ' — ' + content.substring(0, 60) + (content.length > 60 ? '...' : '');
var body = '## Feature\n' + feature + '\n\n';
body += '## Feedback Type\n' + type + '\n\n';
body += '## Description\n' + content + '\n\n';
if (email) {
body += '## Contact Email\n' + email + '\n_(for fix notification only)_\n\n';
}
body += '---\n*Submitted via [ADB Pro Feedback](https://codetroupe.github.io/feedback.html)*';
var url = 'https://github.com/' + GITHUB_REPO + '/issues/new'
+ '?title=' + encodeURIComponent(title)
+ '&body=' + encodeURIComponent(body)
+ '&labels=feedback';
window.open(url, '_blank');
showStatus('success', 'A GitHub issue page has been opened in a new tab. Please review the content and click <strong>"Submit new issue"</strong> to complete your submission.');
// Reset form
document.getElementById('feature').value = '';
document.getElementById('type').selectedIndex = 0;
document.getElementById('content').value = '';
document.getElementById('content').disabled = true;
document.getElementById('content').placeholder = 'Select a feature first...';
document.getElementById('email').value = '';
var hint = document.getElementById('content').parentElement.querySelector('.form-hint');
if (hint) hint.style.display = '';
}
function showStatus(type, message) {
var el = document.getElementById('formStatus');
el.className = 'form-status ' + type;
el.innerHTML = message;
el.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
</script>
<script data-goatcounter="https://codetroupe.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body>
</html>