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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex r6): refresh surfaced commission on deep-link, notification display config
[._.]/ Adam Eivy45defc6d3c94
diff --git a/client/src/components/NotificationDropdown.jsx b/client/src/components/NotificationDropdown.jsxindex 87d4d3d704..fde5c2a6b3 100644--- a/client/src/components/NotificationDropdown.jsx+++ b/client/src/components/NotificationDropdown.jsx@@ -1,6 +1,6 @@import { useState, useRef, useEffect } from 'react';import { useNavigate } from 'react-router-dom';-import { Bell, X, CheckCheck, Trash2, Brain, ListTodo, AlertTriangle, Code, HelpCircle, BellRing } from 'lucide-react';+import { Bell, X, CheckCheck, Trash2, Brain, ListTodo, AlertTriangle, Code, HelpCircle, BellRing, Sparkles } from 'lucide-react';import { timeAgo } from '../utils/formatters';const NOTIFICATION_TYPE_CONFIG = {@@ -38,6 +38,11 @@ const NOTIFICATION_TYPE_CONFIG = {icon: BellRing,color: 'text-cyan-400',bgColor: 'bg-cyan-500/20'+ },+ creative_commission: {+ icon: Sparkles,+ color: 'text-port-accent',+ bgColor: 'bg-port-accent/20'}};diff --git a/client/src/pages/CreativeCommissions.jsx b/client/src/pages/CreativeCommissions.jsxindex 71d1d7fd22..53d5cac242 100644--- a/client/src/pages/CreativeCommissions.jsx+++ b/client/src/pages/CreativeCommissions.jsx@@ -21,7 +21,7 @@ import ConfirmButtonPair from '../components/ui/ConfirmButtonPair';import { timeAgo } from '../utils/formatters';import { useConfirmDelete } from '../hooks/useConfirmDelete';import {- listCommissions, createCommission, updateCommission, deleteCommission,+ listCommissions, getCommission, createCommission, updateCommission, deleteCommission,submitCommissionFeedback,} from '../services/api';@@ -147,6 +147,28 @@ export default function CreativeCommissions() {}}, [id, creating, editing]);+ // Refresh the deep-linked commission when entering its detail route. The SPA+ // does NOT remount when navigating index → :id (both routes render this same+ // component), and the list is loaded only in the mount-only effect above — so+ // a run added by a scheduled fire (surfaced via a notification deep link)+ // wouldn't appear in the drawer's run history until a full reload. Refetch the+ // single record and merge it in. The form-sync guard (syncedTargetRef) means+ // this refresh updates the run/feedback shown in the drawer WITHOUT clobbering+ // any unsaved field edits.+ useEffect(() => {+ if (!id || creating) return;+ let cancelled = false;+ getCommission(id, { silent: true })+ .then((fresh) => {+ if (cancelled || !fresh?.id) return;+ setCommissions((prev) => (prev.some((c) => c.id === fresh.id)+ ? prev.map((c) => (c.id === fresh.id ? fresh : c))+ : [...prev, fresh]));+ })+ .catch(() => {}); // stale/deleted id → the not-found fallback handles it+ return () => { cancelled = true; };+ }, [id, creating]);+const closeDrawer = useCallback(() => navigate('/creative-commission'), [navigate]);const patchForm = (path, value) => setForm((prev) => {