prashantmatlani commited on
Commit
21dbf32
ยท
1 Parent(s): 0d17e14

ux and application control changes

Browse files
Files changed (3) hide show
  1. web/app.js +8 -1
  2. web/index.html +8 -7
  3. web/style.css +9 -8
web/app.js CHANGED
@@ -17,11 +17,18 @@ window.agentMemory = {}
17
  //async function runAnalysis(){
18
  async function fire(){
19
 
20
- const inputBox = document.getElementById("initial_input")
 
21
  const text = inputBox.value
22
 
23
  //console.log("๐Ÿš€ Run Analysis:", text)
24
 
 
 
 
 
 
 
25
  if(!text) return
26
 
27
  // Create session once
 
17
  //async function runAnalysis(){
18
  async function fire(){
19
 
20
+ //const inputBox = document.getElementById("initial_input")
21
+ const inputBox = document.getElementById("main_input")
22
  const text = inputBox.value
23
 
24
  //console.log("๐Ÿš€ Run Analysis:", text)
25
 
26
+ // safety check to prevent silent errrors if element isn't found
27
+ if (!inputBox) {
28
+ console.error("โŒ main_input not found")
29
+ return
30
+ }
31
+
32
  if(!text) return
33
 
34
  // Create session once
web/index.html CHANGED
@@ -10,12 +10,17 @@
10
 
11
  <h1>CGJI01 โ€” Multi-Agent Jungian Intelligence</h1>
12
 
 
 
 
 
 
13
  <!-- ๐Ÿ”น SINGLE INPUT (REPLACES BOTH BOXES) -->
14
  <p id="input_label">Enter query:</p>
15
 
16
- <textarea id="main_input"
17
- placeholder="Let's talk"
18
- style="width:100%; height:80px;"></textarea>
19
 
20
  <!-- ๐Ÿ”น FIRE BUTTON (STARTS CONVERSATION) -->
21
  <button id="fire_btn" onclick="fire()">Fire</button>
@@ -27,10 +32,6 @@
27
  End Session
28
  </button>
29
 
30
- <!-- ๐Ÿ”น CHAT DISPLAY -->
31
- <div id="chat"
32
- style="height:400px; overflow-y:auto; border:1px solid #ccc; padding:10px; margin-top:10px;"></div>
33
-
34
  <hr>
35
 
36
  <!-- ๐Ÿ”น AGENT GRID -->
 
10
 
11
  <h1>CGJI01 โ€” Multi-Agent Jungian Intelligence</h1>
12
 
13
+ <!-- ๐Ÿ”น CHAT DISPLAY -->
14
+ <div id="chat"
15
+ style="height:400px; overflow-y:auto; border:1px solid #ccc; padding:10px; margin-top:10px;">
16
+ </div>
17
+
18
  <!-- ๐Ÿ”น SINGLE INPUT (REPLACES BOTH BOXES) -->
19
  <p id="input_label">Enter query:</p>
20
 
21
+ <textarea id="main_input"
22
+ placeholder="Let's talk"
23
+ style="width:100%; height:80px;"></textarea>
24
 
25
  <!-- ๐Ÿ”น FIRE BUTTON (STARTS CONVERSATION) -->
26
  <button id="fire_btn" onclick="fire()">Fire</button>
 
32
  End Session
33
  </button>
34
 
 
 
 
 
35
  <hr>
36
 
37
  <!-- ๐Ÿ”น AGENT GRID -->
web/style.css CHANGED
@@ -33,12 +33,14 @@ gap:20px;
33
  margin-top:30px;
34
  }
35
 
 
36
  .agent{
37
  background:#222;
38
  padding:15px;
39
  border-radius:8px;
40
  }
41
 
 
42
  .final{
43
  grid-column:span 3;
44
  background:#333;
@@ -134,14 +136,13 @@ button {
134
  gap: 15px;
135
  }
136
 
137
- .agent {
138
- border: 1px solid #ccc;
139
- padding: 10px;
140
- background: #fafafa;
141
  }
142
 
143
- /* Final output highlight */
144
- .final {
145
- grid-column: span 3;
146
- background: #f0f0f0;
147
  }
 
33
  margin-top:30px;
34
  }
35
 
36
+ /* Agent-box Styling - darktheme*/
37
  .agent{
38
  background:#222;
39
  padding:15px;
40
  border-radius:8px;
41
  }
42
 
43
+ /* Final-box Styling - darktheme*/
44
  .final{
45
  grid-column:span 3;
46
  background:#333;
 
136
  gap: 15px;
137
  }
138
 
139
+ /* Premium Polish */
140
+ #chat {
141
+ background-color: #020617;
142
+ border-radius: 8px;
143
  }
144
 
145
+ textarea:focus {
146
+ outline: none;
147
+ border: 1px solid #3b82f6;
 
148
  }