feat: Add BetaTag to Copilot resume chat label in SettingsOther component

This commit is contained in:
n4ze3m 2024-05-25 10:16:13 +05:30
parent 3104409558
commit 014565a14e
3 changed files with 120 additions and 121 deletions

View File

@ -10,7 +10,6 @@ import { useTranslation } from "react-i18next"
import { Link, useLocation } from "react-router-dom" import { Link, useLocation } from "react-router-dom"
import { OllamaIcon } from "../Icons/Ollama" import { OllamaIcon } from "../Icons/Ollama"
import { Tag } from "antd" import { Tag } from "antd"
import { BetaTag } from "../Common/Beta"
function classNames(...classes: string[]) { function classNames(...classes: string[]) {
return classes.filter(Boolean).join(" ") return classes.filter(Boolean).join(" ")
@ -82,7 +81,6 @@ export const SettingsLayout = ({ children }: { children: React.ReactNode }) => {
name={ name={
<div className="inline-flex items-center gap-2"> <div className="inline-flex items-center gap-2">
{t("manageKnowledge.title")} {t("manageKnowledge.title")}
<BetaTag />
</div> </div>
} }
icon={BlocksIcon} icon={BlocksIcon}

View File

@ -91,9 +91,7 @@ export const ModelsBody = () => {
{status === "pending" && <Skeleton paragraph={{ rows: 8 }} />} {status === "pending" && <Skeleton paragraph={{ rows: 8 }} />}
{status === "success" && ( {status === "success" && (
<div <div className="overflow-x-auto">
className="overflow-x-auto"
>
<Table <Table
columns={[ columns={[
{ {
@ -223,6 +221,7 @@ export const ModelsBody = () => {
onSubmit={form.onSubmit((values) => pullOllamaModel(values.model))}> onSubmit={form.onSubmit((values) => pullOllamaModel(values.model))}>
<Input <Input
{...form.getInputProps("model")} {...form.getInputProps("model")}
required
placeholder={t("manageModels.modal.placeholder")} placeholder={t("manageModels.modal.placeholder")}
size="large" size="large"
/> />

View File

@ -86,10 +86,12 @@ export const SettingOther = () => {
/> />
</div> </div>
<div className="flex flex-row justify-between"> <div className="flex flex-row justify-between">
<div className="inline-flex items-center gap-2">
<BetaTag />
<span className="text-gray-500 dark:text-neutral-50"> <span className="text-gray-500 dark:text-neutral-50">
{t("generalSettings.settings.copilotResumeLastChat.label")} {t("generalSettings.settings.copilotResumeLastChat.label")}
</span> </span>
</div>
<Switch <Switch
checked={copilotResumeLastChat} checked={copilotResumeLastChat}
onChange={(checked) => setCopilotResumeLastChat(checked)} onChange={(checked) => setCopilotResumeLastChat(checked)}