copy improvement
This commit is contained in:
parent
8b8120bf1d
commit
8d2d80fcc1
@ -47,7 +47,8 @@ export const GhostwriterDrawer: React.FC<GhostwriterDrawerProps> = ({
|
|||||||
<SheetHeader>
|
<SheetHeader>
|
||||||
<SheetTitle>Ghostwriter</SheetTitle>
|
<SheetTitle>Ghostwriter</SheetTitle>
|
||||||
<SheetDescription>
|
<SheetDescription>
|
||||||
{job && `${job.title} at ${job.employer}.`}
|
The Ghostwriter will use the context of this job and your resume,
|
||||||
|
along with your writing style to help you craft the perfect message.
|
||||||
</SheetDescription>
|
</SheetDescription>
|
||||||
</SheetHeader>
|
</SheetHeader>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -14,13 +14,8 @@ export const MessageList: React.FC<MessageListProps> = ({
|
|||||||
streamingMessageId,
|
streamingMessageId,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-3">
|
<div className='space-y-3'>
|
||||||
{messages.length === 0 ? (
|
{messages.length > 0 && (
|
||||||
<div className="rounded-md border border-dashed border-border/60 p-3 text-xs text-muted-foreground">
|
|
||||||
Ask for interview prep, response drafts, or application strategy for
|
|
||||||
this job.
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
messages.map((message) => {
|
messages.map((message) => {
|
||||||
const isUser = message.role === "user";
|
const isUser = message.role === "user";
|
||||||
const isActiveStreaming =
|
const isActiveStreaming =
|
||||||
@ -37,7 +32,7 @@ export const MessageList: React.FC<MessageListProps> = ({
|
|||||||
: "border-border/60 bg-background"
|
: "border-border/60 bg-background"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className="mb-1 text-[10px] uppercase tracking-wide text-muted-foreground">
|
<div className='mb-1 text-[10px] uppercase tracking-wide text-muted-foreground'>
|
||||||
{isUser
|
{isUser
|
||||||
? "You"
|
? "You"
|
||||||
: `Ghostwriter${message.version > 1 ? ` v${message.version}` : ""}`}
|
: `Ghostwriter${message.version > 1 ? ` v${message.version}` : ""}`}
|
||||||
@ -45,7 +40,7 @@ export const MessageList: React.FC<MessageListProps> = ({
|
|||||||
{isActiveStreaming ? (
|
{isActiveStreaming ? (
|
||||||
<StreamingMessage content={message.content} />
|
<StreamingMessage content={message.content} />
|
||||||
) : (
|
) : (
|
||||||
<div className="whitespace-pre-wrap text-sm leading-relaxed text-foreground">
|
<div className='whitespace-pre-wrap text-sm leading-relaxed text-foreground'>
|
||||||
{message.content ||
|
{message.content ||
|
||||||
(message.role === "assistant" ? "..." : "")}
|
(message.role === "assistant" ? "..." : "")}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user