Spaces:
Running
Running
Commit ·
458b783
1
Parent(s): 48b8905
Fix TypeScript build error in PrivacyNoticeModal - ensure all code paths return value
Browse filesFiles changed (2)
329 unmodified lines330331332333334335336329 unmodified lines<div className="fixed inset-0 bg-background z-50 flex flex-col">{/* Global Floating Action Widget for temporal view */}<FloatingActionWidget />{/* Privacy Notice Modal */}<PrivacyNoticeModal />329 unmodified lines330331332333334335336329 unmodified lines<div className="fixed inset-0 bg-background z-50 flex flex-col">{/* Global Floating Action Widget for temporal view */}<FloatingActionWidget />{/* Privacy Notice Modal */}<PrivacyNoticeModal />
17 unmodified lines1819202122232425262728293031323323 unmodified lines57585960616263646566676869707172737475767778798081828384858687888990919293949596979817 unmodified linesuseEffect(() => {// Only show on HF Spaces and if not seen beforeif (IS_HF_SPACES) {const hasSeenNotice = localStorage.getItem(PRIVACY_NOTICE_KEY);if (!hasSeenNotice) {// Show modal after a short delay to ensure the app is loadedconst timer = setTimeout(() => {setIsOpen(true);}, 1000);return () => clearTimeout(timer);}}}, []);const handleAccept = () => {23 unmodified lines<div className="flex items-start gap-3"><Database className="h-4 w-4 text-amber-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Temporary Data Storage:</strong> Your data is stored in a private, temporary session that is automatically cleared when the container restarts.</div></div><div className="flex items-start gap-3"><Shield className="h-4 w-4 text-green-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Complete Privacy:</strong> Your traces and analysis results are not shared between users or sessions. Each user has their own isolated environment.</div></div><div className="flex items-start gap-3"><RefreshCw className="h-4 w-4 text-blue-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Data Lifecycle:</strong> All uploaded traces, knowledge graphs, and analysis results will be permanently deleted when the Hugging Face Spaces container restarts.</div></div><div className="flex items-start gap-3"><Info className="h-4 w-4 text-gray-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Recommendation:</strong> For persistent data storage and analysis, consider running AgentGraph locally or on your own infrastructure.</div></div></DialogDescription></DialogHeader><DialogFooter className="flex gap-2 sm:gap-2"><Buttonvariant="outline"onClick={handleDismiss}className="flex-1">Remind Me Later</Button><ButtononClick={handleAccept}className="flex-1 bg-blue-600 hover:bg-blue-700">17 unmodified lines181920212223242526272829303132333423 unmodified lines58596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210317 unmodified linesuseEffect(() => {// Only show on HF Spaces and if not seen beforeif (!IS_HF_SPACES) return;const hasSeenNotice = localStorage.getItem(PRIVACY_NOTICE_KEY);if (hasSeenNotice) return;// Show modal after a short delay to ensure the app is loadedconst timer = setTimeout(() => {setIsOpen(true);}, 1000);return () => clearTimeout(timer);}, []);const handleAccept = () => {23 unmodified lines<div className="flex items-start gap-3"><Database className="h-4 w-4 text-amber-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Temporary Data Storage:</strong> Your data is stored ina private, temporary session that is automatically cleared whenthe container restarts.</div></div><div className="flex items-start gap-3"><Shield className="h-4 w-4 text-green-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Complete Privacy:</strong> Your traces and analysisresults are not shared between users or sessions. Each user hastheir own isolated environment.</div></div><div className="flex items-start gap-3"><RefreshCw className="h-4 w-4 text-blue-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Data Lifecycle:</strong> All uploaded traces, knowledgegraphs, and analysis results will be permanently deleted whenthe Hugging Face Spaces container restarts.</div></div><div className="flex items-start gap-3"><Info className="h-4 w-4 text-gray-600 mt-0.5 flex-shrink-0" /><div className="text-sm"><strong>Recommendation:</strong> For persistent data storage andanalysis, consider running AgentGraph locally or on your owninfrastructure.</div></div></DialogDescription></DialogHeader><DialogFooter className="flex gap-2 sm:gap-2"><Button variant="outline" onClick={handleDismiss} className="flex-1">Remind Me Later</Button><ButtononClick={handleAccept}className="flex-1 bg-blue-600 hover:bg-blue-700">
frontend/src/components/layout/MainWorkspace.tsx+1-1
frontend/src/components/shared/modals/PrivacyNoticeModal.tsx+29-24