bharatgraph / frontend /js /app.js

Commit History

fix(app.js): correct bad escape sequence in search filter button
353faba

abinazebinoy commited on

feat(phase-35): add /forensics page to frontend router
086d779

abinazebinoy commited on

fix(B-06): confirm filter button data-nav-path fix applied + wire addEventListener
0ece323

abinazebinoy commited on

fix(B-29): replace misleading 'court-grade PDF' claim with accurate disclaimer
f408a8f

abinazebinoy commited on

fix(B-15): remove extra brace orphaning else branch in liveFeed ws.onmessage
14ac551

abinazebinoy commited on

fix(LOGIC-3): preserve &lang= in search filter buttons and search button handler
eec5179

abinazebinoy commited on

fix(SEC-1,CodeQL#24): data-* attrs for connection-map evidence onclick -- prevents single-quote XSS
1c118c6

abinazebinoy commited on

fix(UI-6): replace corrupted unicode chars in connection map legend with HTML entities
c12aeda

abinazebinoy commited on

fix(TEXT-1): update hardcoded '12 investigators' to '15' in How It Works and About page
5406493

abinazebinoy commited on

fix(I18N-1,I18N-3): add mni/sat/ks to navbar language dropdown; restore all corrupted Indian script labels in search page dropdown
c44a433

abinazebinoy commited on

fix(SEARCH-2,SEARCH-3): add datagov/crimereport filter buttons; add Arabic script U+0600-U+06FF to ALLOWED_CHARS for Urdu/Sindhi search
297cc9e

abinazebinoy commited on

fix(LOGIC-4): persist language selection to localStorage -- language now survives page refresh
db4b345

abinazebinoy commited on

fix(SEC-1,CodeQL#24): sanitize entity name, type, profile.overview k/v, and risk.explanation before innerHTML injection
8ad162f

abinazebinoy commited on

fix(FEED-1): add pipeline-message guard in liveFeed view -- admin system message no longer shown as fake intelligence
f171783

abinazebinoy commited on

fix(FEED-2): reset connect._retries=0 on each _connectFeedToHome() call -- prevents permanent feed silence after repeated navigation
0b32f6d

abinazebinoy commited on

fix(DUP-1): remove duplicate search input prefill block -- same code appeared twice with different variable names
19b580c

abinazebinoy commited on

fix(JS-1 CRITICAL): remove 2 duplicate const _langLabelCache declarations -- caused SyntaxError crash in strict-mode browsers
a4a025f

abinazebinoy commited on

fix(SyntaxError): move _stats_cache vars to module level; global declaration must precede use -- fixes CI SyntaxError on line 142
41a604c

abinazebinoy commited on

fix(M-05): cache language labels in applyLanguage() -- avoids redundant API calls on rapid language switching
8358396

abinazebinoy commited on

fix(M-05): cache language labels in applyLanguage() -- avoids redundant API calls on rapid language switching
53b2127

abinazebinoy commited on

fix(C-01,H-03): pre-fill search input with current query; sanitize entity id in not-found XSS
8d3abc6

abinazebinoy commited on

fix(BUG-M9,BUG-C2): pass driver kwarg in run_investigator; update 12->15 investigators
18aeb5b

abinazebinoy commited on

fix(M-06): back button checks referrer before history.back() -- shared/direct links go to search page instead of external site
1113f2b

abinazebinoy commited on

fix(M-10,M-11,L-06): deterministic fallback node IDs; container-scoped SVG marker IDs; stop D3 simulation on tab switch
0fad33c

abinazebinoy commited on

fix(M-07): add max 20 retry cap to WebSocket reconnect loops -- prevents infinite background polling when HF Space is sleeping
fad15e0

abinazebinoy commited on

fix(M-05): cache language labels in applyLanguage() -- avoids redundant API calls on rapid language switching
729c0c5

abinazebinoy commited on

fix(C-01,H-03): pre-fill search input with current query; sanitize entity id in not-found message (XSS)
7e3b7e5

abinazebinoy commited on

fix(BUG-12): show user-friendly callout when feed is empty due to unpopulated DB instead of swallowing backend message
833acfb

abinazebinoy commited on

fix(BUG-11,NEW-A4): add Views.notFound and Router.register('*') -- unknown URLs now show 404 instead of frozen spinner
7ef1e95

abinazebinoy commited on

fix(BUG-9): validate s.url starts with http before injecting into href -- prevents javascript: XSS from DB
77238ce

abinazebinoy commited on

fix(BUG-2): replace broken multi-line inline onclick Reset button with GraphRenderer.resetZoom() call
9042fb7

abinazebinoy commited on

fix(frontend): H-01+H-02+H-06+H-09+H-11+LOGIC -- navbar, graph, feed fixes
8d90292

abinazebinoy commited on

fix(encoding): strip non-ASCII chars from all modified files
747e613

abinazebinoy commited on

fix(frontend): BUG-19 -- skeleton group rendered twice in search view
d7b1208

abinazebinoy commited on

fix(frontend): BUG-23 -- sanitize() corrupted entity IDs in path-finder
d3aa721

abinazebinoy commited on

fix(frontend): BUG-13+14 -- XSS in search and filter button onclick
1cf1e7f

abinazebinoy commited on

fix(frontend): BUG-3+4+20 -- live feed reconnect, real data, onerror
32c3a4d

abinazebinoy commited on

fix(frontend): BUG-6/12/16/20 β€” WS reconnect, encode, skeleton, lang
b13d7e6

abinazebinoy commited on

fix(BUG-02/10/11/25): health retry with backoff; duplicate id removed; language selectors synced; fixed error message
f53ed9e

abinazebinoy commited on

fix(BUG-10/11/14): full DOM translation via data-i18n; sanitize search error message
5465d94

abinazebinoy commited on

feat(i18n): wire applyLanguage() to selector β€” updates placeholder, tagline, result messages
934014b

abinazebinoy commited on

fix: loading screen β€” remove invalid ` and ${ from app.js, bump SW cache
b8065c9

abinazebinoy commited on

feat(update): evidence panel 4-tabs, connection map, language selector, API root route, 575-source CSV
e021102

abinazebinoy commited on

fix(frontend): Router.init, D3 onerror, expanded search filters
0b18bea

abinazebinoy commited on

Merge branch 'main' into fix/codeql-all-security-fixes
b8e6211
unverified

abinazebinoy commited on

fix(security): sanitize user input before innerHTML insertion β€” CodeQL alerts 17-19
ac346b3

abinazebinoy commited on

fix(security): sanitize user-controlled strings before innerHTML insertion
f6bb88a

abinazebinoy commited on

fix(search+multilingual+sources): global search, fulltext index, sources API
5e26080

abinazebinoy commited on

fix(search+graph+frontend): 6 issues resolved
584f813

abinazebinoy commited on

feat(frontend): patriotic HTML/CSS/JS dashboard with component architecture
7ca91b2

abinazebinoy commited on