From 5039d43aef4f1529d7f8dda7a1afa5e076de057e Mon Sep 17 00:00:00 2001 From: aeschi <56318362+aeschi@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:10:26 +0200 Subject: [PATCH 01/33] feat: reduce spacing in history section (#52) * feat: reduce spacing in history section * feat: adjust sidebar design * feat: cleanup sidebar * feat: polish design - exchange icons - change font size and spacing again * feat: decrease icon size navigation --- src/components/buttons/icon-button.tsx | 3 +- .../get-started/get-started-nav-links.tsx | 4 +- src/components/icons/chat-icon.tsx | 19 ++---- src/components/icons/faq-icon.tsx | 19 ++---- src/components/icons/mail-icon.tsx | 17 ++++-- src/components/icons/new-chat-icon.tsx | 6 +- src/components/icons/pdf-icon.tsx | 19 ++---- src/components/icons/settings-icon.tsx | 21 +++++++ src/components/icons/sidebar-icon.tsx | 8 +-- src/components/icons/vermerk-icon.tsx | 6 +- .../sidebar-bar/history/history-entry.tsx | 4 +- .../sidebar-bar/history/history-group.tsx | 4 +- .../sidebar-bar/history/history.tsx | 12 +++- src/components/sidebar-bar/navigation.tsx | 4 +- src/components/sidebar-bar/side-bar.tsx | 61 ++++++++++--------- 15 files changed, 110 insertions(+), 97 deletions(-) create mode 100644 src/components/icons/settings-icon.tsx diff --git a/src/components/buttons/icon-button.tsx b/src/components/buttons/icon-button.tsx index 9402de5..72d6296 100644 --- a/src/components/buttons/icon-button.tsx +++ b/src/components/buttons/icon-button.tsx @@ -8,12 +8,11 @@ export const IconButton: React.FC = ({ ariaLabel, title, icon, - isOutlineVisible = true, className = "", }) => { return ( + } + ariaLabel="FAQ" + title="FAQ" + onClick={() => + ( + document.getElementById("faq-dialog") as HTMLDialogElement + )?.showModal() + } + /> + } + ariaLabel="Einstellungen" + title="Einstellungen" + onClick={() => + ( + document.getElementById("settings-dialog") as HTMLDialogElement + )?.showModal() + } + /> + ); From 5f4c861e2c9b2e8e9d0f033e9ed18467a0451de8 Mon Sep 17 00:00:00 2001 From: aeschi <56318362+aeschi@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:21:14 +0200 Subject: [PATCH 02/33] Feat:single prompt mail (#53) * feat: add single prompt component * feat: hide email buttons * feat: add custom system prompts * fix: linting error * feat: change toggle naming * fix: typo * feat: add new mail get started message * feat: adjust system prompt * feat: refactor email chat into new route * feat: add toggle for email chat * feat: update email chat prompt * feat: add text editing chat and prompt * feat: switch mail UI fields * feat: improve email chat prompting * feat: remove bracketed content * feat: add knowledge about other apps to system prompt * feat: add placeholder for summary again * feat: refactoring --- src/components/buttons/tag-button.tsx | 7 +- src/components/email-chat/email-chat-form.tsx | 72 +++++++++ .../email-chat/email-chat-messages.tsx | 85 +++++++++++ src/components/email-chat/email-chat.tsx | 38 +++++ .../email-chat/get-started-email-chat.tsx | 61 ++++++++ .../email/email-form/email-form.tsx | 4 +- .../email/email-form/radio-groups.tsx | 2 +- src/components/email/email.tsx | 17 ++- src/components/messages/text-message.tsx | 8 +- src/index.css | 4 + src/main.tsx | 5 + src/routes/email-chat.tsx | 11 ++ src/routes/email.tsx | 4 +- src/store/api.ts | 25 +++- src/system-prompts.ts | 138 ++++++++++++++++++ 15 files changed, 464 insertions(+), 17 deletions(-) create mode 100644 src/components/email-chat/email-chat-form.tsx create mode 100644 src/components/email-chat/email-chat-messages.tsx create mode 100644 src/components/email-chat/email-chat.tsx create mode 100644 src/components/email-chat/get-started-email-chat.tsx create mode 100644 src/routes/email-chat.tsx create mode 100644 src/system-prompts.ts diff --git a/src/components/buttons/tag-button.tsx b/src/components/buttons/tag-button.tsx index aa0e5ee..5345e86 100644 --- a/src/components/buttons/tag-button.tsx +++ b/src/components/buttons/tag-button.tsx @@ -8,13 +8,14 @@ export const TagButton: React.FC = ({ type = "button", ariaLabel, title, + className = "", }) => { return (