Skip to content

Commit

Permalink
chore: update acorn to obot
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyjeong13 committed Dec 17, 2024
1 parent 88e0781 commit 98c90b5
Show file tree
Hide file tree
Showing 41 changed files with 648 additions and 308 deletions.
4 changes: 2 additions & 2 deletions ui/admin/app/components/agent/FirstModelProviderBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { Link } from "@remix-run/react";
import { $path } from "remix-routes";

import { TypographyH3, TypographyP } from "~/components/Typography";
import { AcornLogo } from "~/components/branding/AcornLogo";
import { ObotLogo } from "~/components/branding/ObotLogo";
import { Button } from "~/components/ui/button";

export function FirstModelProviderBanner() {
return (
<div className="w-full">
<div className="flex justify-center mx-8 mt-4 py-4 bg-secondary overflow-hidden rounded-xl">
<div className="flex flex-row min-h-36 items-center justify-between w-[calc(100%-4rem)] rounded-sm relative gap-4 max-w-screen-md">
<AcornLogo
<ObotLogo
hideText
classNames={{
root: "absolute opacity-45 top-[-5rem] left-[-7.5rem]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { assetUrl, cn } from "~/lib/utils";
import { TypographyH2 } from "~/components/Typography";
import { useTheme } from "~/components/theme";

export function AcornLogo({
export function ObotLogo({
hideText = false,
classNames = {},
}: {
Expand All @@ -12,10 +12,10 @@ export function AcornLogo({
}) {
const { isDark } = useTheme();
let logo = isDark
? "/logo/acorn-logo-blue-white-text.svg"
: "/logo/acorn-logo-blue-black-text.svg";
? "/logo/obot-logo-blue-white-text.svg"
: "/logo/obot-logo-blue-black-text.svg";
if (hideText) {
logo = "/logo/acorn-icon-blue.svg";
logo = "/logo/obot-icon-blue.svg";
}
return (
<TypographyH2
Expand All @@ -26,7 +26,7 @@ export function AcornLogo({
>
<img
src={assetUrl(logo)}
alt="Acorn Logo"
alt="Obot Logo"
className={cn("h-8", classNames.image)}
/>
</TypographyH2>
Expand Down
4 changes: 2 additions & 2 deletions ui/admin/app/components/errors/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ArrowLeft, HomeIcon } from "lucide-react";

import { AcornLogo } from "~/components/branding/AcornLogo";
import { ObotLogo } from "~/components/branding/ObotLogo";
import { Button } from "~/components/ui/button";
import {
Card,
Expand All @@ -17,7 +17,7 @@ export function Error({ error }: { error: Error }) {
<div className="flex min-h-screen w-full items-center justify-center p-4">
<Card className="w-96">
<CardHeader className="mx-4">
<AcornLogo />
<ObotLogo />
</CardHeader>
<CardContent className="space-y-2 text-center border-b mb-4">
<CardTitle>Oops! An error occurred</CardTitle>
Expand Down
4 changes: 2 additions & 2 deletions ui/admin/app/components/errors/RouteError.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ErrorResponse } from "@remix-run/react";

import { AcornLogo } from "~/components/branding/AcornLogo";
import { ObotLogo } from "~/components/branding/ObotLogo";
import { Button } from "~/components/ui/button";
import {
Card,
Expand All @@ -16,7 +16,7 @@ export function RouteError({ error }: { error: ErrorResponse }) {
<div className="flex min-h-screen w-full items-center justify-center p-4">
<Card className="w-96">
<CardHeader className="mx-4">
<AcornLogo />
<ObotLogo />
</CardHeader>
<CardContent className="space-y-2 text-center border-b mb-4">
<CardTitle>Oops! {error.status}</CardTitle>
Expand Down
4 changes: 2 additions & 2 deletions ui/admin/app/components/errors/Unauthorized.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AcornLogo } from "~/components/branding/AcornLogo";
import { ObotLogo } from "~/components/branding/ObotLogo";
import { Button } from "~/components/ui/button";
import {
Card,
Expand All @@ -13,7 +13,7 @@ export function Unauthorized() {
<div className="flex min-h-screen w-full items-center justify-center p-4">
<Card className="w-96">
<CardHeader className="mx-4">
<AcornLogo />
<ObotLogo />
</CardHeader>
<CardContent className="space-y-2 text-center border-b mb-4">
<CardDescription className="text-center">
Expand Down
6 changes: 3 additions & 3 deletions ui/admin/app/components/oauth-apps/DeleteOAuthApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export function DeleteOAuthApp({
<div className="flex gap-2">
<Tooltip open={getIsOpen()}>
<ConfirmationDialog
title={`Reset ${spec.displayName} OAuth to use Acorn Gateway`}
description={`By clicking \`Reset\`, you will delete your custom ${spec.displayName} OAuth configuration and reset to use Acorn Gateway.`}
title={`Reset ${spec.displayName} OAuth to use Obot Gateway`}
description={`By clicking \`Reset\`, you will delete your custom ${spec.displayName} OAuth configuration and reset to use Obot Gateway.`}
onConfirm={deleteOAuthApp.execute}
confirmProps={{
variant: "destructive",
Expand All @@ -54,7 +54,7 @@ export function DeleteOAuthApp({
{deleteOAuthApp.isLoading ? (
<LoadingSpinner className="w-4 h-4 mr-2" />
) : null}
Reset {spec.displayName} OAuth to use Acorn Gateway
Reset {spec.displayName} OAuth to use Obot Gateway
</Button>
</TooltipTrigger>
</ConfirmationDialog>
Expand Down
8 changes: 4 additions & 4 deletions ui/admin/app/components/oauth-apps/OAuthAppDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function OAuthAppDetail({
</DialogTitle>

<DialogDescription>
Acorn will now use your custom {spec.displayName} OAuth
Obot will now use your custom {spec.displayName} OAuth
app to authenticate users.
</DialogDescription>

Expand Down Expand Up @@ -153,14 +153,14 @@ function Content({
return (
<div className="flex flex-col gap-2">
<TypographyP>
Acorn only supports one custom {spec.displayName} OAuth. If you
Obot only supports one custom {spec.displayName} OAuth. If you
need to use a different configuration, you can replace the
current configuration with a new one.
</TypographyP>

<TypographyP>
When {spec.displayName} OAuth is used, Acorn will use your
custom OAuth app.
When {spec.displayName} OAuth is used, Obot will use your custom
OAuth app.
</TypographyP>

<div className="grid grid-cols-2 gap-2 px-8 py-4">
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/components/oauth-apps/OAuthAppTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function OAuthAppTile({

<TooltipContent>
OAuth for {displayName} is handled by default by
the Acorn Gateway
the Obot Gateway
</TooltipContent>
</Tooltip>
)}
Expand Down
4 changes: 2 additions & 2 deletions ui/admin/app/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { $path } from "remix-routes";

import { cn } from "~/lib/utils";

import { AcornLogo } from "~/components/branding/AcornLogo";
import { ObotLogo } from "~/components/branding/ObotLogo";
import { Button } from "~/components/ui/button";
import {
Popover,
Expand Down Expand Up @@ -89,7 +89,7 @@ export function AppSidebar() {
className={cn("h-[60px]", state === "collapsed" ? "" : "px-4")}
>
<div className={cn("flex items-center justify-center h-full")}>
<AcornLogo hideText={state === "collapsed"} />
<ObotLogo hideText={state === "collapsed"} />
</div>
</SidebarHeader>
<SidebarContent>
Expand Down
4 changes: 2 additions & 2 deletions ui/admin/app/components/signin/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FaGoogle } from "react-icons/fa";

import { cn } from "~/lib/utils";

import { AcornLogo } from "~/components/branding/AcornLogo";
import { ObotLogo } from "~/components/branding/ObotLogo";
import { Button } from "~/components/ui/button";
import {
Card,
Expand All @@ -24,7 +24,7 @@ export function SignIn({ className }: SignInProps) {
>
<CardHeader>
<CardTitle className="flex items-center justify-center">
<AcornLogo />
<ObotLogo />
</CardTitle>
<CardDescription className="text-center w-3/4 mx-auto pt-4">
Please sign in using the button below.
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/components/webhooks/WebhookConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const WebhookConfirmation = ({
</DialogHeader>

<DialogDescription>
Your webhook has been saved in Acorn. Make sure to copy the
Your webhook has been saved in Obot. Make sure to copy the
payload URL and secret to your webhook provider.
</DialogDescription>

Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/lib/model/oauthApps/providers/microsoft365.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ If you do not have a multi-tenant application, you can skip this step.\n
{
type: "markdown",
text: `
- Click **Submit** to finish registering your Application with Acorn.\n
- Click **Submit** to finish registering your Application with Obot.\n
`,
},
];
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.model-providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function ModelProviders() {
{configured ? null : (
<WarningAlert
title="No Model Providers Configured!"
description="To use Acorn's features, you'll need to
description="To use Obot's features, you'll need to
set up a Model Provider. Select and configure
one below to get started!"
/>
Expand Down
Binary file modified ui/admin/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/admin/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/admin/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/admin/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/admin/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/admin/public/favicon.ico
Binary file not shown.
22 changes: 0 additions & 22 deletions ui/admin/public/logo/acorn-icon-blue.svg

This file was deleted.

Loading

0 comments on commit 98c90b5

Please sign in to comment.