fix(ui): distinguish loading, failed and empty lists, one role label set, en dash for no value
This commit is contained in:
16 files changed
+95
-46
No files matched your search
@@ -30,10 +30,10 @@ function open() {
|
||||
if (taskID.value > 0) emit("open", taskID.value);
|
||||
}
|
||||
|
||||
// A missing timestamp gets an em-dash, not a call to ago(): substituting
|
||||
// A missing timestamp gets a dash, not a call to ago(): substituting
|
||||
// Date.now() would render "just now" for an event whose time the daemon never
|
||||
// recorded -- a claim the row cannot back.
|
||||
const when = computed(() => (props.event.at ? ago(props.event.at) : "\u2014"));
|
||||
const when = computed(() => (props.event.at ? ago(props.event.at) : "\u2013"));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -50,7 +50,7 @@ const when = computed(() => (props.event.at ? ago(props.event.at) : "\u2014"));
|
||||
describeTimelineEvent({ ...props.event, at: undefined, detail: undefined }).title
|
||||
}}</TableCell>
|
||||
<TableCell class="font-mono">{{
|
||||
taskID > 0 ? `#${taskID}` : "—"
|
||||
taskID > 0 ? `#${taskID}` : "–"
|
||||
}}</TableCell>
|
||||
<TableCell class="w-[55%] max-w-0">
|
||||
<span
|
||||
|
||||
@@ -90,7 +90,7 @@ function groupDetail(group: ActivityGroup) {
|
||||
}
|
||||
|
||||
function groupWhen(group: ActivityGroup) {
|
||||
return group.representative.at ? ago(group.representative.at) : "\u2014";
|
||||
return group.representative.at ? ago(group.representative.at) : "\u2013";
|
||||
}
|
||||
|
||||
function openTask(taskID: number) {
|
||||
@@ -142,7 +142,7 @@ function openTask(taskID: number) {
|
||||
<Badge v-if="alert.count > 1" variant="idle">×{{ alert.count }}</Badge>
|
||||
</span>
|
||||
</TableCell>
|
||||
<TableCell class="font-mono">—</TableCell>
|
||||
<TableCell class="font-mono">–</TableCell>
|
||||
<TableCell class="w-[55%] max-w-0">
|
||||
<span class="flex items-center gap-3">
|
||||
<span class="min-w-0 flex-1 truncate" :title="alert.body || undefined">{{ alert.title }}</span>
|
||||
@@ -212,7 +212,7 @@ function openTask(taskID: number) {
|
||||
</button>
|
||||
</TableCell>
|
||||
<TableCell class="font-mono">{{
|
||||
group.taskID > 0 ? `#${group.taskID}` : "—"
|
||||
group.taskID > 0 ? `#${group.taskID}` : "–"
|
||||
}}</TableCell>
|
||||
<TableCell class="w-[55%] max-w-0">
|
||||
<span
|
||||
|
||||
Reference in new issue
Block a user