Bulk snooze, alert rules judged on report, photos on notes
Bulk snooze: Snooze... and Wake on the ticked alerts, with undo that puts back each alert's earlier snooze exactly. Alert rules are judged for a server right after its agent reports, instead of at the next 15-minute pass; only that server's rule findings change, and the check is serialized with the pass so neither overwrites the other's state. Photos on server and device notes: up to 12 each, shrunk in the browser, accepted by their own bytes (JPEG/PNG/GIF/WebP, 4 MB), kept in the database and removed with the server or device. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
251a4a9d73
commit
a16996d975
27 files changed
+8442
-54
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { api, type NoteItem } from "../api/client";
|
||||
import { BlockSkeleton } from "./Skeleton";
|
||||
import NotePhotos from "./NotePhotos";
|
||||
import RunbookText from "./RunbookText";
|
||||
import TimeAgo from "./TimeAgo";
|
||||
import { readableError } from "../utils/errors";
|
||||
@@ -79,10 +80,13 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
|
||||
</button>
|
||||
) : null;
|
||||
|
||||
const photos = !failed && note !== undefined && draft === null ? <NotePhotos targetType={targetType} targetId={targetId} canEdit={canEdit} /> : null;
|
||||
|
||||
if (bare) {
|
||||
return (
|
||||
<>
|
||||
{body}
|
||||
{photos}
|
||||
{edit && <div className="mt-3">{edit}</div>}
|
||||
</>
|
||||
);
|
||||
@@ -93,7 +97,10 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
|
||||
<h3 className="card-title">Notes</h3>
|
||||
{edit && <div className="card-actions">{edit}</div>}
|
||||
</div>
|
||||
<div className="card-body">{body}</div>
|
||||
<div className="card-body">
|
||||
{body}
|
||||
{photos}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user