@kernhq/module-tracker 0.11.7 → 0.11.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernhq/module-tracker",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.8",
|
|
4
4
|
"description": "Kern tracker module: projects, work item types, custom fields, workflows, issues, KQL, cycles, views, reports, intake, time tracking (server + client skeleton)",
|
|
5
5
|
"homepage": "https://github.com/KernAIO/module-tracker#readme",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -253,9 +253,13 @@ const statusLabel = (status: Cycle['status']) =>
|
|
|
253
253
|
{/if}
|
|
254
254
|
|
|
255
255
|
{#if confirmingId === cycle.id}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
<!-- The role sits on a child rather than on the `<li>`: a list item is non-interactive,
|
|
257
|
+
and Svelte refuses an interactive role on one. Every other confirmation in this
|
|
258
|
+
module already does it this way. -->
|
|
259
|
+
<li class="panel danger">
|
|
260
|
+
<div role="alertdialog" aria-label={t('planning_remove_body', { name: cycle.name })}>
|
|
261
|
+
<span>{t('planning_remove_body', { name: cycle.name })}</span>
|
|
262
|
+
<div class="row">
|
|
259
263
|
<Button
|
|
260
264
|
size="sm"
|
|
261
265
|
variant="danger"
|
|
@@ -266,7 +270,8 @@ const statusLabel = (status: Cycle['status']) =>
|
|
|
266
270
|
>
|
|
267
271
|
{t('common.delete')}
|
|
268
272
|
</Button>
|
|
269
|
-
|
|
273
|
+
<Button size="sm" variant="ghost" onclick={() => (confirmingId = null)}>{t('common.cancel')}</Button>
|
|
274
|
+
</div>
|
|
270
275
|
</div>
|
|
271
276
|
</li>
|
|
272
277
|
{/if}
|
|
@@ -129,12 +129,17 @@ const commitEdit = () => {
|
|
|
129
129
|
{/if}
|
|
130
130
|
</li>
|
|
131
131
|
{#if confirmingId === item.id}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
<!-- The role sits on a child rather than on the `<li>`: a list item is non-interactive,
|
|
133
|
+
and Svelte refuses an interactive role on one. `.confirm` moves with it and now
|
|
134
|
+
declares its own `display: flex` — it had been borrowing the `<li>`'s. -->
|
|
135
|
+
<li>
|
|
136
|
+
<div class="confirm" role="alertdialog" aria-label={t('planning_remove_body', { name: item.name })}>
|
|
137
|
+
<span>{t('planning_remove_body', { name: item.name })}</span>
|
|
138
|
+
<Button size="sm" variant="danger" onclick={() => { onremove(item.id); confirmingId = null }}>
|
|
139
|
+
{t('common.delete')}
|
|
140
|
+
</Button>
|
|
141
|
+
<Button size="sm" variant="ghost" onclick={() => (confirmingId = null)}>{t('common.cancel')}</Button>
|
|
142
|
+
</div>
|
|
138
143
|
</li>
|
|
139
144
|
{/if}
|
|
140
145
|
{:else}
|
|
@@ -226,6 +231,9 @@ li {
|
|
|
226
231
|
color: var(--kern-ink-400);
|
|
227
232
|
}
|
|
228
233
|
.confirm {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
flex: 1;
|
|
229
237
|
gap: 8px;
|
|
230
238
|
font-size: 12.5px;
|
|
231
239
|
color: var(--kern-danger);
|