Skip to content

feat: Polish UI with custom design system and add profile links - #4

Merged
macayaven merged 1 commit into
mainfrom
feature/ui-polish-profiles
Jan 9, 2026
Merged

macayaven merged 1 commit into
mainfrom
feature/ui-polish-profiles

Conversation

@macayaven

Copy link
Copy Markdown
Owner

Summary

  • Add custom CSS design system with Outfit + JetBrains Mono fonts and design tokens
  • Add branded header with gradient logo and feature badges
  • Fix label styling so labels don't look like buttons (addressing reviewer feedback)
  • Add "Key Concepts" tab explaining the TTT innovation and problem/solution
  • Add incremental integration diagrams showing Step 1 (Vanilla LLM) → Step 2a (RAG) → Step 2b (Neural Memory) → Step 3 (Docker)
  • Remove confusing Playground tab (addressing reviewer feedback)
  • Add polished footer with all profile links:
    • GitHub
    • LinkedIn
    • Kaggle (with 2x gold medals badge)
    • HuggingFace
    • Google Scholar
    • Personal website (carlos-crespo.com)

Test plan

  • Verify demo loads at https://huggingface.co/spaces/macayaven/docker-neural-memory after deploy
  • Check all tabs render correctly (LLM Comparison, How It Works, Key Concepts, Integration & Docker, About)
  • Verify footer links work and show correct hover colors
  • Confirm labels no longer look like buttons
  • Check custom fonts load properly

🤖 Generated with Claude Code

- Add custom CSS with Outfit + JetBrains Mono fonts, design tokens
- Add branded header with gradient logo and feature badges
- Fix label styling to not look like buttons
- Add Key Concepts tab explaining TTT innovation
- Add incremental integration diagrams (Vanilla -> RAG -> Neural Memory -> Docker)
- Remove confusing Playground tab
- Add polished footer with all profile links (GitHub, LinkedIn, Kaggle 2x gold medals, HuggingFace, Google Scholar, Personal website)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 9, 2026 13:49

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Clean Code Collective
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

@macayaven
macayaven merged commit 1691510 into main Jan 9, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive custom design system and polished UI to the Docker Neural Memory demo, addressing reviewer feedback about label styling and improving the educational content presentation. The changes transform the basic Gradio interface into a branded, professional-looking application.

Key Changes:

  • Implements custom CSS design system with Outfit and JetBrains Mono fonts, design tokens, and gradient styling
  • Fixes label styling to prevent them from looking like buttons (addressing reviewer feedback)
  • Replaces the confusing "Playground" tab with a new "Key Concepts" educational tab and "Integration & Docker" tab with incremental diagrams

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deploy/huggingface/app.py
Comment on lines +200 to +203
background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSS uses vendor-prefixed properties (-webkit-background-clip, -webkit-text-fill-color) for gradient text effects. While these are necessary for some browsers, consider also including the standard properties (background-clip, text-fill-color) after the prefixed versions for better cross-browser compatibility and future-proofing.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +297 to +298
" onmouseover="this.style.borderColor='#f8fafc'; this.style.background='rgba(255,255,255,0.1)';"
onmouseout="this.style.borderColor='transparent'; this.style.background='rgba(255,255,255,0.05)';">

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline onmouseover and onmouseout event handlers are a potential security concern and violate Content Security Policy (CSP) best practices. Consider moving these hover effects to CSS using :hover pseudo-classes instead of inline JavaScript. This would be both more secure and more maintainable.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +325 to +326
" onmouseover="this.style.borderColor='#20beff'; this.style.color='#20beff';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline onmouseover and onmouseout event handlers are a potential security concern and violate Content Security Policy (CSP) best practices. Consider moving these hover effects to CSS using :hover pseudo-classes instead of inline JavaScript. This would be both more secure and more maintainable.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +301 to +367
<a href="https://www.linkedin.com/in/carlos-crespo-macaya/" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#0077b5'; this.style.color='#0077b5';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">💼</span> LinkedIn
</a>
<a href="https://www.kaggle.com/macayaven" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#20beff'; this.style.color='#20beff';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">📊</span> Kaggle <span style="background: linear-gradient(135deg, #ffd700, #ffb700); color: #000; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: 600;">2×🥇</span>
</a>
<a href="https://huggingface.co/macayaven" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#ff9d00'; this.style.color='#ff9d00';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">🤗</span> HuggingFace
</a>
<a href="https://scholar.google.com/citations?user=hwvDud0AAAAJ" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#4285f4'; this.style.color='#4285f4';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">🎓</span> Scholar
</a>
<a href="https://carlos-crespo.com" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#00d4ff'; this.style.color='#00d4ff';"

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline onmouseover and onmouseout event handlers are a potential security concern and violate Content Security Policy (CSP) best practices. Consider moving these hover effects to CSS using :hover pseudo-classes instead of inline JavaScript. This would be both more secure and more maintainable.

