NeonClary commited on
Commit
1fb93ed
·
1 Parent(s): 6e9f5ff

Remove debug instrumentation

Browse files
Files changed (1) hide show
  1. frontend/src/App.js +1 -21
frontend/src/App.js CHANGED
@@ -51,27 +51,7 @@ export default function App() {
51
  document.documentElement.setAttribute('data-theme', theme);
52
  }, [theme]);
53
 
54
- // #region agent log
55
- useEffect(() => {
56
- const timer = setTimeout(() => {
57
- const app = document.querySelector('.app');
58
- const main = document.querySelector('.app-main');
59
- const content = document.querySelector('.content');
60
- const accordion = document.querySelector('.accordion');
61
- const accBody = document.querySelector('.accordion-body.open');
62
- const lastTextarea = document.querySelectorAll('.persona-field textarea.tall');
63
- const log = (msg, data) => fetch('http://127.0.0.1:7242/ingest/55bc8edc-2006-4ebe-8076-1d725683b980',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'App.js:scroll-debug2',message:msg,data,timestamp:Date.now(),hypothesisId:'H11-H14',runId:'run5'})}).catch(()=>{});
64
- log('viewport', { w: window.innerWidth, h: window.innerHeight });
65
- if (app) { const cs = getComputedStyle(app); log('app', { offsetH: app.offsetHeight, scrollH: app.scrollHeight, height: cs.height, minH: cs.minHeight, overflow: cs.overflow }); }
66
- if (main) { const cs = getComputedStyle(main); log('app-main', { offsetH: main.offsetHeight, scrollH: main.scrollHeight, minH: cs.minHeight, overflow: cs.overflow, flexDir: cs.flexDirection }); }
67
- if (content) { const cs = getComputedStyle(content); log('content', { offsetH: content.offsetHeight, clientH: content.clientHeight, scrollH: content.scrollHeight, minH: cs.minHeight, overflowY: cs.overflowY, canScroll: content.scrollHeight > content.clientHeight }); }
68
- if (accordion) { const cs = getComputedStyle(accordion); log('accordion', { offsetH: accordion.offsetHeight, scrollH: accordion.scrollHeight, overflow: cs.overflow }); }
69
- if (accBody) { const cs = getComputedStyle(accBody); log('accBody', { offsetH: accBody.offsetHeight, scrollH: accBody.scrollHeight, maxH: cs.maxHeight, overflow: cs.overflow }); }
70
- if (lastTextarea.length > 0) { const last = lastTextarea[lastTextarea.length - 1]; const rect = last.getBoundingClientRect(); log('lastTextarea', { y: rect.top, bottom: rect.bottom, h: rect.height }); }
71
- }, 2000);
72
- return () => clearTimeout(timer);
73
- }, [accordionOpen]);
74
- // #endregion
75
 
76
  useEffect(() => {
77
  fetchModels()
 
51
  document.documentElement.setAttribute('data-theme', theme);
52
  }, [theme]);
53
 
54
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  useEffect(() => {
57
  fetchModels()