Skip to content

Fix AI chat layout and refresh README - #24

Merged
pablonification merged 6 commits into
mainfrom
fix/ai-chat-layout-docs
May 9, 2026
Merged

pablonification merged 6 commits into
mainfrom
fix/ai-chat-layout-docs

Conversation

@pablonification

Copy link
Copy Markdown
Owner

Summary

  • stabilizes the Personal AI Buddy chat layout so the header stays fixed while messages scroll underneath it
  • restores a visible Tavi loading bubble with dedicated shimmer bars inside the chat bubble
  • refreshes the README with current product, architecture, setup, and AI configuration details

Validation

  • npm run precommit
  • npm run check
  • npm run build

Notes

This is a clean branch from main with the current fixes grouped into two commits.

@vercel

vercel Bot commented May 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hackwknd-2026 Ready Ready Preview, Comment May 9, 2026 11:49pm

@greptile-apps

greptile-apps Bot commented May 9, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR fixes the AI chat layout so the header stays fixed while messages scroll, restores the Tavi loading bubble with CSS shimmer bars, and adds timeout resilience to Elder Studio sync operations. The README is also comprehensively refreshed with architecture diagrams, a changelog, and updated setup instructions.

  • Chat layout: IonContent outer scrolling is disabled via scrollY={!isAiChatRoute} and a ::part(scroll) shadow-DOM override; the chat header moves from position: sticky to position: relative with flex-shrink: 0 inside a flex column, so it remains pinned while the message list scrolls independently.
  • Loading bubble: AppSkeleton replaced with self-contained .tavi-bubble-loading-line spans that re-use the global app-skeleton-shimmer keyframe from src/index.css.
  • Elder Studio resilience: withTimeout now wraps Filesystem reads, storage uploads, DB upserts, and AI transcription; transcription failures are caught and logged rather than aborting the sync.

Confidence Score: 5/5

Safe to merge — all changes are scoped to UI layout, CSS, and Elder Studio timeout handling with no data-path regressions.

The layout fix is well-contained: scroll management is moved to the inner chat container, timeout wrappers improve resilience without changing the happy path, and the CSS refactors use established patterns already present in the codebase.

src/pages/AiHelperPage.css has a minor CSS specificity gap in .tavi-bubble--loading-reply, but it causes no functional breakage.

Important Files Changed

Filename Overview
src/pages/AiHelperPage.css Chat header layout fixed (sticky to relative + flex-shrink:0). New dedicated shimmer bars replace AppSkeleton; shimmer animation keyframe reused from src/index.css. Minor specificity gap means the loading-bubble max-width guard is inactive.
src/pages/AiHelperPage.tsx Loading state now renders custom CSS shimmer spans instead of AppSkeleton. Adds tavi-bubble--loading-reply class when loading to apply fixed-width sizing.
src/pages/HomePage.tsx Adds home-content-ai-chat-mode class and scrollY={!isAiChatRoute} to disable IonContent outer scroll when the AI chat is active, deferring scroll management to the inner chat container.
src/pages/HomePage.css Adds ::part(scroll) override to disable Ionic shadow-DOM scroll container in AI chat mode, complementing the scrollY prop change in HomePage.tsx.
src/pages/OnboardingPage.css Replaces hardcoded min-height offsets with a --onboarding-panel-top CSS custom property, making panel positioning consistent across hero variants.
src/lib/elderStudio.ts Wraps Filesystem.readFile, storage upload, AI transcription, and DB upsert with withTimeout. AI transcription failures are now caught and logged rather than aborting the entire sync.
README.md Comprehensive refresh: adds architecture and data-flow diagrams, changelog section, expanded setup/config steps, and updated tech stack table.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[IonContent scrollY=false in AI chat] -->|outer scroll disabled| B[home-shell flex column]
    B --> C[tavi-chat-header position relative flex-shrink 0]
    B --> D[tavi-chat-messages flex 1 overflow-y auto]
    D --> E{message.loading?}
    E -- yes --> F[tavi-bubble--loading-reply width 186px]
    F --> G[2x tavi-bubble-loading-line app-skeleton-shimmer]
    E -- no --> H[tavi-bubble-text rendered message]
Loading

Reviews (5): Last reviewed commit: "feat: push report" | Re-trigger Greptile

Comment on lines +608 to 610
.tavi-bubble-tavi-stack .tavi-bubble {
max-width: 100%;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 The new rule sets max-width: 100% on every .tavi-bubble that lives inside .tavi-bubble-tavi-stack, which includes the translation bubble and the coach-note bubble, not just the loading reply. Previously those bubbles were capped at 72% by the base .tavi-bubble rule. If keeping translation/coach-note bubbles narrower is desired, scope this override to the reply bubble only.

Suggested change
.tavi-bubble-tavi-stack .tavi-bubble {
max-width: 100%;
}
.tavi-bubble-tavi-stack .tavi-bubble--tavi-reply {
max-width: 100%;
}

@pablonification
pablonification merged commit a27c731 into main May 9, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 15036d18 Deployed May 9, 2026 by vercel[bot]
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