diff --git a/ka-note/client/src/lib/components/EditableMarkdown.svelte b/ka-note/client/src/lib/components/EditableMarkdown.svelte
new file mode 100644
index 0000000..85fb1ba
--- /dev/null
+++ b/ka-note/client/src/lib/components/EditableMarkdown.svelte
@@ -0,0 +1,91 @@
+
+
+
+
+ {#if editing}
+
editorContent = md}
+ />
+ {:else}
+
+
+ {#if content}
+
+ {:else}
+ {placeholder}
+ {/if}
+
+ {/if}
+
+
+
diff --git a/ka-note/client/src/lib/components/PersonList.svelte b/ka-note/client/src/lib/components/PersonList.svelte
new file mode 100644
index 0000000..799794b
--- /dev/null
+++ b/ka-note/client/src/lib/components/PersonList.svelte
@@ -0,0 +1,77 @@
+
+
+{#if persons.length > 0}
+
+ {#each persons as ctx (ctx.id)}
+ {@const subType = ((ctx.meta as PersonMeta | null)?.personSubType ?? 'contact') as PersonSubType}
+
+
+
+
+
+ {/each}
+
+{:else}
+
Keine Personen vorhanden.
+{/if}
+
+{#if confirmDeleteId}
+
confirmDeleteId = null}
+ />
+{/if}
diff --git a/ka-note/client/src/lib/components/ViewTabs.svelte b/ka-note/client/src/lib/components/ViewTabs.svelte
index e2c46b2..fe19d17 100644
--- a/ka-note/client/src/lib/components/ViewTabs.svelte
+++ b/ka-note/client/src/lib/components/ViewTabs.svelte
@@ -17,6 +17,7 @@
const isDailyLog = $derived(context.id === 'daily-log');
const isPerson = $derived(context.type === 'person');
+ const isCompany = $derived(context.type === 'company');
const isEmployee = $derived(isPerson && ((context.meta as PersonMeta | null)?.personSubType ?? 'contact') === 'employee');
const tabs = $derived(
@@ -29,6 +30,7 @@
]
: [
{ id: 'dashboard', label: `Dashboard: ${context.name.replace(/^(Project |Person |Firma )/, '')}` },
+ ...(isCompany ? [{ id: 'company-persons', label: 'Personen' }] : []),
...(isEmployee ? [{ id: 'ratings', label: 'Bewertungen' }] : [])
]
);
diff --git a/ka-note/client/src/routes/persons/+page.svelte b/ka-note/client/src/routes/persons/+page.svelte
index d27bbc6..c5367cb 100644
--- a/ka-note/client/src/routes/persons/+page.svelte
+++ b/ka-note/client/src/routes/persons/+page.svelte
@@ -1,84 +1,16 @@
Alle Personen
-
- {#if persons.length > 0}
-
- {#each persons as ctx (ctx.id)}
- {@const subType = ((ctx.meta as PersonMeta | null)?.personSubType ?? 'contact') as PersonSubType}
-
-
-
-
-
- {/each}
-
- {:else}
-
Keine Personen vorhanden.
- {/if}
+
-
-{#if confirmDeleteId}
- confirmDeleteId = null}
- />
-{/if}