cleanup(missions): strip refresh debug scaffolding
Removes refreshClicks counter + console.log now that the fetch-hang was root-caused (fetch: cache no-store) and fixed. Keeps the updated-at timestamp indicator as ongoing visual feedback.
This commit is contained in:
@@ -426,26 +426,21 @@ export function MissionCanvas({
|
|||||||
{refining ? "Refining…" : "Refine"}
|
{refining ? "Refining…" : "Refine"}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<span
|
{lastLoadedAt && (
|
||||||
style={{
|
<span
|
||||||
fontSize: 10,
|
style={{
|
||||||
color: refreshClicks > 0 ? "#5ec8d8" : "#6a6a72",
|
fontSize: 10,
|
||||||
fontFamily: mono,
|
color: "#6a6a72",
|
||||||
}}
|
fontFamily: mono,
|
||||||
title={lastLoadedAt ? lastLoadedAt.toISOString() : "not loaded yet"}
|
}}
|
||||||
>
|
title={lastLoadedAt.toISOString()}
|
||||||
clicks:{refreshClicks} · {lastLoadedAt ? `updated ${lastLoadedAt.toLocaleTimeString()}` : "…"} · {loading ? "loading" : "idle"}
|
>
|
||||||
</span>
|
updated {lastLoadedAt.toLocaleTimeString()}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => {
|
onClick={load}
|
||||||
setRefreshClicks((c) => c + 1);
|
|
||||||
console.log("[MissionCanvas] refresh clicked", {
|
|
||||||
selectedId,
|
|
||||||
loading,
|
|
||||||
});
|
|
||||||
void load();
|
|
||||||
}}
|
|
||||||
title="Refresh"
|
title="Refresh"
|
||||||
aria-label="Refresh"
|
aria-label="Refresh"
|
||||||
style={{ ...iconBtn, opacity: loading ? 0.6 : 1 }}
|
style={{ ...iconBtn, opacity: loading ? 0.6 : 1 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user