@@ -189,7 +189,7 @@ export const renderBiasPanel = (analysis: StructuredAnalysisReport): string => {
189189 . slice ( 0 , 6 )
190190 . map (
191191 ( [ term , count ] ) =>
192- `<span style="background: #CCF381 ; border: 1px solid #CCF381 ; color: #4831D4 ; padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.65rem; font-weight: 600; display: inline-block; margin: 0.25rem;">${ escapeHtml ( term ) } <span style="background: #4831D4 ; color: white; padding: 0.125rem 0.375rem; border-radius: 999px; font-size: 0.6rem; font-weight: 600; margin-left: 0.25rem;">${ count } </span></span>` ,
192+ `<span style="background: #00EB5E ; border: 1px solid #00EB5E ; color: #221C46 ; padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.65rem; font-weight: 600; display: inline-block; margin: 0.25rem;">${ escapeHtml ( term ) } <span style="background: #221C46 ; color: white; padding: 0.125rem 0.375rem; border-radius: 999px; font-size: 0.6rem; font-weight: 600; margin-left: 0.25rem;">${ count } </span></span>` ,
193193 )
194194 . join ( '' ) ;
195195 } ;
@@ -198,15 +198,15 @@ export const renderBiasPanel = (analysis: StructuredAnalysisReport): string => {
198198 const wikiTerms = listLoadedTerms ( metrics . loaded_terms_wiki ) ;
199199
200200 return `<div style="background: white; border: 1px solid #e9ecef; border-radius: 8px; padding: 1rem;">
201- <div style="font-size: 0.75rem; font-weight: 600; color: #4831D4 ; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 0.375rem; border-bottom: 2px solid #CCF381 ;">Bias Metrics</div>
201+ <div style="font-size: 0.75rem; font-weight: 600; color: #221C46 ; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 0.375rem; border-bottom: 2px solid #00EB5E ;">Bias Metrics</div>
202202 <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem;">
203203 <div style="background: #f8f9fa; border: 1px solid #e9ecef; padding: 0.75rem; border-radius: 6px; text-align: center;">
204204 <p style="font-size: 0.65rem; color: #6c757d; margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em;">Subjectivity</p>
205- <strong style="display: block; font-size: 1.25rem; color: #4831D4 ;">${ metrics . subjectivity_delta . toFixed ( 3 ) } </strong>
205+ <strong style="display: block; font-size: 1.25rem; color: #221C46 ;">${ metrics . subjectivity_delta . toFixed ( 3 ) } </strong>
206206 </div>
207207 <div style="background: #f8f9fa; border: 1px solid #e9ecef; padding: 0.75rem; border-radius: 6px; text-align: center;">
208208 <p style="font-size: 0.65rem; color: #6c757d; margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em;">Polarity</p>
209- <strong style="display: block; font-size: 1.25rem; color: #4831D4 ;">${ metrics . polarity_delta . toFixed ( 3 ) } </strong>
209+ <strong style="display: block; font-size: 1.25rem; color: #221C46 ;">${ metrics . polarity_delta . toFixed ( 3 ) } </strong>
210210 </div>
211211 </div>
212212 ${ grokTerms ? `<div style="margin-bottom: 0.5rem;"><p style="font-size: 0.65rem; color: #6c757d; margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em;">Grokipedia Terms</p><div>${ grokTerms } </div></div>` : '' }
@@ -341,7 +341,7 @@ export const renderSimilarSentencesModal = (analysis: StructuredAnalysisReport):
341341</div>` ;
342342} ;
343343
344- export const renderNoteInfo = ( notePayload : {
344+ export const renderNoteInfoLogo = ( notePayload : {
345345 entry : { status ?: string ; file : string ; ual ?: string | null } | null ;
346346 note : Record < string , unknown > | null ;
347347} ) : string => {
@@ -350,8 +350,32 @@ export const renderNoteInfo = (notePayload: {
350350 if ( ! entry || ! note || entry . status !== 'published' ) {
351351 return '' ;
352352 }
353- return `<div style="background: #CCF381; color: #4831D4; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.7rem; font-weight: 600; margin-bottom: 0.5rem; display: inline-block;">
354- Community Note: ${ escapeHtml ( entry . status ?? 'draft' ) } ${ entry . ual ? `| UAL: ${ escapeHtml ( entry . ual ) } ` : '' }
353+ return `<div style="margin-bottom: 0.5rem;">
354+ <img src="gwaln-logo.svg" alt="GWALN" style="height: 32px; width: auto;" />
355+ </div>` ;
356+ } ;
357+
358+ export const renderNoteInfo = (
359+ notePayload : {
360+ entry : { status ?: string ; file : string ; ual ?: string | null } | null ;
361+ note : Record < string , unknown > | null ;
362+ } ,
363+ wikiUrl : string ,
364+ grokUrl : string ,
365+ ) : string => {
366+ const entry = notePayload ?. entry ;
367+ const note = notePayload ?. note ;
368+ if ( ! entry || ! note || entry . status !== 'published' ) {
369+ return '' ;
370+ }
371+ return `<div style="display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap;">
372+ <div style="background: #00EB5E; color: #221C46; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.7rem; font-weight: 600;">
373+ Published | UAL: ${ entry . ual ? escapeHtml ( entry . ual ) : 'N/A' }
374+ </div>
375+ <div style="display: flex; gap: 1rem;">
376+ <a href="${ escapeHtml ( wikiUrl ) } " target="_blank" rel="noopener" style="color: #221C46; text-decoration: none; font-size: 0.75rem; font-weight: 600; transition: opacity 0.2s;">Wikipedia →</a>
377+ <a href="${ escapeHtml ( grokUrl ) } " target="_blank" rel="noopener" style="color: #221C46; text-decoration: none; font-size: 0.75rem; font-weight: 600; transition: opacity 0.2s;">Grokipedia →</a>
378+ </div>
355379</div>` ;
356380} ;
357381
@@ -496,7 +520,8 @@ export const renderHtmlReport = (
496520 'topic.urls.grokipedia' : escapeHtml ( topic . urls . grokipedia ) ,
497521 statsCards,
498522 versionBox : versionWithDiff ,
499- noteInfo : renderNoteInfo ( notePayload ) ,
523+ noteInfoLogo : renderNoteInfoLogo ( notePayload ) ,
524+ noteInfo : renderNoteInfo ( notePayload , topic . urls . wikipedia , topic . urls . grokipedia ) ,
500525 missingSentences : renderList (
501526 `Missing Sentences (${ summary . missing_sentence_count } from Wikipedia)` ,
502527 comparison . sentences . missing ,
0 commit comments