ada-web

Ada AI is a specialized coding assistant designed for developers and students. Powered by Google Gemini 3.1, it provides real-time, streamin...

git clone https://github.com/notamitgamer/ada-web.git
· rebuilt hourlyOpen on GitHub
commit 2ef94defbe8e552c2c0a9f652f97ceee9cfc7812
parent 117aef460e094308403a13517bea636863f67944
Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Date:   Sun, 18 Jan 2026 07:22:06 +0000

Fix code review issues: file-size element, CSS variables, and imports

Co-authored-by: notamitgamer <199483577+notamitgamer@users.noreply.github.com>

Diffstat:
Mbackend.py | 3++-
Mindex.html | 19+++++++++++++------
2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/backend.py b/backend.py @@ -6,6 +6,7 @@ from flask_cors import CORS import google.generativeai as genai import firebase_admin from firebase_admin import credentials, auth, firestore +from google.cloud.firestore_v1 import FieldFilter, Query # --- INIT APP & CONFIG --- app = Flask(__name__) @@ -240,7 +241,7 @@ def get_chats(): try: chats_ref = db.collection('users').document(user_uid).collection('chats') - docs = chats_ref.order_by('updatedAt', direction=firestore.Query.DESCENDING).stream() + docs = chats_ref.order_by('updatedAt', direction=Query.DESCENDING).stream() chats = [] for doc in docs: diff --git a/index.html b/index.html @@ -157,7 +157,7 @@ /* Utilities */ .glass-panel { background: rgba(22, 27, 34, 0.8); backdrop-filter: blur(12px); border-right: 1px solid var(--border); } - .loader { border: 2px solid #333; border-top: 2px solid var(--accent); border-radius: 50%; width: 16px; height: 16px; animation: spin 1s linear infinite; } + .loader { border: 2px solid var(--bg-elevated); border-top: 2px solid var(--accent-primary); border-radius: 50%; width: 16px; height: 16px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Typing Indicator Animation */ @@ -276,12 +276,15 @@ </div> <!-- FILE UPLOAD PREVIEW --> - <div id="file-preview" class="hidden px-4 py-2 bg-neutral-800 border-t border-white/5 flex items-center justify-between"> - <div class="flex items-center gap-2 text-xs font-mono text-lime-300"> + <div id="file-preview" class="hidden px-4 py-2 bg-[var(--bg-tertiary)] border-t border-[var(--border)] flex items-center justify-between"> + <div class="flex items-center gap-2 text-xs text-[var(--text-secondary)]"> <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> - <span id="file-name">code.py</span> + <span id="file-name" class="font-mono">file.py</span> + <span id="file-size">(0 KB)</span> </div> - <button onclick="clearFile()" class="text-neutral-500 hover:text-white">×</button> + <button onclick="clearFile()" class="text-[var(--text-secondary)] hover:text-[var(--text-primary)]"> + <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg> + </button> </div> <!-- INPUT AREA --> @@ -1122,7 +1125,11 @@ const fontSize = document.getElementById('settings-fontSize').value; editor.setOption('theme', theme); - editor.setOption('fontSize', fontSize + 'px'); + // Set font size via CSS + const cmElement = document.querySelector('.CodeMirror'); + if (cmElement) { + cmElement.style.fontSize = fontSize + 'px'; + } localStorage.setItem('editorTheme', theme); localStorage.setItem('editorFontSize', fontSize);