diff --git a/ka-note/VERSION b/ka-note/VERSION index bc08bb2..1b9c4a2 100644 --- a/ka-note/VERSION +++ b/ka-note/VERSION @@ -1 +1 @@ -1.1.89 \ No newline at end of file +1.1.92 \ No newline at end of file diff --git a/ka-note/client/src/lib/components/DashboardView.svelte b/ka-note/client/src/lib/components/DashboardView.svelte index b3b1e61..295fd7e 100644 --- a/ka-note/client/src/lib/components/DashboardView.svelte +++ b/ka-note/client/src/lib/components/DashboardView.svelte @@ -172,7 +172,7 @@ const allHistory = await db.historyEntries.filter(h => !h.deletedAt).toArray(); const allContexts = await db.contexts.filter(c => !c.deletedAt).toArray(); - const results: { topicId: string; historyEntryId: string; topicTitle: string; contextName: string; date: string; text: string }[] = []; + const results: { topicId: string; historyEntryId: string; topicTitle: string; contextId: string; contextName: string; date: string; text: string }[] = []; for (const h of allHistory) { const topic = allTopics.find(t => t.id === h.topicId); @@ -194,6 +194,7 @@ topicId: topic.id, historyEntryId: h.id, topicTitle: topic.title, + contextId: ctx?.id ?? '', contextName: ctx?.name ?? 'Unknown', date: h.date, text: h.text @@ -531,14 +532,23 @@ {#each $activityLog ?? [] as entry} -
-
- {entry.date} in {entry.contextName}: {entry.topicTitle} +
+
+ {entry.date} + in + {entry.contextName}: + {entry.topicTitle}
{:else} -
No entries found.
+
Keine Einträge gefunden.
{/each}
diff --git a/ka-note/client/src/lib/components/PersonList.svelte b/ka-note/client/src/lib/components/PersonList.svelte index 3b9b9f2..076151c 100644 --- a/ka-note/client/src/lib/components/PersonList.svelte +++ b/ka-note/client/src/lib/components/PersonList.svelte @@ -40,7 +40,7 @@ let years = now.getFullYear() - start.getFullYear(); let months = now.getMonth() - start.getMonth(); if (months < 0) { years--; months += 12; } - if (years > 0 && months > 0) return `${years} J. ${months} Mo.`; + if (years > 0 && months > 0) return `${years}J ${months}M`; if (years > 0) return `${years} J.`; return `${months} Mo.`; } @@ -66,6 +66,7 @@ {@const subType = (meta?.personSubType ?? 'contact') as PersonSubType} {@const showBirthday = subType === 'family' || subType === 'employee' || subType === 'colleague'} {@const showTenure = subType === 'employee' && !!meta?.joinDate} + {@const hasInfo = (showBirthday && !!meta?.birthday) || showTenure}
@@ -77,19 +78,23 @@ title={ctx.isFavorite ? 'Aus Sidebar entfernen' : 'In Sidebar anzeigen'} >★