diff --git a/scripts/demo_run_tools.py b/scripts/demo_run_tools.py
index dad0c1cd..0c73fcfa 100644
--- a/scripts/demo_run_tools.py
+++ b/scripts/demo_run_tools.py
@@ -9,19 +9,20 @@ from pprint import pprint
from serena.agent import SerenaAgent
from serena.config.serena_config import SerenaConfig
from serena.constants import REPO_ROOT
-from serena.tools import FindFileTool, FindReferencingSymbolsTool, GetSymbolsOverviewTool, SearchForPatternTool
+from serena.tools import FindFileTool, FindReferencingSymbolsTool, GetSymbolsOverviewTool, SearchForPatternTool, JetBrainsFindSymbolTool
if __name__ == "__main__":
- agent = SerenaAgent(project=REPO_ROOT, serena_config=SerenaConfig(gui_log_window_enabled=False, web_dashboard=True))
+ agent = SerenaAgent(project=REPO_ROOT)
# apply a tool
+ find_symbol_tool = agent.get_tool(JetBrainsFindSymbolTool)
find_refs_tool = agent.get_tool(FindReferencingSymbolsTool)
find_file_tool = agent.get_tool(FindFileTool)
search_pattern_tool = agent.get_tool(SearchForPatternTool)
overview_tool = agent.get_tool(GetSymbolsOverviewTool)
result = agent.execute_task(
- lambda: overview_tool.apply_ex(relative_file_path="src/solidlsp/ls.py"),
+ lambda: find_symbol_tool.apply("displayBasicStats"),
)
pprint(json.loads(result))
# input("Press Enter to continue...")
diff --git a/src/serena/resources/dashboard/dashboard.css b/src/serena/resources/dashboard/dashboard.css
index 91c34590..8795b895 100644
--- a/src/serena/resources/dashboard/dashboard.css
+++ b/src/serena/resources/dashboard/dashboard.css
@@ -21,6 +21,11 @@ html {
--log-warning: #FF8C00;
--log-error: #FF0000;
--stats-header: #f8f9fa;
+ --header-height: 150px;
+ --header-padding: 20px;
+ --header-gap-main: 25px;
+ --frame-padding: 25px;
+ --border-radius: 5px;
}
[data-theme="dark"] {
@@ -52,41 +57,71 @@ body {
transition: background-color 0.3s ease, color 0.3s ease;
}
+#frame {
+ max-width: 1600px;
+ margin: 0 auto;
+ padding: var(--frame-padding);
+ padding-top: 0;
+ min-width: 1280px;
+}
+
.main {
- padding: 20px;
+ padding-top: var(--header-gap-main);
}
.header {
top: 0;
left: 0;
right: 0;
+ height: var(--header-height);
background-color: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
- padding: 20px;
+ border-bottom-left-radius: var(--border-radius);
+ border-bottom-right-radius: var(--border-radius);
+ padding: var(--header-padding);
display: flex;
justify-content: space-between;
align-items: center;
+ gap: 20px;
z-index: 1000;
transition: background-color 0.3s ease, border-color 0.3s ease;
- min-height: 70px;
+ min-height: 90px;
box-shadow: var(--shadow);
+ max-width: 1600px;
+ margin: 0 auto;
+}
+
+.header-left {
+ display: flex;
+ gap: 30px;
}
.logo-container {
- flex: 1;
+ order: 1;
+ flex-shrink: 0;
+}
+
+.header-sponsor {
+ position: relative;
+ top: 0;
+ left: 0;
+ order: 2;
+ max-height: var(--header-height);
}
.logo-container img {
- max-width: 250px;
- height: auto;
+ height: var(--header-height);
display: block;
}
.header-nav {
position: relative;
display: flex;
- align-items: center;
+ align-items: flex-end;
+ width: 200px;
+ height: 100%;
gap: 10px;
+ flex-shrink: 0;
}
.menu-button {
@@ -109,7 +144,7 @@ body {
.menu-dropdown {
position: absolute;
- top: 45px;
+ top: calc(var(--header-height) + 10px);
right: 0;
background-color: var(--bg-secondary);
border: 1px solid var(--border-color);
@@ -143,8 +178,69 @@ body {
margin: 5px 0;
}
+.platinum-sponsor-slide {
+ position: absolute;
+ top: 0;
+ left: 0;
+ pointer-events: none;
+ height: 100%;
+ opacity: 0;
+ transition: opacity 0.5s ease-in-out;
+}
+
+.platinum-sponsor-slide.active {
+ opacity: 1;
+ pointer-events: auto;
+}
+
+.sponsor-image {
+ object-fit: contain;
+ border-radius: var(--border-radius);
+}
+
+.sponsor-border {
+ border: 1px solid var(--border-color);
+}
+
+.platinum-sponsor-slide .sponsor-image {
+ max-height: 100%;
+ object-fit: contain;
+}
+
+.gold-sponsors-section {
+ margin: 0 auto;
+ width: 100%;
+ position: relative;
+ align-items: center;
+ justify-content: center;
+ padding: 0;
+}
+
+.gold-banner {
+ position: relative;
+ width: 100%;
+ height: 60px;
+ overflow: hidden;
+}
+
+.gold-sponsor-slide {
+ position: absolute;
+ opacity: 0;
+ transition: opacity 0.5s ease-in-out;
+}
+
+.gold-sponsor-slide.active {
+ opacity: 1;
+ pointer-events: auto;
+}
+
+.gold-sponsor-slide .sponsor-image {
+ max-width: 100%;
+ object-fit: contain;
+}
+
.page-view {
- max-width: 1600px;
+ /*max-width: 1600px;*/
margin: 0 auto;
}
@@ -169,7 +265,7 @@ body {
.projects-section {
background-color: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: 5px;
+ border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 20px;
transition: background-color 0.3s ease, border-color 0.3s ease;
@@ -575,7 +671,7 @@ body {
background-color: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 5px;
- height: calc(100vh - 260px);
+ height: calc(100vh - var(--header-height) - 2 * var(--header-padding) - 3 * var(--header-gap-main));
max-height: 700px;
overflow-y: auto;
overflow-x: auto;
diff --git a/src/serena/resources/dashboard/dashboard.js b/src/serena/resources/dashboard/dashboard.js
index f24742bc..e950938a 100644
--- a/src/serena/resources/dashboard/dashboard.js
+++ b/src/serena/resources/dashboard/dashboard.js
@@ -40,6 +40,123 @@ class LogMessage {
};
}
+class SponsorRotation {
+ constructor() {
+ this.platinumIndex = 0;
+ this.goldIndex = 0;
+ this.platinumTimer = null;
+ this.goldTimer = null;
+ this.platinumInterval = 5000;
+ this.goldInterval = 5000;
+
+ this.init();
+ }
+
+ init() {
+ let self = this;
+ this.loadSponsors(function() {
+ self.startPlatinumRotation();
+ self.startGoldRotation();
+ });
+ }
+
+ loadSponsors(onSuccess) {
+ $.ajax({
+ url: 'https://oraios-software.de/serena-sponsors/manifest.php',
+ type: 'GET',
+ success: function (response) {
+ console.log('Sponsors loaded:', response);
+
+ function fillSponsors($container, sponsors, className) {
+ $.each(sponsors, function (index, sponsor) {
+ let $img = $('');
+ let $anchor = $('');
+ $anchor.append($img);
+ let $sponsor = $('
+
+