From 75041167084435330528c1887735ee60f3a24326 Mon Sep 17 00:00:00 2001 From: McPizza Date: Fri, 2 Feb 2024 17:09:26 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(web):=20Convo=20Viewer=20(#41)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tim Raderschad --- .../web-app/components/convos/convoAvatar.vue | 20 + apps/web-app/components/convos/convoList.vue | 186 +++-- .../components/convos/convoListItem.vue | 170 ++-- .../components/convos/convoMessageItem.vue | 161 ++-- .../components/convos/convoMessages.vue | 53 +- apps/web-app/components/convos/sidebar.vue | 6 - apps/web-app/components/layout/navbar.vue | 12 +- apps/web-app/components/un/ui-avatar-list.vue | 119 --- apps/web-app/components/un/ui-avatar-plus.vue | 158 +--- apps/web-app/components/un/ui-avatar.vue | 60 +- apps/web-app/components/un/ui-popover.vue | 22 + apps/web-app/components/un/ui-tooltip.vue | 3 + apps/web-app/composables/types.ts | 12 + apps/web-app/composables/utils.ts | 63 +- apps/web-app/emails/vercel-template.vue | 117 --- apps/web-app/package.json | 1 + apps/web-app/pages/[orgSlug]/convo/[id].vue | 524 ++++++++++--- apps/web-app/pages/[orgSlug]/convo/new.vue | 29 +- apps/web-app/plugins/ virtualScroller.ts | 12 + apps/web-app/plugins/trpcClient.ts | 2 +- apps/web-app/server/trpc/index.ts | 4 - .../trpc/routers/convoRouter/convoRouter.ts | 733 ++++++++++-------- .../trpc/routers/convoRouter/entryRouter.ts | 167 ++++ .../trpc/routers/convoRouter/messageRouter.ts | 144 ---- apps/web-app/tailwind.config.ts | 1 + packages/database/schema.ts | 8 +- pnpm-lock.yaml | 38 + 27 files changed, 1553 insertions(+), 1272 deletions(-) create mode 100644 apps/web-app/components/convos/convoAvatar.vue delete mode 100644 apps/web-app/components/un/ui-avatar-list.vue create mode 100644 apps/web-app/components/un/ui-popover.vue delete mode 100644 apps/web-app/emails/vercel-template.vue create mode 100644 apps/web-app/plugins/ virtualScroller.ts create mode 100644 apps/web-app/server/trpc/routers/convoRouter/entryRouter.ts delete mode 100644 apps/web-app/server/trpc/routers/convoRouter/messageRouter.ts diff --git a/apps/web-app/components/convos/convoAvatar.vue b/apps/web-app/components/convos/convoAvatar.vue new file mode 100644 index 00000000..bbb7620d --- /dev/null +++ b/apps/web-app/components/convos/convoAvatar.vue @@ -0,0 +1,20 @@ + + diff --git a/apps/web-app/components/convos/convoList.vue b/apps/web-app/components/convos/convoList.vue index 35c74e2f..bb6dae0d 100644 --- a/apps/web-app/components/convos/convoList.vue +++ b/apps/web-app/components/convos/convoList.vue @@ -1,88 +1,99 @@