feat(webui): invite returning users to star nanobot (#5895)
* feat(webui): invite returning users to star nanobot * fix(webui): place About Star link in settings list * fix(webui): use neutral About repository label * fix(webui): add localized Star link to About footer * fix(webui): align Star invitation with existing dialog styling * fix(webui): shorten and localize Star invitation copy * fix(webui): skip Star invitation after user interaction * fix(webui): align Star invitation meaning across locales * fix(webui): clarify Star reminder dismissal errors
This commit is contained in:
1 parent
09b2ae9a31
commit
d898998c47
21 files changed
+567
-3
No files matched your search
@@ -751,6 +751,7 @@ export function SettingsPage({
|
||||
"mx-auto w-full animate-in fade-in-0 slide-in-from-bottom-1 py-6 duration-200 ease-out",
|
||||
"motion-reduce:animate-none sm:py-8 lg:py-12",
|
||||
"settings-grid",
|
||||
activeSection === "about" && "flex min-h-full flex-col",
|
||||
!showSidebar && "settings-feature-page",
|
||||
!showSidebar && activeSection === "automations" && "settings-automations-grid",
|
||||
hostChromeInset && "pt-[4.25rem] sm:pt-[4.25rem] lg:pt-[4.75rem]",
|
||||
@@ -789,6 +790,7 @@ export function SettingsPage({
|
||||
<div
|
||||
className={cn(
|
||||
"settings-stack",
|
||||
activeSection === "about" && "flex flex-1 flex-col",
|
||||
activeSection === "channels" &&
|
||||
"flex min-h-0 flex-1 flex-col xl:overflow-hidden",
|
||||
)}
|
||||
|
||||
@@ -3,12 +3,12 @@ import {
|
||||
ArrowUpCircle,
|
||||
Bot,
|
||||
BookOpen,
|
||||
Github,
|
||||
MessageCircle,
|
||||
Check,
|
||||
ChevronRight,
|
||||
ExternalLink,
|
||||
Globe2,
|
||||
Github,
|
||||
ImageIcon,
|
||||
Loader2,
|
||||
Mic,
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
} from "lucide-react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { StarLink } from "@/components/StarPrompt";
|
||||
import { LanguageSwitcher } from "@/components/LanguageSwitcher";
|
||||
import { DEFAULT_TRANSCRIPTION_SETTINGS } from "@/components/settings/capabilities/TranscriptionSettings";
|
||||
import type { SettingsSectionKey } from "@/components/settings/contracts";
|
||||
@@ -137,12 +138,12 @@ export function OverviewSettings({
|
||||
export function AboutSettings({ currentVersion }: { currentVersion?: string }) {
|
||||
const { t } = useTranslation();
|
||||
const links = [
|
||||
{ key: "documentation", icon: BookOpen, href: "https://nanobot.wiki/" },
|
||||
{ key: "sourceCode", icon: Github, href: "https://github.com/HKUDS/nanobot" },
|
||||
{ key: "documentation", icon: BookOpen, href: "https://nanobot.wiki/" },
|
||||
{ key: "reportIssue", icon: MessageCircle, href: "https://github.com/HKUDS/nanobot/issues" },
|
||||
];
|
||||
return (
|
||||
<div className="settings-stack">
|
||||
<div className="flex flex-1 flex-col gap-5">
|
||||
<div className="flex flex-col items-center gap-4 py-6 text-center">
|
||||
<img src="/brand/nanobot_mark.svg" alt="" className="h-16 w-16 select-none" draggable={false} />
|
||||
<h1><img src="/brand/nanobot_wordmark.svg" alt="nanobot" className="h-auto w-40 select-none dark:brightness-150" draggable={false} /></h1>
|
||||
@@ -158,6 +159,9 @@ export function AboutSettings({ currentVersion }: { currentVersion?: string }) {
|
||||
</a>
|
||||
))}
|
||||
</SettingsGroup>
|
||||
<div className="mt-auto pt-8 text-center">
|
||||
<StarLink />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user