forkit-connect 0.1.14 → 0.1.15
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.
- package/dist/launcher.js +51 -121
- package/package.json +1 -1
package/dist/launcher.js
CHANGED
|
@@ -1807,11 +1807,12 @@ function renderLauncherHtml(launcherToken) {
|
|
|
1807
1807
|
|
|
1808
1808
|
.quick-review-chip:focus-visible,
|
|
1809
1809
|
.quick-review-primary:focus-visible,
|
|
1810
|
-
.quick-review-
|
|
1810
|
+
.quick-review-secondary:focus-visible,
|
|
1811
|
+
.quick-review-danger:focus-visible,
|
|
1812
|
+
.quick-review-tertiary:focus-visible,
|
|
1811
1813
|
.review-mode-button:focus-visible,
|
|
1812
1814
|
.quick-review-field select:focus-visible,
|
|
1813
|
-
.discovery-review-field select:focus-visible
|
|
1814
|
-
.quick-review-options-menu button:focus-visible {
|
|
1815
|
+
.discovery-review-field select:focus-visible {
|
|
1815
1816
|
outline: 2px solid rgba(157, 238, 245, 0.72);
|
|
1816
1817
|
outline-offset: 2px;
|
|
1817
1818
|
}
|
|
@@ -2090,9 +2091,8 @@ function renderLauncherHtml(launcherToken) {
|
|
|
2090
2091
|
|
|
2091
2092
|
.quick-review-actions {
|
|
2092
2093
|
display: grid;
|
|
2093
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
2094
2094
|
gap: 10px;
|
|
2095
|
-
align-items:
|
|
2095
|
+
align-items: stretch;
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
.review-resolution-actions {
|
|
@@ -2137,94 +2137,66 @@ function renderLauncherHtml(launcherToken) {
|
|
|
2137
2137
|
}
|
|
2138
2138
|
|
|
2139
2139
|
.quick-review-primary:disabled,
|
|
2140
|
-
.quick-review-
|
|
2140
|
+
.quick-review-secondary:disabled,
|
|
2141
|
+
.quick-review-danger:disabled,
|
|
2142
|
+
.quick-review-tertiary:disabled {
|
|
2141
2143
|
opacity: 0.45;
|
|
2142
2144
|
cursor: not-allowed;
|
|
2143
2145
|
}
|
|
2144
2146
|
|
|
2145
|
-
.quick-review-
|
|
2146
|
-
position: relative;
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
.quick-review-options-button {
|
|
2150
|
-
min-height: 52px;
|
|
2151
|
-
padding: 0 16px;
|
|
2152
|
-
border-radius: 16px;
|
|
2153
|
-
border: 1px solid rgba(241, 235, 223, 0.14);
|
|
2154
|
-
background: rgba(255,255,255,0.05);
|
|
2155
|
-
color: #fff7ea;
|
|
2156
|
-
font-size: 0.92rem;
|
|
2157
|
-
font-weight: 600;
|
|
2158
|
-
cursor: pointer;
|
|
2159
|
-
min-width: 122px;
|
|
2160
|
-
transition: background 160ms ease, border-color 160ms ease;
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
.quick-review-options-button:hover {
|
|
2164
|
-
background: rgba(255,255,255,0.08);
|
|
2165
|
-
border-color: rgba(157, 238, 245, 0.22);
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
.quick-review-options-menu {
|
|
2169
|
-
position: absolute;
|
|
2170
|
-
top: calc(100% + 8px);
|
|
2171
|
-
right: 0;
|
|
2172
|
-
min-width: 214px;
|
|
2147
|
+
.quick-review-secondary-actions {
|
|
2173
2148
|
display: grid;
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
border-radius: 18px;
|
|
2177
|
-
border: 1px solid rgba(241, 235, 223, 0.12);
|
|
2178
|
-
background: rgba(19, 20, 31, 0.98);
|
|
2179
|
-
box-shadow: 0 22px 44px rgba(7, 10, 24, 0.38);
|
|
2149
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2150
|
+
gap: 10px;
|
|
2180
2151
|
}
|
|
2181
2152
|
|
|
2182
|
-
.quick-review-
|
|
2153
|
+
.quick-review-secondary,
|
|
2154
|
+
.quick-review-danger,
|
|
2155
|
+
.quick-review-tertiary {
|
|
2183
2156
|
min-height: 46px;
|
|
2184
|
-
border-radius:
|
|
2185
|
-
border: 1px solid transparent;
|
|
2186
|
-
background: rgba(255,255,255,0.04);
|
|
2187
|
-
color: #f7efe4;
|
|
2188
|
-
text-align: left;
|
|
2189
|
-
padding: 10px 12px;
|
|
2157
|
+
border-radius: 14px;
|
|
2190
2158
|
font-size: 0.9rem;
|
|
2191
2159
|
font-weight: 600;
|
|
2192
2160
|
cursor: pointer;
|
|
2161
|
+
transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
|
|
2193
2162
|
}
|
|
2194
2163
|
|
|
2195
|
-
.quick-review-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
display: grid;
|
|
2201
|
-
gap: 2px;
|
|
2164
|
+
.quick-review-secondary {
|
|
2165
|
+
border: 1px solid rgba(241, 235, 223, 0.14);
|
|
2166
|
+
background: rgba(255,255,255,0.05);
|
|
2167
|
+
color: #fff7ea;
|
|
2168
|
+
padding: 0 14px;
|
|
2202
2169
|
}
|
|
2203
2170
|
|
|
2204
|
-
.quick-review-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
color: #fff7ea;
|
|
2208
|
-
font-weight: 600;
|
|
2171
|
+
.quick-review-secondary:hover {
|
|
2172
|
+
background: rgba(255,255,255,0.08);
|
|
2173
|
+
border-color: rgba(157, 238, 245, 0.22);
|
|
2209
2174
|
}
|
|
2210
2175
|
|
|
2211
|
-
.quick-review-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
color:
|
|
2176
|
+
.quick-review-danger {
|
|
2177
|
+
border: 1px solid rgba(255, 125, 149, 0.22);
|
|
2178
|
+
background: rgba(109, 29, 46, 0.24);
|
|
2179
|
+
color: #ffd4da;
|
|
2180
|
+
padding: 0 14px;
|
|
2215
2181
|
}
|
|
2216
2182
|
|
|
2217
|
-
.quick-review-
|
|
2218
|
-
background: rgba(
|
|
2219
|
-
border-color: rgba(
|
|
2183
|
+
.quick-review-danger:hover {
|
|
2184
|
+
background: rgba(124, 33, 52, 0.34);
|
|
2185
|
+
border-color: rgba(255, 160, 180, 0.32);
|
|
2220
2186
|
}
|
|
2221
2187
|
|
|
2222
|
-
.quick-review-
|
|
2223
|
-
|
|
2188
|
+
.quick-review-tertiary {
|
|
2189
|
+
min-height: 0;
|
|
2190
|
+
border: none;
|
|
2191
|
+
background: transparent;
|
|
2192
|
+
color: rgba(157, 238, 245, 0.92);
|
|
2193
|
+
justify-self: start;
|
|
2194
|
+
padding: 0;
|
|
2224
2195
|
}
|
|
2225
2196
|
|
|
2226
|
-
.quick-review-
|
|
2227
|
-
color: #
|
|
2197
|
+
.quick-review-tertiary:hover {
|
|
2198
|
+
color: #bdf6fb;
|
|
2199
|
+
text-decoration: underline;
|
|
2228
2200
|
}
|
|
2229
2201
|
|
|
2230
2202
|
.status-chip {
|
|
@@ -6548,29 +6520,11 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6548
6520
|
</div>
|
|
6549
6521
|
<div class="quick-review-actions">
|
|
6550
6522
|
<button class="quick-review-primary" id="quick-review-primary" type="button" disabled>Approve and register</button>
|
|
6551
|
-
<div class="quick-review-
|
|
6552
|
-
<button class="quick-review-
|
|
6553
|
-
<
|
|
6554
|
-
<button id="quick-review-open-discovery" type="button">
|
|
6555
|
-
<span class="quick-review-menu-copy">
|
|
6556
|
-
<span class="quick-review-menu-label">Open full review</span>
|
|
6557
|
-
<span class="quick-review-menu-meta">See the full local discovery context.</span>
|
|
6558
|
-
</span>
|
|
6559
|
-
</button>
|
|
6560
|
-
<button id="quick-review-defer" type="button">
|
|
6561
|
-
<span class="quick-review-menu-copy">
|
|
6562
|
-
<span class="quick-review-menu-label">Not now (24h)</span>
|
|
6563
|
-
<span class="quick-review-menu-meta">Hide this prompt until tomorrow.</span>
|
|
6564
|
-
</span>
|
|
6565
|
-
</button>
|
|
6566
|
-
<button id="quick-review-ignore" class="danger" type="button">
|
|
6567
|
-
<span class="quick-review-menu-copy">
|
|
6568
|
-
<span class="quick-review-menu-label">Deny on this device</span>
|
|
6569
|
-
<span class="quick-review-menu-meta">Keep it out of this device review queue.</span>
|
|
6570
|
-
</span>
|
|
6571
|
-
</button>
|
|
6572
|
-
</div>
|
|
6523
|
+
<div class="quick-review-secondary-actions">
|
|
6524
|
+
<button class="quick-review-secondary" id="quick-review-defer" type="button" disabled>Not now</button>
|
|
6525
|
+
<button class="quick-review-danger" id="quick-review-ignore" type="button" disabled>Deny on this device</button>
|
|
6573
6526
|
</div>
|
|
6527
|
+
<button class="quick-review-tertiary" id="quick-review-open-discovery" type="button" disabled>Open full review</button>
|
|
6574
6528
|
</div>
|
|
6575
6529
|
<div class="review-resolution-actions" id="quick-review-resolution" hidden>
|
|
6576
6530
|
<button class="review-resolution-button" id="quick-review-resolution-primary" type="button" hidden></button>
|
|
@@ -6959,7 +6913,7 @@ function renderLauncherHtml(launcherToken) {
|
|
|
6959
6913
|
</div>
|
|
6960
6914
|
<div class="discovery-review-actions">
|
|
6961
6915
|
<button class="primary" id="discovery-review-primary" type="button" disabled>Review</button>
|
|
6962
|
-
<button class="secondary" id="discovery-review-defer" type="button" disabled>
|
|
6916
|
+
<button class="secondary" id="discovery-review-defer" type="button" disabled>Not now</button>
|
|
6963
6917
|
<button class="danger" id="discovery-review-ignore" type="button" disabled>Deny on this device</button>
|
|
6964
6918
|
</div>
|
|
6965
6919
|
<div class="review-resolution-actions" id="discovery-review-resolution" hidden>
|
|
@@ -7885,14 +7839,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
7885
7839
|
}
|
|
7886
7840
|
}
|
|
7887
7841
|
|
|
7888
|
-
function setQuickReviewOptionsOpen(open) {
|
|
7889
|
-
const button = document.getElementById('quick-review-options');
|
|
7890
|
-
const menu = document.getElementById('quick-review-options-menu');
|
|
7891
|
-
if (!button || !menu) return;
|
|
7892
|
-
menu.hidden = !open;
|
|
7893
|
-
button.setAttribute('aria-expanded', open ? 'true' : 'false');
|
|
7894
|
-
}
|
|
7895
|
-
|
|
7896
7842
|
function setQuickReviewPanelOpen(open) {
|
|
7897
7843
|
const toggle = document.getElementById('quick-review-toggle');
|
|
7898
7844
|
const panel = document.getElementById('quick-review-panel');
|
|
@@ -7908,9 +7854,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
7908
7854
|
}
|
|
7909
7855
|
: {});
|
|
7910
7856
|
}
|
|
7911
|
-
if (!open) {
|
|
7912
|
-
setQuickReviewOptionsOpen(false);
|
|
7913
|
-
}
|
|
7914
7857
|
}
|
|
7915
7858
|
|
|
7916
7859
|
function updateQuickReviewScopeSummary(scopeMode) {
|
|
@@ -8008,7 +7951,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8008
7951
|
const workspaceSelect = document.getElementById('quick-review-workspace');
|
|
8009
7952
|
const projectSelect = document.getElementById('quick-review-project');
|
|
8010
7953
|
const primaryButton = document.getElementById('quick-review-primary');
|
|
8011
|
-
const optionsButton = document.getElementById('quick-review-options');
|
|
8012
7954
|
const openDiscoveryButton = document.getElementById('quick-review-open-discovery');
|
|
8013
7955
|
const deferButton = document.getElementById('quick-review-defer');
|
|
8014
7956
|
const ignoreButton = document.getElementById('quick-review-ignore');
|
|
@@ -8043,17 +7985,16 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8043
7985
|
primaryButton.textContent = primaryLabel;
|
|
8044
7986
|
primaryButton.disabled = item.inboxGroup === 'ignored';
|
|
8045
7987
|
}
|
|
8046
|
-
if (optionsButton) {
|
|
8047
|
-
optionsButton.disabled = false;
|
|
8048
|
-
}
|
|
8049
7988
|
if (openDiscoveryButton) {
|
|
8050
|
-
openDiscoveryButton.
|
|
7989
|
+
openDiscoveryButton.disabled = false;
|
|
8051
7990
|
}
|
|
8052
7991
|
if (deferButton) {
|
|
8053
7992
|
deferButton.hidden = !canReviewDefer(item);
|
|
7993
|
+
deferButton.disabled = !canReviewDefer(item);
|
|
8054
7994
|
}
|
|
8055
7995
|
if (ignoreButton) {
|
|
8056
7996
|
ignoreButton.hidden = !canReviewIgnore(item);
|
|
7997
|
+
ignoreButton.disabled = !canReviewIgnore(item);
|
|
8057
7998
|
}
|
|
8058
7999
|
|
|
8059
8000
|
const showScopeChoice = canChooseReviewScope(item);
|
|
@@ -8184,7 +8125,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8184
8125
|
setActivityMessage(result.message || 'Review deferred.', result.ok ? 'ok' : 'warn');
|
|
8185
8126
|
await refreshAll();
|
|
8186
8127
|
resetReviewResolutionActions('quick-review');
|
|
8187
|
-
setQuickReviewOptionsOpen(false);
|
|
8188
8128
|
}
|
|
8189
8129
|
|
|
8190
8130
|
async function submitQuickReviewIgnore() {
|
|
@@ -8201,7 +8141,6 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8201
8141
|
setActivityMessage(result.message || 'Item denied on this device.', result.ok ? 'ok' : 'warn');
|
|
8202
8142
|
await refreshAll();
|
|
8203
8143
|
resetReviewResolutionActions('quick-review');
|
|
8204
|
-
setQuickReviewOptionsOpen(false);
|
|
8205
8144
|
}
|
|
8206
8145
|
|
|
8207
8146
|
function setDiscoveryReviewButtons(config) {
|
|
@@ -8424,7 +8363,7 @@ function renderLauncherHtml(launcherToken) {
|
|
|
8424
8363
|
async function submitDiscoveryReviewDefer() {
|
|
8425
8364
|
const item = getSelectedDiscoveryItem();
|
|
8426
8365
|
if (!item || !canReviewDefer(item)) {
|
|
8427
|
-
setDiscoveryReviewStatus('
|
|
8366
|
+
setDiscoveryReviewStatus('Not now is not available for this item.', 'warn');
|
|
8428
8367
|
return;
|
|
8429
8368
|
}
|
|
8430
8369
|
const result = await postAction('/api/discovery/review/defer', 'Deferring this review...', {
|
|
@@ -10303,18 +10242,9 @@ function renderLauncherHtml(launcherToken) {
|
|
|
10303
10242
|
void handleReviewResolutionAction('quick-review', String(quickReviewResolutionSecondary.dataset.action || '').trim());
|
|
10304
10243
|
});
|
|
10305
10244
|
}
|
|
10306
|
-
const quickReviewOptionsButton = document.getElementById('quick-review-options');
|
|
10307
|
-
if (quickReviewOptionsButton) {
|
|
10308
|
-
quickReviewOptionsButton.addEventListener('click', (event) => {
|
|
10309
|
-
event.stopPropagation();
|
|
10310
|
-
const menu = document.getElementById('quick-review-options-menu');
|
|
10311
|
-
setQuickReviewOptionsOpen(Boolean(menu && menu.hidden));
|
|
10312
|
-
});
|
|
10313
|
-
}
|
|
10314
10245
|
const quickReviewOpenDiscovery = document.getElementById('quick-review-open-discovery');
|
|
10315
10246
|
if (quickReviewOpenDiscovery) {
|
|
10316
10247
|
quickReviewOpenDiscovery.addEventListener('click', () => {
|
|
10317
|
-
setQuickReviewOptionsOpen(false);
|
|
10318
10248
|
setQuickReviewPanelOpen(false);
|
|
10319
10249
|
setView('discovery');
|
|
10320
10250
|
renderDiscoveryRows();
|