@alliance-droid/status-feedback-system 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -299,32 +299,24 @@
|
|
|
299
299
|
{#if isEnabled}
|
|
300
300
|
<!-- Context menu -->
|
|
301
301
|
{#if menuOpen}
|
|
302
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
302
303
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
303
304
|
<div
|
|
304
305
|
class="fixed z-[99999]"
|
|
305
306
|
style="left: {adjustedX}px; top: {adjustedY}px;"
|
|
306
|
-
onmousedown
|
|
307
|
+
onmousedown={(e) => e.stopPropagation()}
|
|
307
308
|
>
|
|
308
|
-
<div class="
|
|
309
|
-
<button
|
|
310
|
-
class="flex items-center gap-2.5 w-full px-3 py-2.5 text-sm text-foreground hover:bg-surface-hover transition-colors text-left"
|
|
311
|
-
onclick={() => openForm('bug')}
|
|
312
|
-
>
|
|
309
|
+
<div class="sf-ctx-menu">
|
|
310
|
+
<button class="sf-ctx-item" onclick={() => openForm('bug')}>
|
|
313
311
|
<i class="fa-solid fa-bug text-red-400"></i>
|
|
314
312
|
Report Bug
|
|
315
313
|
</button>
|
|
316
|
-
<button
|
|
317
|
-
class="flex items-center gap-2.5 w-full px-3 py-2.5 text-sm text-foreground hover:bg-surface-hover transition-colors text-left"
|
|
318
|
-
onclick={() => openForm('feature')}
|
|
319
|
-
>
|
|
314
|
+
<button class="sf-ctx-item" onclick={() => openForm('feature')}>
|
|
320
315
|
<i class="fa-solid fa-lightbulb text-amber-400"></i>
|
|
321
316
|
Request Feature
|
|
322
317
|
</button>
|
|
323
|
-
<div class="
|
|
324
|
-
<button
|
|
325
|
-
class="flex items-center gap-2.5 w-full px-3 py-2.5 text-sm text-foreground-secondary hover:bg-surface-hover transition-colors text-left"
|
|
326
|
-
onclick={openBoard}
|
|
327
|
-
>
|
|
318
|
+
<div class="sf-ctx-divider">
|
|
319
|
+
<button class="sf-ctx-item sf-ctx-item-secondary" onclick={openBoard}>
|
|
328
320
|
<i class="fa-solid fa-clipboard-list"></i>
|
|
329
321
|
View Open Issues
|
|
330
322
|
</button>
|
|
@@ -336,8 +328,10 @@
|
|
|
336
328
|
<!-- Form modal -->
|
|
337
329
|
{#if formOpen}
|
|
338
330
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
339
|
-
|
|
340
|
-
|
|
331
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
332
|
+
<div class="fixed inset-0 z-[99998] flex items-center justify-center bg-black/50 backdrop-blur-sm" onmousedown={(e) => { if (e.target === e.currentTarget) formOpen = false; }}>
|
|
333
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
334
|
+
<div class="w-full max-w-lg mx-4" onmousedown={(e) => e.stopPropagation()}>
|
|
341
335
|
<Card variant="elevated" padding="none">
|
|
342
336
|
<!-- Header -->
|
|
343
337
|
<div class="flex items-center justify-between px-5 py-4 border-b border-border">
|
|
@@ -472,16 +466,13 @@
|
|
|
472
466
|
<!-- Onboarding toast -->
|
|
473
467
|
{#if showToast}
|
|
474
468
|
<div class="fixed bottom-4 right-4 z-[99997] animate-fade-in">
|
|
475
|
-
<div class="
|
|
476
|
-
<i class="fa-solid fa-computer-mouse
|
|
469
|
+
<div class="sf-toast">
|
|
470
|
+
<i class="fa-solid fa-computer-mouse" style="color: var(--color-primary, #3b82f6); font-size: 1.125rem;"></i>
|
|
477
471
|
<div>
|
|
478
|
-
<p
|
|
479
|
-
<p
|
|
472
|
+
<p style="font-size: 0.875rem; font-weight: 600; margin: 0;">Middle-click anywhere</p>
|
|
473
|
+
<p style="font-size: 0.75rem; color: #94a3b8; margin: 0;">to report bugs or request features</p>
|
|
480
474
|
</div>
|
|
481
|
-
<button
|
|
482
|
-
class="text-foreground-tertiary hover:text-foreground transition-colors bg-transparent border-none cursor-pointer ml-2"
|
|
483
|
-
onclick={() => (showToast = false)}
|
|
484
|
-
>
|
|
475
|
+
<button class="sf-toast-close" onclick={() => (showToast = false)}>
|
|
485
476
|
<i class="fa-solid fa-xmark"></i>
|
|
486
477
|
</button>
|
|
487
478
|
</div>
|
|
@@ -497,4 +488,68 @@
|
|
|
497
488
|
.animate-fade-in {
|
|
498
489
|
animation: fade-in 0.3s ease-out;
|
|
499
490
|
}
|
|
491
|
+
|
|
492
|
+
/* Context menu — hardcoded colors for guaranteed visibility */
|
|
493
|
+
.sf-ctx-menu {
|
|
494
|
+
background: #1e293b;
|
|
495
|
+
border: 1px solid #334155;
|
|
496
|
+
border-radius: 0.5rem;
|
|
497
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
|
498
|
+
overflow: hidden;
|
|
499
|
+
min-width: 180px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.sf-ctx-item {
|
|
503
|
+
display: flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
gap: 0.625rem;
|
|
506
|
+
width: 100%;
|
|
507
|
+
padding: 0.625rem 0.75rem;
|
|
508
|
+
font-size: 0.875rem;
|
|
509
|
+
color: #e2e8f0;
|
|
510
|
+
background: transparent;
|
|
511
|
+
border: none;
|
|
512
|
+
cursor: pointer;
|
|
513
|
+
text-align: left;
|
|
514
|
+
transition: background 0.15s;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.sf-ctx-item:hover {
|
|
518
|
+
background: #334155;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.sf-ctx-item-secondary {
|
|
522
|
+
color: #94a3b8;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.sf-ctx-divider {
|
|
526
|
+
border-top: 1px solid #334155;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* Toast */
|
|
530
|
+
.sf-toast {
|
|
531
|
+
background: #1e293b;
|
|
532
|
+
border: 1px solid #334155;
|
|
533
|
+
border-radius: 0.5rem;
|
|
534
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
535
|
+
padding: 0.75rem 1rem;
|
|
536
|
+
display: flex;
|
|
537
|
+
align-items: center;
|
|
538
|
+
gap: 0.75rem;
|
|
539
|
+
max-width: 20rem;
|
|
540
|
+
color: #e2e8f0;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.sf-toast-close {
|
|
544
|
+
color: #64748b;
|
|
545
|
+
background: transparent;
|
|
546
|
+
border: none;
|
|
547
|
+
cursor: pointer;
|
|
548
|
+
margin-left: 0.5rem;
|
|
549
|
+
transition: color 0.15s;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.sf-toast-close:hover {
|
|
553
|
+
color: #e2e8f0;
|
|
554
|
+
}
|
|
500
555
|
</style>
|
package/package.json
CHANGED