mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 15:22:20 +10:00
v5.2.0: undo/redo, version history, embedded AI assistant, mobile builder & more (#3205)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -116,13 +116,13 @@ export function NewThreadSetup({ resumeId }: NewThreadSetupProps) {
|
||||
value={aiProviderId}
|
||||
options={providerOptions}
|
||||
disabled={isLoadingProviders || providerOptions.length === 0}
|
||||
placeholder={isLoadingProviders ? t`Loading providers…` : t`Select a tested provider`}
|
||||
placeholder={isLoadingProviders ? t`Loading providers…` : t`Select an AI provider`}
|
||||
onValueChange={setAiProviderIdOverride}
|
||||
/>
|
||||
{providerOptions.length === 0 && !isLoadingProviders ? (
|
||||
<div className="flex flex-col gap-3 rounded-md border border-dashed p-3 text-sm lg:flex-row lg:items-center lg:justify-between">
|
||||
<span className="text-muted-foreground">
|
||||
<Trans>Add and test a provider before starting a thread.</Trans>
|
||||
<Trans>Set up an AI provider to get started.</Trans>
|
||||
</span>
|
||||
<Button
|
||||
size="sm"
|
||||
@@ -187,7 +187,7 @@ export function NewThreadSetup({ resumeId }: NewThreadSetupProps) {
|
||||
getOrpcErrorMessage(error, {
|
||||
byCode: {
|
||||
PRECONDITION_FAILED: t`AI agent setup is unavailable until REDIS_URL and ENCRYPTION_SECRET are configured.`,
|
||||
BAD_REQUEST: t`Select a tested provider before starting a thread.`,
|
||||
BAD_REQUEST: t`Set up an AI provider before starting a thread.`,
|
||||
},
|
||||
fallback: t`Failed to start agent thread.`,
|
||||
}),
|
||||
|
||||
@@ -184,11 +184,9 @@ export function AgentThreadSidebar({ activeThreadId = null, className }: AgentTh
|
||||
<Trans>Threads</Trans>
|
||||
</div>
|
||||
</div>
|
||||
<Button size="icon-sm" variant="ghost" nativeButton={false} render={<Link to="/dashboard/resumes" />}>
|
||||
<Button size="sm" variant="ghost" nativeButton={false} render={<Link to="/dashboard/resumes" />}>
|
||||
<ArrowLeftIcon />
|
||||
<span className="sr-only">
|
||||
<Trans>Back to resumes</Trans>
|
||||
</span>
|
||||
<Trans>Back to resumes</Trans>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user