Skip to content

Commit 53a4a54

Browse files
authored
Merge pull request #53 from rafiattrach/remove-query-section
Remove query interface section from Explanation component
2 parents 396f59e + 4edc339 commit 53a4a54

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

webapp/src/components/Explanation.js

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -27,58 +27,7 @@ const Explanation = () => {
2727
</div>
2828
</div>
2929

30-
{/* Query Interface */}
31-
<div className="explanation-grid fade-in">
32-
<div className="explanation-text">
33-
<h3>Intuitive Query Interface</h3>
34-
<p>Write complex MIMIC database queries using natural language or SQL. Our intelligent interface provides auto-completion, syntax highlighting, and query optimization suggestions.</p>
35-
<div className="code-snippet">
36-
<span className="comment"># Natural language query example</span><br/>
37-
<span className="keyword">import</span> m3<br/>
38-
<br/>
39-
<span className="comment"># Connect to MIMIC database</span><br/>
40-
db = m3.connect(<span className="string">"mimic-iv"</span>)<br/>
41-
<br/>
42-
<span className="comment"># Query ICU patients with specific conditions</span><br/>
43-
results = db.query(<span className="string">"Show me ICU patients with sepsis in 2019"</span>)
44-
</div>
45-
<ul className="explanation-features">
46-
<li>Natural language processing</li>
47-
<li>SQL auto-completion</li>
48-
<li>Query optimization</li>
49-
<li>Result visualization</li>
50-
</ul>
51-
</div>
52-
<div className="screenshot-container">
53-
<svg width="100%" height="300" viewBox="0 0 600 300" style={{background: '#1a1a1a'}}>
54-
<rect width="100%" height="100%" fill="#1a1a1a"/>
55-
<rect x="0" y="0" width="600" height="30" fill="#2d3748"/>
56-
<circle cx="15" cy="15" r="6" fill="#ff5f57"/>
57-
<circle cx="35" cy="15" r="6" fill="#ffbd2e"/>
58-
<circle cx="55" cy="15" r="6" fill="#28ca42"/>
59-
<text x="80" y="20" fontFamily="Arial" fontSize="12" fill="white">m3 Query Terminal</text>
6030

61-
<text x="20" y="60" fontFamily="Courier New" fontSize="14" fill="#68d391"># Connect to MIMIC-IV</text>
62-
<text x="20" y="85" fontFamily="Courier New" fontSize="14" fill="#63b3ed">from</text>
63-
<text x="70" y="85" fontFamily="Courier New" fontSize="14" fill="white">m3</text>
64-
<text x="95" y="85" fontFamily="Courier New" fontSize="14" fill="#63b3ed">import</text>
65-
<text x="150" y="85" fontFamily="Courier New" fontSize="14" fill="white">Database</text>
66-
67-
<text x="20" y="110" fontFamily="Courier New" fontSize="14" fill="white">db = Database(</text>
68-
<text x="120" y="110" fontFamily="Courier New" fontSize="14" fill="#f6ad55">"mimic-iv"</text>
69-
<text x="190" y="110" fontFamily="Courier New" fontSize="14" fill="white">)</text>
70-
71-
<text x="20" y="145" fontFamily="Courier New" fontSize="14" fill="#68d391"># Query patient data</text>
72-
<text x="20" y="170" fontFamily="Courier New" fontSize="14" fill="white">results = db.query(</text>
73-
<text x="20" y="195" fontFamily="Courier New" fontSize="14" fill="#f6ad55"> "SELECT * FROM patients WHERE age &gt; 65"</text>
74-
<text x="20" y="220" fontFamily="Courier New" fontSize="14" fill="white">)</text>
75-
76-
<rect x="20" y="240" width="2" height="18" fill="#0052ff">
77-
<animate attributeName="opacity" values="1;0;1" dur="1s" repeatCount="indefinite"/>
78-
</rect>
79-
</svg>
80-
</div>
81-
</div>
8231

8332
{/* Data Visualization */}
8433
<div className="explanation-grid fade-in">

0 commit comments

Comments
 (0)