diff --git a/webui/routes.go b/webui/routes.go index d92a42c..86f647c 100644 --- a/webui/routes.go +++ b/webui/routes.go @@ -29,7 +29,9 @@ func (app *App) registerRoutes(pool *state.AgentPool, webapp *fiber.App) { webapp.Get("/", func(c *fiber.Ctx) error { return c.Render("views/index", fiber.Map{ - "Agents": pool.List(), + "Agents": pool.List(), + "AgentCount": len(pool.List()), + "Actions": len(services.AvailableActions), }) }) diff --git a/webui/views/agents.html b/webui/views/agents.html index 19a234f..95e0029 100644 --- a/webui/views/agents.html +++ b/webui/views/agents.html @@ -6,93 +6,133 @@ Agent List {{template "views/partials/header"}} - + {{template "views/partials/menu"}} +
-
+
-

Smart Agent List

+

Smart Agent List

+

Manage and interact with your AI agents

+
- - Add New Agent + + Add New Agent -
+ +
{{ $status := .Status }} {{ range .Agents }} -
- {{.}} -

{{.}}

-

Online: {{ index $status . }}

-
- - Status - - - Talk - - - - - Settings - +
+
+ +

{{.}}

+
+ + {{ if eq (index $status .) true }}Active{{ else }}Inactive{{ end }} + +
+ + + +
+ + + + + +
{{ end }}
-
-

© 2025 Smart Agent List. All rights reserved.

+ + + +
+

© 2025 LocalAgent.

- - - - + {{template "views/partials/menu"}} -
-

Create New Agent

+
+
+

Create New Agent

+ +
+
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
- - - - -
- - -
- -
-
- - - - -
-
- - - - -
-
- - - -
- - + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
-
-
-
- - - - -
- - + + +
+ + - - - - - - - - - - - - - - - - - -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- - -
- -
- -
- -
- Agent created successfully! Redirecting to agent list... -
- - -
- Error creating agent. -
-
- -
- - + // Add additional CSS for checkbox labels + document.addEventListener('DOMContentLoaded', function() { + const style = document.createElement('style'); + style.textContent = ` + .checkbox-label { + display: flex; + align-items: center; + cursor: pointer; + margin-bottom: 10px; + } + + .checkbox-label .checkbox-custom { + margin-right: 10px; + } + `; + document.head.appendChild(style); + }); + + + \ No newline at end of file diff --git a/webui/views/index.html b/webui/views/index.html index 82283df..776e8c1 100644 --- a/webui/views/index.html +++ b/webui/views/index.html @@ -4,28 +4,217 @@ Smart Assistant Dashboard {{template "views/partials/header"}} - + {{template "views/partials/menu"}}
+ +
Company Logo
- - -
-

Agent List

-

View and manage your list of agents, including detailed profiles and statistics.

+ +

SMART ASSISTANT DASHBOARD

+ + +
+ + +
+ +
+ + - + \ No newline at end of file