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"}
|
||||
</button>
|
||||
)}
|
||||
<span
|
||||
style={{
|
||||
fontSize: 10,
|
||||
color: refreshClicks > 0 ? "#5ec8d8" : "#6a6a72",
|
||||
fontFamily: mono,
|
||||
}}
|
||||
title={lastLoadedAt ? lastLoadedAt.toISOString() : "not loaded yet"}
|
||||
>
|
||||
clicks:{refreshClicks} · {lastLoadedAt ? `updated ${lastLoadedAt.toLocaleTimeString()}` : "…"} · {loading ? "loading" : "idle"}
|
||||
</span>
|
||||
{lastLoadedAt && (
|
||||
<span
|
||||
style={{
|
||||
fontSize: 10,
|
||||
color: "#6a6a72",
|
||||
fontFamily: mono,
|
||||
}}
|
||||
title={lastLoadedAt.toISOString()}
|
||||
>
|
||||
updated {lastLoadedAt.toLocaleTimeString()}
|
||||
</span>
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
setRefreshClicks((c) => c + 1);
|
||||
console.log("[MissionCanvas] refresh clicked", {
|
||||
selectedId,
|
||||
loading,
|
||||
});
|
||||
void load();
|
||||
}}
|
||||
onClick={load}
|
||||
title="Refresh"
|
||||
aria-label="Refresh"
|
||||
style={{ ...iconBtn, opacity: loading ? 0.6 : 1 }}
|
||||
|
||||
Reference in New Issue
Block a user