Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function AboutSetting() {

return (
<SettingCard
title="About you"
description="Provide extra information that will help our AI better understand how to process your emails."
title="Personal Instructions"
description="Tell the AI about yourself and how you'd like it to handle your emails."
right={
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
Expand All @@ -29,10 +29,10 @@ export function AboutSetting() {
</DialogTrigger>
<DialogContent className="max-w-2xl">
<DialogHeader>
<DialogTitle>About you</DialogTitle>
<DialogTitle>Personal Instructions</DialogTitle>
<DialogDescription>
Provide extra information that will help our AI better
understand how to process your emails.
Tell the AI about yourself and how you'd like it to handle your
emails.
</DialogDescription>
</DialogHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export function SettingsTab() {
return (
<div className="space-y-2">
<DraftReplies />
<AboutSetting />
<WritingStyleSetting />
<PersonalSignatureSetting />
<DraftKnowledgeSetting />
<MultiRuleSetting />
<AboutSetting />
{env.NEXT_PUBLIC_DIGEST_ENABLED && <DigestSetting />}
<PersonalSignatureSetting />
<ReferralSignatureSetting />
<LearnedPatternsSetting />
</div>
Expand Down
26 changes: 4 additions & 22 deletions apps/web/app/(app)/[emailAccountId]/settings/AboutSectionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@ import {
saveAboutBody,
} from "@/utils/actions/user.validation";

export function AboutSectionFull() {
return (
<FormSection>
<FormSectionLeft
title="About you"
description="Provide extra information that will help our AI better understand how to process your emails."
/>
<div className="md:col-span-2">
<FormSectionRight>
<div className="sm:col-span-full">
<AboutSection />
</div>
</FormSectionRight>
</div>
</FormSection>
);
}

export function AboutSection({ onSuccess }: { onSuccess?: () => void }) {
const { data, isLoading, error, mutate } = useEmailAccountFull();

Expand Down Expand Up @@ -109,10 +91,10 @@ const AboutSectionForm = ({
label=""
registerProps={register("about")}
error={errors.about}
placeholder={`My name is John Doe. I'm the founder of a startup called Doe.
Some rules to follow:
* Be friendly, concise, and professional, but not overly formal.
* Keep responses short and to the point.`}
placeholder={`My name is Alex Smith. I'm the founder of Acme.

- If I'm CC'd, it's not To Reply
- Emails from jane@accounting.com aren't Notifications`}
/>
<Button type="submit" className="mt-8" loading={isExecuting}>
Save
Expand Down
Loading