Suggested change
<a href="https://www.linkedin.com/in/carlos-crespo-macaya/" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#0077b5'; this.style.color='#0077b5';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">💼</span> LinkedIn
</a>
<a href="https://www.kaggle.com/macayaven" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#20beff'; this.style.color='#20beff';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">📊</span> Kaggle <span style="background: linear-gradient(135deg, #ffd700, #ffb700); color: #000; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: 600;">2×🥇</span>
</a>
<a href="https://huggingface.co/macayaven" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#ff9d00'; this.style.color='#ff9d00';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">🤗</span> HuggingFace
</a>
<a href="https://scholar.google.com/citations?user=hwvDud0AAAAJ" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#4285f4'; this.style.color='#4285f4';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">
<span style="font-size: 1.2em;">🎓</span> Scholar
</a>
<a href="https://carlos-crespo.com" target="_blank" style="
display: flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
" onmouseover="this.style.borderColor='#00d4ff'; this.style.color='#00d4ff';"
<style>
.social-link {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.05);
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
color: #f8fafc;
font-size: 0.9em;
transition: all 0.3s ease;
border: 1px solid transparent;
}
.social-link-linkedin:hover {
border-color: #0077b5;
color: #0077b5;
}
.social-link-kaggle:hover {
border-color: #20beff;
color: #20beff;
}
.social-link-huggingface:hover {
border-color: #ff9d00;
color: #ff9d00;
}
.social-link-scholar:hover {
border-color: #4285f4;
color: #4285f4;
}
.social-link-website:hover {
border-color: #00d4ff;
color: #00d4ff;
}
</style>
<a href="https://www.linkedin.com/in/carlos-crespo-macaya/" target="_blank" class="social-link social-link-linkedin">
<span style="font-size: 1.2em;">💼</span> LinkedIn
</a>
<a href="https://www.kaggle.com/macayaven" target="_blank" class="social-link social-link-kaggle">
<span style="font-size: 1.2em;">📊</span> Kaggle <span style="background: linear-gradient(135deg, #ffd700, #ffb700); color: #000; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: 600;">2×🥇</span>
</a>
<a href="https://huggingface.co/macayaven" target="_blank" class="social-link social-link-huggingface">
<span style="font-size: 1.2em;">🤗</span> HuggingFace
</a>
<a href="https://scholar.google.com/citations?user=hwvDud0AAAAJ" target="_blank" class="social-link social-link-scholar">
<span style="font-size: 1.2em;">🎓</span> Scholar
</a>
<a href="https://carlos-crespo.com" target="_blank" class="social-link social-link-website">
<span style="font-size: 1.2em;">🌐</span> Website
</a>

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +367 to +368
" onmouseover="this.style.borderColor='#00d4ff'; this.style.color='#00d4ff';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline onmouseover and onmouseout event handlers are a potential security concern and violate Content Security Policy (CSP) best practices. Consider moving these hover effects to CSS using :hover pseudo-classes instead of inline JavaScript. This would be both more secure and more maintainable.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
</div>
<div style="margin-top: 20px; padding: 15px; background: rgba(0,0,0,0.3); border-radius: 10px;">
<p style="color: #a0aec0; margin: 0; font-size: 0.9em;">
<strong style="color: #f8fafc;">This demo implements real TTT:</strong> When you add a fact, actual PyTorch gradients flow and actual neural network weights change. This is not a simulation—it's the Titans architecture from Google's December 2024 paper.

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text references "Google's December 2024 paper" but according to the system information, the current date is January 9, 2026, making December 2024 a past date. However, knowledge cuts off in January 2025, so this could be accurate. If this paper exists, this is fine, but verify that the reference is accurate and consider adding a link to the paper for credibility and easy reference.

