Increase detection limits and fix navigation to details
Update the default limit for retrieving detections to 5000 and adjust the "Details" link to navigate to the root page with the IP as a query parameter. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: fada4cc1-cc41-4254-999e-dd6c2d2a66dc Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/1zhedLT
This commit is contained in:
parent
40d94651a2
commit
d3c0839a31
4
.replit
4
.replit
@ -14,6 +14,10 @@ run = ["npm", "run", "start"]
|
|||||||
localPort = 5000
|
localPort = 5000
|
||||||
externalPort = 80
|
externalPort = 80
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 36213
|
||||||
|
externalPort = 3001
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41303
|
localPort = 41303
|
||||||
externalPort = 3002
|
externalPort = 3002
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export default function Detections() {
|
|||||||
|
|
||||||
// Build query params
|
// Build query params
|
||||||
const queryParams = new URLSearchParams();
|
const queryParams = new URLSearchParams();
|
||||||
queryParams.set("limit", "500");
|
queryParams.set("limit", "5000");
|
||||||
if (anomalyTypeFilter !== "all") {
|
if (anomalyTypeFilter !== "all") {
|
||||||
queryParams.set("anomalyType", anomalyTypeFilter);
|
queryParams.set("anomalyType", anomalyTypeFilter);
|
||||||
}
|
}
|
||||||
@ -292,7 +292,7 @@ export default function Detections() {
|
|||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button variant="outline" size="sm" asChild data-testid={`button-details-${detection.id}`}>
|
<Button variant="outline" size="sm" asChild data-testid={`button-details-${detection.id}`}>
|
||||||
<a href={`/logs?ip=${detection.sourceIp}`}>
|
<a href={`/?ip=${detection.sourceIp}`}>
|
||||||
<Eye className="h-3 w-3 mr-1" />
|
<Eye className="h-3 w-3 mr-1" />
|
||||||
Dettagli
|
Dettagli
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -151,7 +151,7 @@ export class DatabaseStorage implements IStorage {
|
|||||||
minScore?: number;
|
minScore?: number;
|
||||||
maxScore?: number;
|
maxScore?: number;
|
||||||
}): Promise<Detection[]> {
|
}): Promise<Detection[]> {
|
||||||
const { limit = 500, anomalyType, minScore, maxScore } = options;
|
const { limit = 5000, anomalyType, minScore, maxScore } = options;
|
||||||
|
|
||||||
// Build WHERE conditions
|
// Build WHERE conditions
|
||||||
const conditions = [];
|
const conditions = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user