diff --git a/src/lib/components/CollaboratorPopover.svelte b/src/lib/components/CollaboratorPopover.svelte new file mode 100644 index 0000000..07ef66d --- /dev/null +++ b/src/lib/components/CollaboratorPopover.svelte @@ -0,0 +1,68 @@ + + + +
+ + + {#if showPopover} +
+

Shared with

+ +
+ {/if} +
diff --git a/src/lib/components/NoteCard.svelte b/src/lib/components/NoteCard.svelte index 3ef6527..dab4a7b 100644 --- a/src/lib/components/NoteCard.svelte +++ b/src/lib/components/NoteCard.svelte @@ -1,15 +1,17 @@ + + +
+ +
e.stopPropagation()} + onkeydown={(e) => e.stopPropagation()} + data-testid="share-dialog" + > + +
+

Share note

+ +
+ + +
+
+ + +
+ + + {#if searchResults.length > 0} +
    + {#each searchResults as user} +
  • + +
  • + {/each} +
+ {/if} +
+ + +
+

People with access

+
    + +
  • + + {ownerName} + (Owner) + +
  • + + {#each collaborators as collab} +
  • + + {collab.displayName || collab.email} + + +
  • + {/each} +
+
+
+