Compare commits
2
Commits
6e891392a7
...
8a73d266d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a73d266d8 | ||
|
|
bc30a8a0e4 |
No files matched your search
@@ -2,10 +2,10 @@ FROM oven/bun:1-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY backend/package*.json ./
|
COPY package*.json ./
|
||||||
RUN bun install --production
|
RUN bun install --production
|
||||||
|
|
||||||
COPY backend/ .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|
||||||
|
|||||||
@@ -175,11 +175,10 @@ export default function AgentsPage() {
|
|||||||
.filter(loc => agents.some(a => (a.uuid || a.serial) === loc.agent_uuid))
|
.filter(loc => agents.some(a => (a.uuid || a.serial) === loc.agent_uuid))
|
||||||
.map(loc => {
|
.map(loc => {
|
||||||
const agent = agents.find(a => (a.uuid || a.serial) === loc.agent_uuid);
|
const agent = agents.find(a => (a.uuid || a.serial) === loc.agent_uuid);
|
||||||
|
const dynamicLabel = resolveAgentLabel(loc.agent_uuid, managedUsers);
|
||||||
const agentLabel = agent
|
const agentLabel = agent
|
||||||
? (resolveAgentLabel(loc.agent_uuid, managedUsers) !== loc.agent_uuid
|
? (agent.label || (dynamicLabel !== loc.agent_uuid ? dynamicLabel : loc.agent_uuid))
|
||||||
? resolveAgentLabel(loc.agent_uuid, managedUsers)
|
: (loc.label || (dynamicLabel !== loc.agent_uuid ? dynamicLabel : loc.agent_uuid));
|
||||||
: (agent.label || loc.label || loc.agent_uuid))
|
|
||||||
: (loc.label || loc.agent_uuid);
|
|
||||||
const isOnline = !!(agent?.last_seen_at?.human === 'Online' ||
|
const isOnline = !!(agent?.last_seen_at?.human === 'Online' ||
|
||||||
agent?.last_seen_at?.human === 'Flows Detected' ||
|
agent?.last_seen_at?.human === 'Flows Detected' ||
|
||||||
(agent?.last_seen_at?.human && agent.last_seen_at.human.startsWith('Last seen:')));
|
(agent?.last_seen_at?.human && agent.last_seen_at.human.startsWith('Last seen:')));
|
||||||
|
|||||||
Reference in new issue
Block a user