Skip to content

Release 0.3.0 - UX, Performance & Hugging Face Pivot#5

Merged
GehDoc merged 21 commits into
mainfrom
feat/ux-performance-gemini
Jun 15, 2026
Merged

Release 0.3.0 - UX, Performance & Hugging Face Pivot#5
GehDoc merged 21 commits into
mainfrom
feat/ux-performance-gemini

Conversation

@GehDoc

@GehDoc GehDoc commented Jun 14, 2026

Copy link
Copy Markdown
Owner

This release marks a major architectural refinement and security hardening phase. After a brief trial with Gemini 1.5, we have successfully pivoted back to an enhanced Hugging Face integration while retaining all planned UX and data model improvements.

🚀 New Features & Enhancements

  • Hugging Face Llama 3.1 Integration: Restored as the primary inference provider, ensuring reliability and sustainability.
  • Enhanced System Prompt: A refined "Fact-First" prompt enforcing strict JSON output, high-precision geographic data (City, State, Country), and dynamic localized map links.
  • Top-Level Interactive Maps: Automatic transformation of Markdown links into secure Google Maps iframes, placed at the beginning of itineraries with robust URL encoding (handling commas and spaces).
  • Standardized Titles: Enforced the pattern "[Destination]: [Catchphrase]" for consistent branding in the trip navigator.
  • Rich Prompt Input: Transitioned to a textarea in the GenerationForm to support detailed, multi-line trip descriptions.
  • Trip Data Model v2: Implemented a structured schema (title, start, stop, content, prompt) with a robust migration path from v1.

🛡️ Security & Integrity

  • Strict Markdown Sanitization: Integrated rehype-sanitize with a whitelist-only policy. All raw <iframe>, <script>, and potentially malicious HTML from the AI are strictly blocked.
  • HTML Validation: Fixed React 19 hydration and nesting errors (e.g., ensuring <div> elements are not nested inside <p> tags during markdown rendering).

🛠 Visual & UX Refinements

  • Typography Overhaul: Enhanced the prose styles with explicit Tailwind utility overrides. Section headers (###) now feature borders and distinct scaling.
  • Redundancy Cleanup: Removed duplicate titles and unnecessary labels (like "Google Maps:") to achieve a cleaner, more professional card layout.
  • Performance Optimization: Applied React.memo to all major presentational components to eliminate unnecessary re-renders.

🧪 Quality & Documentation

  • E2E & Unit Testing: Fixed and isolated the E2E test suite on a dedicated port (3002). 31/31 unit tests and all E2E tests passing.
  • Full Spec Archival: The entire refinement lifecycle is documented and archived in specs/completed/.

@GehDoc GehDoc self-assigned this Jun 15, 2026
@GehDoc GehDoc changed the title feat: UX refinement, Performance optimization, and Gemini 1.5 migration Release 0.3.0 - UX, Performance & Hugging Face Pivot Jun 15, 2026
@GehDoc GehDoc enabled auto-merge June 15, 2026 23:36
@GehDoc GehDoc merged commit 9bb3350 into main Jun 15, 2026
2 checks passed
@GehDoc GehDoc deleted the feat/ux-performance-gemini branch June 15, 2026 23:37
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.

1 participant