All checks were successful
Replace placeholder pages with ToolEmbed component that embeds LangGraph, LangFlow, and Langfuse in iframes when configured, or shows "Not Configured" placeholders when URLs are empty. Add ServiceUrlsContext for passing service URLs through Dioxus context. Add docker-compose services for local development: LangFlow, LangGraph (trial), Langfuse with full dependency stack (Postgres, ClickHouse, Redis, MinIO). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
822 B
Rust
28 lines
822 B
Rust
use dioxus::prelude::*;
|
|
|
|
use crate::components::ToolEmbed;
|
|
use crate::i18n::{t, Locale};
|
|
use crate::models::ServiceUrlsContext;
|
|
|
|
/// Agents page embedding the LangGraph agent builder.
|
|
///
|
|
/// When `langgraph_url` is configured, embeds the service in an iframe
|
|
/// with a pop-out button. Otherwise shows a "Not Configured" placeholder.
|
|
#[component]
|
|
pub fn AgentsPage() -> Element {
|
|
let locale = use_context::<Signal<Locale>>();
|
|
let svc = use_context::<Signal<ServiceUrlsContext>>();
|
|
let l = *locale.read();
|
|
let url = svc.read().langgraph_url.clone();
|
|
|
|
rsx! {
|
|
ToolEmbed {
|
|
url,
|
|
title: t(l, "developer.agents_title"),
|
|
description: t(l, "developer.agents_desc"),
|
|
icon: "A",
|
|
launch_label: t(l, "developer.launch_agents"),
|
|
}
|
|
}
|
|
}
|