Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: add not-found fallbacks for stale Sharing bucket + JIRA report ids (#2025)

Adam Eivy6b17357e109f
diff --git a/client/src/pages/JiraReports.jsx b/client/src/pages/JiraReports.jsx
index 06c0be2afc..f35d292131 100644
--- a/client/src/pages/JiraReports.jsx
+++ b/client/src/pages/JiraReports.jsx
@@ -148,8 +148,11 @@ export default function JiraReports() {
if (selectedReport?.appId === reportApp && selectedReport?.date === reportDate) return;
let cancelled = false;
api.getJiraReport(reportApp, reportDate).then((full) => {
- if (!cancelled && full) setSelectedReport(full);
- }).catch(() => {});
+ // Clear the selection when the URL names a report that no longer resolves
+ // (deleted / bad deep link) so the detail pane falls back to its
+ // placeholder instead of stranding the previously-open report.
+ if (!cancelled) setSelectedReport(full?.appId ? full : null);
+ }).catch(() => { if (!cancelled) setSelectedReport(null); });
return () => { cancelled = true; };
// selectedReport intentionally omitted — the guard above prevents refetch loops.
}, [reportApp, reportDate]);
diff --git a/client/src/pages/Sharing.jsx b/client/src/pages/Sharing.jsx
index 14904c54f6..dffbe8c61d 100644
--- a/client/src/pages/Sharing.jsx
+++ b/client/src/pages/Sharing.jsx
@@ -267,6 +267,8 @@ function SharingBuckets({ selectedId }) {
};
const selected = buckets.find((b) => b.id === selectedId) || null;
+ // A bucketId in the URL that isn't in the loaded list (removed / bad deep link).
+ const bucketNotFound = !!selectedId && !loading && !selected;
const displayNameDirty = sharingDisplayName !== savedDisplayName || sharingBio !== savedBio;
return (
@@ -477,7 +479,14 @@ function SharingBuckets({ selectedId }) {
{/* Detail panel */}
<section>
- {!selected ? (
+ {bucketNotFound ? (
+ <div className="p-6 bg-port-card border border-port-border rounded-lg text-sm text-gray-500">
+ That bucket could not be found — it may have been removed.{' '}
+ <button type="button" onClick={() => navigate('/sharing')} className="text-port-accent hover:underline">
+ Back to buckets
+ </button>
+ </div>
+ ) : !selected ? (
<div className="p-6 bg-port-card border border-port-border rounded-lg text-sm text-gray-500">
Pick a bucket on the left to see its inbox + activity.
</div>