Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release July 2nd #729

Merged
merged 8 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

---

[Discord](https://discord.gg/k7UCsH3ps9) | [Website](https://evo.ninja) | :star: the repo !
[Discord](https://agentcoin.org/discord) | :star: the repo !

---

Expand All @@ -14,11 +14,11 @@ To get started using evo.ninja simply head to our [website](https://evo.ninja),

## Need Help?

Join our [Discord community](https://discord.gg/k7UCsH3ps9) for support and discussions.
Join our [Discord community](https://agentcoin.org/discord) for support and discussions.

[![Join us on Discord](https://invidget.switchblade.xyz/k7UCsH3ps9)](https://discord.com/invite/k7UCsH3ps9)
[![Join us on Discord](https://invidget.switchblade.xyz/6gk85fetcT)](https://discord.com/invite/6gk85fetcT)

If you have questions or encounter issues, please don't hesitate to [create a new issue](https://github.com/polywrap/evo.ninja/issues/new/choose) to get support.
If you have questions or encounter issues, please don't hesitate to [create a new issue](https://github.com/agentcoinorg/evo.ninja/issues/new/choose) to get support.

## How it works

Expand Down Expand Up @@ -55,7 +55,7 @@ Please install the following:

### Installation
1. Clone the repository
> `git clone https://github.com/polywrap/evo.ninja`
> `git clone https://github.com/agentcoinorg/evo.ninja`
2. Copy the `.env.template` file and rename it to `.env`.
> `cp .env.template .env`
3. Find the line that says OPENAI_API_KEY=, and add your unique OpenAI API Key
Expand Down
7 changes: 7 additions & 0 deletions apps/browser/components/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import Logo from "@/components/Logo";
import Button from "@/components/Button";
import ChatInputButton from "@/components/ChatInputButton";
import TextField from "@/components/TextField";
import DeprecateModal from "@/components/modals/DeprecateModal";
import { deprecateModalAtom } from "@/lib/store";
import React, { useState, ChangeEvent } from "react";
import { UploadSimple } from "@phosphor-icons/react";
import { useAtom } from "jotai";
Expand Down Expand Up @@ -52,6 +54,7 @@ const Chat: React.FC<ChatProps> = ({
const [welcomeModalOpen, setWelcomeModalOpen] = useAtom(welcomeModalAtom);
const [signInModalOpen] = useAtom(signInModalAtom);
const [settingsModalOpen] = useAtom(settingsModalAtom)
const [deprecateModalOpen, setDeprecateModalOpen] = useAtom(deprecateModalAtom);

const [message, setMessage] = useState<string>("");

Expand Down Expand Up @@ -149,6 +152,10 @@ const Chat: React.FC<ChatProps> = ({
isOpen={showDisclaimer && !welcomeModalOpen && !signInModalOpen && !settingsModalOpen}
onClose={() => setShowDisclaimer(false)}
/>
<DeprecateModal
isOpen={deprecateModalOpen}
onClose={() => setDeprecateModalOpen(false)}
/>
</main>
);
};
Expand Down
7 changes: 0 additions & 7 deletions apps/browser/components/SidebarLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import CloseSidebarIcon from "./CloseSidebarIcon";
import useWindowSize from "@/lib/hooks/useWindowSize";
import Button from "./Button";
import { List, X } from "@phosphor-icons/react";
import WelcomeModal from "./modals/WelcomeModal";
import { welcomeModalAtom } from "@/lib/store";
import { useHydrateAtoms } from "jotai/utils";

export default function SidebarLayout(props: {
Expand All @@ -22,7 +20,6 @@ export default function SidebarLayout(props: {
const [sidebarOpen, setSidebarOpen] = useAtom(sidebarAtom);
const [hoveringSidebarButton, setHovering] = useState<boolean>(false);
const { isMobile } = useWindowSize();
const [welcomeModalOpen, setWelcomeModalOpen] = useAtom(welcomeModalAtom);

useEffect(() => {
if (isMobile) {
Expand Down Expand Up @@ -88,10 +85,6 @@ export default function SidebarLayout(props: {
</>
{props.children}
</div>
<WelcomeModal
isOpen={welcomeModalOpen}
onClose={() => setWelcomeModalOpen(false)}
/>
</>
);
}
65 changes: 65 additions & 0 deletions apps/browser/components/modals/DeprecateModal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import React from "react";
import Modal from "./ModalBase";
import Button from "../Button";
import { ArrowRight } from "@phosphor-icons/react";

interface DeprecateModalProps {
isOpen: boolean;
onClose: () => void;
}

export default function DeprecateModal(props: DeprecateModalProps) {
const { isOpen, onClose } = props;

const DeprecationNotice = (
<>
<div className="relative flex h-full w-full flex-col items-center justify-center">
<div className="text-left mb-6">
<h2 className="text-xl font-bold mb-4">Dear evo.ninja user,</h2>
<p>
evo.ninja is being deprecated and will shut down on July 10th.
Please export any important documents before then.
The evo.ninja code will remain open-source at:
</p>
<a href="https://github.com/agentcoinorg/evo.ninja" target="_blank" rel="noopener noreferrer" className="text-cyan-500">
github.com/agentcoinorg/evo.ninja
</a>
</div>
<div className="text-left mb-6">
<h3 className="text-xl font-semibold mb-2">Introducing Agentcoin!</h3>
<p>
We're excited to share that we're launching <a href="https://agentcoin.org" target="_blank" rel="noopener noreferrer" className="text-cyan-500">
Agentcoin
</a>, a network of specialized AI agents that interface with decentralized protocols. We'd love for you to <a href="https://agentcoin.org/discord" target="_blank" rel="noopener noreferrer" className="text-cyan-500">join us</a> on this new journey.
</p>
</div>
<div className="text-left mb-6">
<p>
At Agentcoin, we're creating even more powerful and versatile agents, exploring AI-driven governance, treasury management, and innovative DeFi use-cases.
You can learn more about Agentcoin's mission in the announcement <a href="https://www.agentcoin.org/blog/introducing-agentcoin" target="_blank" rel="noopener noreferrer" className="text-cyan-500">post</a>.
</p>
</div>
<div className="text-left">
<p>
Your experience with evo.ninja makes you an ideal contributor to our community, and your input will be invaluable in shaping the future of AI in the web3 space.
Join the community and prompt the agents <a href="https://agentcoin.org/discord" target="_blank" rel="noopener noreferrer" className="text-cyan-500">available today</a>!
</p>
</div>
</div>
<div className="flex justify-end pt-8">
<Button onClick={() => onClose()}>
<div>Use Evo.Ninja</div>
<ArrowRight size={16} color="white" />
</Button>
</div>
</>
)

return (
<>
<Modal isOpen={isOpen} title="Important Annoucement" onClose={onClose}>
{DeprecationNotice}
</Modal>
</>
);
}
1 change: 1 addition & 0 deletions apps/browser/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const localOpenAiApiKeyAtom = atomWithStorage<string | undefined>(
export const allowTelemetryAtom = atomWithStorage("allow-telemetry", false);
export const showDisclaimerAtom = atomWithStorage("show-disclaimer", true);
export const welcomeModalAtom = atom<boolean>(false);
export const deprecateModalAtom = atom<boolean>(true);
export const signInModalAtom = atom<boolean>(false);
export const settingsModalAtom = atom<boolean>(false);
export const capReachedAtom = atom<boolean>(false);
Expand Down
Loading