Repository navigation
Fix AI chat layout and refresh README - #24
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis 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.
Confidence Score: 5/5Safe 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.
|
| 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]
Reviews (5): Last reviewed commit: "feat: push report" | Re-trigger Greptile
| .tavi-bubble-tavi-stack .tavi-bubble { | ||
| max-width: 100%; | ||
| } |
There was a problem hiding this comment.
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.
| .tavi-bubble-tavi-stack .tavi-bubble { | |
| max-width: 100%; | |
| } | |
| .tavi-bubble-tavi-stack .tavi-bubble--tavi-reply { | |
| max-width: 100%; | |
| } |
Summary
Validation
npm run precommitnpm run checknpm run buildNotes
This is a clean branch from
mainwith the current fixes grouped into two commits.