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

Dark Theme Support for Agentneo #105

Merged
merged 10 commits into from
Jan 15, 2025
6 changes: 4 additions & 2 deletions agentneo/ui/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
<meta name="description" content="Agentic Observability & Evaluation Framework" />
<link rel="apple-touch-icon" href="/assets/favicon-Btggvy49.svg" />
<title>AgentNeo</title>
<script type="module" crossorigin src="/assets/index-CjY9R8QG.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BxKkXIG1.css">

<script type="module" crossorigin src="/assets/index-Dk5R_t1y.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CHkKqzmw.css">

</head>

<body>
Expand Down
16 changes: 7 additions & 9 deletions agentneo/ui/src/App.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
@apply max-w-7xl mx-auto p-8 text-center;
}

.logo {
height: 6em;
padding: 1.5em;
@apply h-24 p-6;
will-change: filter;
transition: filter 300ms;
}

.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
Expand All @@ -34,9 +32,9 @@
}

.card {
padding: 2em;
@apply p-8;
}

.read-the-docs {
color: #888;
}
@apply text-gray-500 dark:text-gray-400;
}
49 changes: 26 additions & 23 deletions agentneo/ui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { SidebarProvider } from './contexts/SidebarContext';
import { ProjectProvider } from './contexts/ProjectContext';
import Overview from './pages/Overview';
import Analysis from './pages/Analysis';
import TraceHistory from './pages/TraceHistory';
import Evaluation from './pages/Evaluation';
import React from 'react'
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { SidebarProvider } from './contexts/SidebarContext'
import { ProjectProvider } from './contexts/ProjectContext'
import Overview from './pages/Overview'
import Analysis from './pages/Analysis'
import TraceHistory from './pages/TraceHistory'
import Evaluation from './pages/Evaluation'
import { ThemeProvider } from '@/theme/ThemeProvider'

function App() {
function App () {
return (
<ProjectProvider>
<SidebarProvider>
<Router>
<Routes>
<Route path="/" element={<Overview />} />
<Route path="/analysis" element={<Analysis />} />
<Route path="/trace-history" element={<TraceHistory />} />
<Route path="/evaluation" element={<Evaluation />} />
</Routes>
</Router>
</SidebarProvider>
</ProjectProvider>
);
<ThemeProvider defaultTheme='system' storageKey='vite-ui-theme'>
<ProjectProvider>
<SidebarProvider>
<Router>
<Routes>
<Route path='/' element={<Overview />} />
<Route path='/analysis' element={<Analysis />} />
<Route path='/trace-history' element={<TraceHistory />} />
<Route path='/evaluation' element={<Evaluation />} />
</Routes>
</Router>
</SidebarProvider>
</ProjectProvider>
</ThemeProvider>
)
}

export default App;
export default App
Loading