Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Feature: : Add rainbow background and GPT-5 announcement delight banner del

samme-abdulde0a397257ca
diff --git a/packages/app/src/react/app/routeMap.tsx b/packages/app/src/react/app/routeMap.tsx
index a1fbbe54..41025f48 100644
--- a/packages/app/src/react/app/routeMap.tsx
+++ b/packages/app/src/react/app/routeMap.tsx
@@ -267,8 +267,8 @@ export const routeMap: IPageRoute[] = [
},
},
- { path: '/', component: AgentsPage, title: 'Agents' },
- { path: '/agents', component: AgentsPage, title: 'Agents' },
+ { path: '/', component: AgentsPage, title: 'Agents', layoutOptions: { background: 'agentsGradient' } },
+ { path: '/agents', component: AgentsPage, title: 'Agents', layoutOptions: { background: 'agentsGradient' } },
{
title: 'My Plan',
diff --git a/packages/app/src/react/features/agents/components/AgentsBanner.tsx b/packages/app/src/react/features/agents/components/AgentsBanner.tsx
new file mode 100644
index 00000000..537c65fd
--- /dev/null
+++ b/packages/app/src/react/features/agents/components/AgentsBanner.tsx
@@ -0,0 +1,70 @@
+import React from 'react';
+
+const GPT5_BLOG_URL =
+ 'https://smythos.com/developers/ai-models/gpt-5-did-openai-rebuild-intelligence-with-routing-and-reasoning/';
+
+/**
+ * Small clickable banner for the /agents page
+ * Matches width of the "What agent can I help you build?" section
+ */
+interface AgentsBannerProps {
+ onClose: () => void;
+}
+
+export function AgentsBanner({ onClose }: AgentsBannerProps) {
+ const handleCloseClick: React.MouseEventHandler<HTMLButtonElement> = (e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ onClose();
+ };
+
+ return (
+ <div className="w-full px-0 md:w-[80%] max-w-[808px] mx-auto mt-4 mb-8">
+ <a
+ href={GPT5_BLOG_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="block no-underline"
+ aria-label="Learn about using GPT-5 models in your agents and LLM components"
+ >
+ <div className="w-full p-px relative bg-gray-50 rounded-lg outline outline-1 outline-offset-[-1px] outline-gray-300">
+ <div className="p-1 flex flex-col gap-1">
+ <div className="p-4 bg-gradient-to-b from-white to-blue-100/80 rounded flex flex-col gap-1.5">
+ <div className="flex justify-between items-center gap-4">
+ <div className="px-2 py-0.5 bg-indigo-100 rounded-full flex justify-center items-center gap-1 overflow-hidden">
+ <img src="/img/icons/stars.svg" alt="New" className="w-5 h-5" />
+ <div className="text-blue-500 text-base leading-normal">New</div>
+ </div>
+
+ <div className="flex-1 text-center text-slate-900 text-lg font-medium leading-none">
+ Use the GPT-5 Models in your Agents and LLM Components
+ </div>
+
+ <button
+ type="button"
+ onClick={handleCloseClick}
+ aria-label="Dismiss banner"
+ className="flex items-center justify-center w-6 h-6 rounded hover:bg-white/60"
+ >
+ <img
+ src="/image/icons/close.svg"
+ onError={(e) => {
+ const img = e.currentTarget as HTMLImageElement;
+ if (!img.src.includes('/img/icons/close.svg')) {
+ img.src = '/img/icons/close.svg';
+ }
+ }}
+ alt="Close"
+ className="w-5 h-5"
+ />
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ </div>
+ );
+}
+
+export default AgentsBanner;
diff --git a/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx b/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx
index 1bdc706f..20fb1552 100644
--- a/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx
+++ b/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx
@@ -11,12 +11,17 @@ import { GenerateAgentFormData } from '../types/agents.types';
interface GenerateAgentFormProps {
onSubmit: (data: GenerateAgentFormData) => void;
canEditAgents: boolean;
+ isBannerVisible?: boolean;
}
/**
* Form component for generating new agents with text input and file attachment support
*/
-export function GenerateAgentForm({ onSubmit, canEditAgents }: GenerateAgentFormProps) {
+export function GenerateAgentForm({
+ onSubmit,
+ canEditAgents,
+ isBannerVisible = false,
+}: GenerateAgentFormProps) {
const [initialWeaverMessage, setInitialWeaverMessage] = useState<string>('');
const [isFileUploading, setIsFileUploading] = useState(false);
const generateAgentInputRef = useRef<HTMLTextAreaElement>(null);
@@ -107,7 +112,12 @@ export function GenerateAgentForm({ onSubmit, canEditAgents }: GenerateAgentForm
);
return (
- <div className="w-full px-0 md:w-[80%] max-w-[808px] mx-auto pt-6 rounded-lg mb-20">
+ <div
+ className={classNames(
+ 'w-full px-0 md:w-[80%] max-w-[808px] mx-auto pt-6 rounded-lg',
+ isBannerVisible ? 'mb-1' : 'mb-20',
+ )}
+ >
<div className="flex items-center justify-center gap-2">
<h3 className="text-[#0F172A] text-2xl md:text-[2rem] md:leading-[1.5rem] tracking-normal font-semibold">
What agent can I help you build?
diff --git a/packages/app/src/react/features/agents/components/index.ts b/packages/app/src/react/features/agents/components/index.ts
index 1246af5c..79048d8a 100644
--- a/packages/app/src/react/features/agents/components/index.ts
+++ b/packages/app/src/react/features/agents/components/index.ts
@@ -3,3 +3,4 @@ export { AgentsHeader } from './AgentsHeader';
export { GenerateAgentForm } from './GenerateAgentForm';
export { SkeletonLoader } from './SkeletonLoader';
export { TemplatesSection } from './TemplatesSection';
+export { AgentsBanner } from './AgentsBanner';
diff --git a/packages/app/src/react/features/agents/pages/AgentsPage.tsx b/packages/app/src/react/features/agents/pages/AgentsPage.tsx
index 92847939..217b212c 100644
--- a/packages/app/src/react/features/agents/pages/AgentsPage.tsx
+++ b/packages/app/src/react/features/agents/pages/AgentsPage.tsx
@@ -1,4 +1,5 @@
import {
+ AgentsBanner,
AgentsGrid,
AgentsHeader,
GenerateAgentForm,
@@ -41,6 +42,7 @@ function AgentsPage() {
const saveUserSettingsMutation = useMutateOnboardingData();
const { isOnboardingDismissed, setOnboardingDismissed } = useOnboarding();
const [showUpsellModal, setShowUpsellModal] = useState(false);
+ const [isBannerVisible, setIsBannerVisible] = useState(true);
// Authentication and permissions
const { getPageAccess, userInfo, hasReadOnlyPageAccess } = useAuthCtx();
@@ -193,9 +195,16 @@ function AgentsPage() {
<main className="pl-12 md:pl-0">
{/* Generate Agent Form Section */}
<FeatureFlagged featureFlag={FEATURE_FLAGS.INITIATE_WEAVER_MESSAGE}>
- <GenerateAgentForm onSubmit={handleGenerateAgentSubmit} canEditAgents={canEditAgents} />
+ <GenerateAgentForm
+ onSubmit={handleGenerateAgentSubmit}
+ canEditAgents={canEditAgents}
+ isBannerVisible={isBannerVisible}
+ />
</FeatureFlagged>
+ {/* GPT-5 Promo Banner */}
+ {isBannerVisible && <AgentsBanner onClose={() => setIsBannerVisible(false)} />}
+
{/* Onboarding Tasks Section */}
{!isOnboardingDismissed && <OnboardingTasks onDismiss={handleOnboardingDismiss} />}
diff --git a/packages/app/src/react/index.css b/packages/app/src/react/index.css
index 1c817743..9a6a716f 100644
--- a/packages/app/src/react/index.css
+++ b/packages/app/src/react/index.css
@@ -4,3 +4,21 @@
/* @import '~ag-grid-community/styles/ag-grid.css';
@import '~ag-grid-community/styles/ag-theme-alpine.css'; */
+
+/* Agents page gradient background (pastel like ChatGPT home) */
+.bg-agents-gradient {
+ background:
+ /* soft white glow center */
+ radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%),
+ /* peach highlight top center */
+ radial-gradient(70% 55% at 50% 0%, rgba(255, 214, 137, 0.62) 0%, rgba(255, 214, 137, 0) 60%),
+ /* pink wash top-left */
+ radial-gradient(75% 60% at 8% 12%, rgba(255, 175, 189, 0.55) 0%, rgba(255, 175, 189, 0) 60%),
+ /* periwinkle top-right */
+ radial-gradient(75% 60% at 92% 10%, rgba(175, 195, 255, 0.55) 0%, rgba(175, 195, 255, 0) 60%),
+ /* light blue bottom-left */
+ radial-gradient(75% 60% at 12% 88%, rgba(189, 223, 255, 0.55) 0%, rgba(189, 223, 255, 0) 60%),
+ /* lavender bottom-right */
+ radial-gradient(70% 60% at 88% 92%, rgba(212, 189, 255, 0.5) 0%, rgba(212, 189, 255, 0) 60%),
+ #ffffff;
+}
\ No newline at end of file
diff --git a/packages/app/src/react/shared/components/layouts/RootLayout.tsx b/packages/app/src/react/shared/components/layouts/RootLayout.tsx
index 5a2c386a..ca2e6ddf 100644
--- a/packages/app/src/react/shared/components/layouts/RootLayout.tsx
+++ b/packages/app/src/react/shared/components/layouts/RootLayout.tsx
@@ -14,6 +14,7 @@ interface IRootLayoutProps {
container?: boolean;
noScroll?: boolean;
useFullWidthLayout?: boolean;
+ background?: 'white' | 'agentsGradient';
};
isWelcomePage?: boolean;
isAcceptInvitationPage?: boolean;
@@ -32,6 +33,7 @@ export const RootLayout = ({
container = true,
noScroll = false,
useFullWidthLayout = false,
+ background = 'white',
} = layoutOptions;
const { loading } = useAuthCtx();
const [hasScrollbar, setHasScrollbar] = useState<boolean>(false);
@@ -122,9 +124,25 @@ export const RootLayout = ({
)}
>
{useFullWidthLayout ? (
- <div className="absolute top-[-12px] left-0 h-[calc(100%+3rem)] w-[100%] bg-white"></div>
+ <div
+ className={classNames(
+ 'absolute top-[-12px] left-0 h-[calc(100%+3rem)] w-[100%] rounded-none',
+ {
+ 'bg-white': background === 'white',
+ 'bg-agents-gradient': background === 'agentsGradient',
+ },
+ )}
+ ></div>
) : (
- <div className="absolute top-1 h-full ml-16 md:ml-auto w-[calc(100%-4.5rem)] md:w-[calc(100%-0.75rem)] bg-white rounded-t-lg border border-solid border-[#D1D1D1]"></div>
+ <div
+ className={classNames(
+ 'absolute top-1 h-full ml-16 md:ml-auto w-[calc(100%-4.5rem)] md:w-[calc(100%-0.75rem)] rounded-t-lg border border-solid border-[#D1D1D1]',
+ {
+ 'bg-white': background === 'white',
+ 'bg-agents-gradient': background === 'agentsGradient',
+ },
+ )}
+ ></div>
)}
<Suspense
fallback={
diff --git a/packages/app/src/react/shared/types/route.ts b/packages/app/src/react/shared/types/route.ts
index 3b718309..8843ae6e 100644
--- a/packages/app/src/react/shared/types/route.ts
+++ b/packages/app/src/react/shared/types/route.ts
@@ -14,6 +14,11 @@ export interface IPageRoute {
noScroll?: boolean;
container?: boolean;
useFullWidthLayout?: boolean;
+ /**
+ * Optional page background override for the content container.
+ * Defaults to white when not provided.
+ */
+ background?: 'white' | 'agentsGradient';
};
render?: (res: any) => void;
diff --git a/packages/app/static/img/icons/stars.svg b/packages/app/static/img/icons/stars.svg
new file mode 100644
index 00000000..5eb780fb
--- /dev/null
+++ b/packages/app/static/img/icons/stars.svg
@@ -0,0 +1,5 @@
+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2.47852 7.30469L3.96871 8.47879C6.14544 10.1937 9.21382 10.1937 11.3906 8.47879L12.8807 7.30469L11.7067 8.79487C9.99166 10.9716 9.99166 14.04 11.7067 16.2167L12.8807 17.7069L11.3906 16.5329C9.21382 14.8179 6.14544 14.8179 3.96871 16.5329L2.47852 17.7069L3.65259 16.2167C5.36757 14.04 5.36757 10.9716 3.65259 8.79487L2.47852 7.30469Z" stroke="#3C89F9" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M5.73438 2.29297L6.17819 2.64264C6.82649 3.15342 7.74034 3.15342 8.38868 2.64264L8.83242 2.29297L8.48276 2.73679C7.97202 3.38509 7.97202 4.29894 8.48276 4.94724L8.83242 5.39106L8.38868 5.04139C7.74034 4.53062 6.82649 4.53062 6.17819 5.04139L5.73438 5.39106L6.08404 4.94724C6.59482 4.29894 6.59482 3.38509 6.08404 2.73679L5.73438 2.29297Z" stroke="#3C89F9" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M14.6133 10.6523L15.0571 11.002C15.7054 11.5128 16.6193 11.5128 17.2676 11.002L17.7114 10.6523L17.3617 11.0962C16.8509 11.7444 16.8509 12.6583 17.3617 13.3066L17.7114 13.7504L17.2676 13.4008C16.6193 12.89 15.7054 12.89 15.0571 13.4008L14.6133 13.7504L14.9629 13.3066C15.4738 12.6583 15.4738 11.7444 14.9629 11.0962L14.6133 10.6523Z" stroke="#3C89F9" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>