AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): remove agent activity flag (#11136)
Ubbe59d242f69c65
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsxindex ff1c229bbc..6dcea33d51 100644--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx@@ -18,15 +18,10 @@ export function AgentActivityDropdown() {recentFailures,isOpen,setIsOpen,- isAgentActivityEnabled,} = useAgentActivityDropdown();const activeCount = activeExecutions.length;- if (!isAgentActivityEnabled) {- return null;- }-return (<Popover open={isOpen} onOpenChange={setIsOpen}><PopoverTrigger asChild>diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.tsindex dcce3ac0c1..6ae8fcf219 100644--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts@@ -11,7 +11,6 @@ import {categorizeExecutions,handleExecutionUpdate,} from "./helpers";-import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";type AgentInfoMap = Map<string,@@ -19,7 +18,6 @@ type AgentInfoMap = Map<>;export function useAgentActivityDropdown() {- const isAgentActivityEnabled = useGetFlag(Flag.AGENT_ACTIVITY);const [isOpen, setIsOpen] = useState(false);const [api] = useState(() => new BackendAPI());@@ -162,6 +160,5 @@ export function useAgentActivityDropdown() {error: executionsError || agentsError,isOpen,setIsOpen,- isAgentActivityEnabled,};}diff --git a/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.ts b/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.tsindex e62ab78e17..c117c9f7a5 100644--- a/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.ts+++ b/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.ts@@ -5,7 +5,6 @@ import { useFlags } from "launchdarkly-react-client-sdk";export enum Flag {BETA_BLOCKS = "beta-blocks",- AGENT_ACTIVITY = "agent-activity",NEW_BLOCK_MENU = "new-block-menu",NEW_AGENT_RUNS = "new-agent-runs",GRAPH_SEARCH = "graph-search",@@ -18,7 +17,6 @@ export enum Flag {export type FlagValues = {[Flag.BETA_BLOCKS]: string[];- [Flag.AGENT_ACTIVITY]: boolean;[Flag.NEW_BLOCK_MENU]: boolean;[Flag.NEW_AGENT_RUNS]: boolean;[Flag.GRAPH_SEARCH]: boolean;@@ -33,7 +31,6 @@ const isPwMockEnabled = process.env.NEXT_PUBLIC_PW_TEST === "true";const mockFlags = {[Flag.BETA_BLOCKS]: [],- [Flag.AGENT_ACTIVITY]: true,[Flag.NEW_BLOCK_MENU]: false,[Flag.NEW_AGENT_RUNS]: false,[Flag.GRAPH_SEARCH]: true,