Suggested change
<strong style="color: #f8fafc;">This demo implements real TTT:</strong> When you add a fact, actual PyTorch gradients flow and actual neural network weights change. This is not a simulation—it's the Titans architecture from Google's December 2024 paper.
<strong style="color: #f8fafc;">This demo implements real TTT:</strong> When you add a fact, actual PyTorch gradients flow and actual neural network weights change. This is not a simulation—it's a Titans-style test-time training architecture implemented in PyTorch.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +166 to +167
/* Smooth animations */
* {

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The universal selector with transitions applies to all elements on the page, which can significantly impact performance. This will cause every single element to calculate transitions for background-color, border-color, and box-shadow on every render, even if they never change. Consider applying transitions only to specific components that need them, or use a more selective approach like applying transitions to interactive elements only.

Suggested change
/* Smooth animations */
* {
/* Smooth animations for interactive and card elements */
button, a, input, textarea, select,
.gr-button, .gr-box, .gr-panel, .gr-plot {

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +311 to +312
" onmouseover="this.style.borderColor='#0077b5'; this.style.color='#0077b5';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline onmouseover and onmouseout event handlers are a potential security concern and violate Content Security Policy (CSP) best practices. Consider moving these hover effects to CSS using :hover pseudo-classes instead of inline JavaScript. This would be both more secure and more maintainable.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
Comment on lines +353 to +354
" onmouseover="this.style.borderColor='#4285f4'; this.style.color='#4285f4';"
onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';">

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline onmouseover and onmouseout event handlers are a potential security concern and violate Content Security Policy (CSP) best practices. Consider moving these hover effects to CSS using :hover pseudo-classes instead of inline JavaScript. This would be both more secure and more maintainable.

Copilot uses AI. Check for mistakes.
Comment thread deploy/huggingface/app.py
<span style="background: rgba(252, 129, 129, 0.2); color: #fc8181; padding: 5px 12px; border-radius: 6px; font-size: 0.8em;">✓ Simple</span>
<span style="background: rgba(252, 129, 129, 0.2); color: #fc8181; padding: 5px 12px; border-radius: 6px; font-size: 0.8em;">✓ Scalable</span>
<span style="background: rgba(100, 116, 139, 0.3); color: #94a3b8; padding: 5px 12px; border-radius: 6px; font-size: 0.8em;">✗ No patterns</span>
<span style="background: rgba(100, 116, 139, 0.3); color: #94a3b8; padding: 5px 12px; border-radius: 6px; font-size: 0.8em;">✗ Grows</span>

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "Grows" in this context is ambiguous. It should be more specific, such as "Database grows" or "Context size grows" to clearly communicate what limitation this refers to.

Suggested change
<span style="background: rgba(100, 116, 139, 0.3); color: #94a3b8; padding: 5px 12px; border-radius: 6px; font-size: 0.8em;">✗ Grows</span>
<span style="background: rgba(100, 116, 139, 0.3); color: #94a3b8; padding: 5px 12px; border-radius: 6px; font-size: 0.8em;">✗ Database grows</span>

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants