Repository navigation
feat: Polish UI with custom design system and add profile links - #4
Conversation
- 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>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%); | ||
| -webkit-background-clip: text; | ||
| -webkit-text-fill-color: transparent; | ||
| background-clip: text; |
There was a problem hiding this comment.
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.
| " 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)';"> |
There was a problem hiding this comment.
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.
| " onmouseover="this.style.borderColor='#20beff'; this.style.color='#20beff';" | ||
| onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';"> |
There was a problem hiding this comment.
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.
| <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';" |
There was a problem hiding this comment.
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.
| <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> |
| " onmouseover="this.style.borderColor='#00d4ff'; this.style.color='#00d4ff';" | ||
| onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';"> |
There was a problem hiding this comment.
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.
| </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. |
There was a problem hiding this comment.
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.
| <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. |
| /* Smooth animations */ | ||
| * { |
There was a problem hiding this comment.
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.
| /* Smooth animations */ | |
| * { | |
| /* Smooth animations for interactive and card elements */ | |
| button, a, input, textarea, select, | |
| .gr-button, .gr-box, .gr-panel, .gr-plot { |
| " onmouseover="this.style.borderColor='#0077b5'; this.style.color='#0077b5';" | ||
| onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';"> |
There was a problem hiding this comment.
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.
| " onmouseover="this.style.borderColor='#4285f4'; this.style.color='#4285f4';" | ||
| onmouseout="this.style.borderColor='transparent'; this.style.color='#f8fafc';"> |
There was a problem hiding this comment.
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.
| <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> |
There was a problem hiding this comment.
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.
| <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> |
Summary
Test plan
🤖 Generated with Claude Code