Skip to content

Commit 997cd0f

Browse files
committed
Improve popup UI and add snooze management
Fix popup header scrolling issues and make repo rows fully clickable. Move refresh button to header for better accessibility. Increase filter button font size for readability. Add comprehensive snooze management in settings with ability to view and cancel active snoozes.
1 parent 0794cf3 commit 997cd0f

8 files changed

Lines changed: 417 additions & 122 deletions

File tree

generate-icons.html

Lines changed: 0 additions & 105 deletions
This file was deleted.

options/options.css

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,8 @@ body.dark-mode .notification-toggle input:checked + .toggle-slider {
528528
}
529529

530530
.repo-name {
531+
display: flex;
532+
align-items: center;
531533
font-family: 'Monaco', 'Courier New', monospace;
532534
font-size: 14px;
533535
font-weight: 600;
@@ -1233,6 +1235,47 @@ body.dark-mode .notification-toggle input:checked + .toggle-slider {
12331235
border-color: var(--error-text);
12341236
}
12351237

1238+
.link-btn {
1239+
background: none;
1240+
border: 1px solid var(--border-color-dark);
1241+
border-radius: 6px;
1242+
padding: 8px 10px;
1243+
cursor: pointer;
1244+
display: flex;
1245+
align-items: center;
1246+
justify-content: center;
1247+
color: var(--link-color);
1248+
transition: all 0.2s;
1249+
}
1250+
1251+
.link-btn:hover {
1252+
background: var(--bg-tertiary);
1253+
border-color: var(--link-color);
1254+
}
1255+
1256+
.link-btn:focus-visible {
1257+
outline: 2px solid var(--link-color);
1258+
outline-offset: 2px;
1259+
}
1260+
1261+
/* Inline link button positioned right after repo name */
1262+
.link-btn.inline-link {
1263+
border: none;
1264+
background: none;
1265+
padding: 2px 4px;
1266+
margin-left: 6px;
1267+
color: var(--text-secondary);
1268+
opacity: 0.7;
1269+
transition: all 0.15s ease;
1270+
border-radius: 3px;
1271+
}
1272+
1273+
.link-btn.inline-link:hover {
1274+
background: var(--bg-tertiary);
1275+
color: var(--link-color);
1276+
opacity: 1;
1277+
}
1278+
12361279
.repo-item.muted {
12371280
opacity: 0.5;
12381281
transition: opacity 0.2s;
@@ -1338,4 +1381,122 @@ body.dark-mode select:focus-visible {
13381381
.search-clear-btn:focus-visible {
13391382
outline: 2px solid var(--link-color);
13401383
outline-offset: 2px;
1384+
}
1385+
1386+
/* Current Snoozes Section */
1387+
.current-snoozes {
1388+
margin-top: 24px;
1389+
}
1390+
1391+
.current-snoozes h3 {
1392+
font-size: 16px;
1393+
font-weight: 600;
1394+
margin-bottom: 8px;
1395+
color: var(--text-primary);
1396+
}
1397+
1398+
.snoozed-repos-list {
1399+
margin-top: 16px;
1400+
}
1401+
1402+
.empty-snoozes {
1403+
text-align: center;
1404+
padding: 40px 20px;
1405+
color: var(--text-secondary);
1406+
background: var(--bg-secondary);
1407+
border: 2px dashed var(--border-color);
1408+
border-radius: 8px;
1409+
}
1410+
1411+
.empty-snoozes p {
1412+
margin-bottom: 8px;
1413+
font-size: 16px;
1414+
font-weight: 500;
1415+
}
1416+
1417+
.empty-snoozes small {
1418+
font-size: 14px;
1419+
opacity: 0.8;
1420+
}
1421+
1422+
.snoozed-repo-item {
1423+
display: flex;
1424+
align-items: center;
1425+
justify-content: space-between;
1426+
padding: 16px;
1427+
margin-bottom: 8px;
1428+
background: var(--bg-secondary);
1429+
border: 1px solid var(--border-color);
1430+
border-radius: 8px;
1431+
transition: all 0.2s;
1432+
}
1433+
1434+
.snoozed-repo-item:hover {
1435+
background: var(--bg-tertiary);
1436+
border-color: var(--border-color-dark);
1437+
}
1438+
1439+
.snoozed-repo-info {
1440+
flex: 1;
1441+
}
1442+
1443+
.snoozed-repo-name {
1444+
font-weight: 600;
1445+
color: var(--text-primary);
1446+
font-family: 'Monaco', 'Courier New', monospace;
1447+
font-size: 15px;
1448+
margin-bottom: 4px;
1449+
}
1450+
1451+
.snoozed-repo-time {
1452+
font-size: 13px;
1453+
color: var(--text-secondary);
1454+
}
1455+
1456+
.snoozed-repo-actions {
1457+
display: flex;
1458+
gap: 8px;
1459+
align-items: center;
1460+
}
1461+
1462+
.unsnooze-btn {
1463+
background: var(--danger-bg);
1464+
color: white;
1465+
border: none;
1466+
padding: 8px 16px;
1467+
border-radius: 6px;
1468+
font-size: 13px;
1469+
font-weight: 500;
1470+
cursor: pointer;
1471+
transition: all 0.2s;
1472+
}
1473+
1474+
.unsnooze-btn:hover {
1475+
background: var(--danger-hover);
1476+
transform: translateY(-1px);
1477+
box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
1478+
}
1479+
1480+
.unsnooze-btn:focus-visible {
1481+
outline: 2px solid var(--link-color);
1482+
outline-offset: 2px;
1483+
}
1484+
1485+
.snooze-expired {
1486+
opacity: 0.6;
1487+
font-style: italic;
1488+
}
1489+
1490+
.snooze-expired .snoozed-repo-name {
1491+
color: var(--text-secondary);
1492+
text-decoration: line-through;
1493+
}
1494+
1495+
.snooze-expiry-warning {
1496+
color: #f0ad4e;
1497+
font-weight: 500;
1498+
}
1499+
1500+
body.dark-mode .snooze-expiry-warning {
1501+
color: #ffc107;
13411502
}

options/options.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ <h2>Check Interval</h2>
310310

311311
<section class="section" id="snooze">
312312
<h2>Snooze Duration</h2>
313-
<p class="help-text">How long to silence notifications when you snooze a repository</p>
313+
<p class="help-text">How long to silence notifications when you snooze a repository. Snoozed repositories will appear below for management.</p>
314314

315315
<div class="chip-group">
316316
<div class="chip">
@@ -334,6 +334,16 @@ <h2>Snooze Duration</h2>
334334
<label for="snooze-24">24 hours</label>
335335
</div>
336336
</div>
337+
338+
<div class="current-snoozes">
339+
<h3>Currently Snoozed</h3>
340+
<div id="snoozedReposList" class="snoozed-repos-list">
341+
<div class="empty-snoozes" id="emptySnoozes">
342+
<p>No repositories are currently snoozed</p>
343+
<small>Snooze repositories from the popup to see them here</small>
344+
</div>
345+
</div>
346+
</div>
337347
</section>
338348

339349
<section class="section" id="import-export">

0 commit comments

Comments
 (0)