Skip to content

docs: clean avatar and tts documentation#9

Merged
SweetSophia merged 3 commits into
fix/avatar-accessibility-testsfrom
fix/avatar-docs-cleanup
May 15, 2026
Merged

docs: clean avatar and tts documentation#9
SweetSophia merged 3 commits into
fix/avatar-accessibility-testsfrom
fix/avatar-docs-cleanup

Conversation

@SweetSophia
Copy link
Copy Markdown
Owner

Summary

  • Replace absolute local workspace paths in avatar documentation with repo-relative paths.
  • Update avatar docs for local character asset uploads and remove stale URL-only guidance.
  • Reframe TTS notes as maintained integration documentation instead of generated audit output.

Validation

  • pnpm run lint
  • git diff --name-only -- '*.md' | xargs -r git grep -n '/home/niya' --

Copilot AI review requested due to automatic review settings May 12, 2026 22:27
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @SweetSophia, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation in AVATAR.md and TTS.md to align with recent feature updates and improve pathing. Key changes include replacing absolute local paths with relative project paths, documenting the new local asset upload system for character avatars, and centralizing video detection logic. The TTS.md file was also updated to reflect that binary storage is now utilized for character assets and to provide a more neutral summary of the current lack of TTS integration. A review comment correctly identified that the line numbers for the CharacterAvatar component in the documentation were outdated and provided a suggestion for correction.

Comment thread AVATAR.md Outdated
## Main Avatar Component: CharacterAvatar

**File:** `/home/niya/github/OpenRoom/apps/webuiapps/src/components/ChatPanel/ChatSubComponents.tsx` (lines 92-198)
**File:** `apps/webuiapps/src/components/ChatPanel/ChatSubComponents.tsx` (lines 92-198)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The line numbers for the CharacterAvatar component are outdated. Following the recent updates to ChatSubComponents.tsx (which added asset resolution and error handling), the component and its associated types now span from line 92 to line 251.

Suggested change
**File:** `apps/webuiapps/src/components/ChatPanel/ChatSubComponents.tsx` (lines 92-198)
**File:** `apps/webuiapps/src/components/ChatPanel/ChatSubComponents.tsx` (lines 92-251)

Copy link
Copy Markdown

Copilot AI left a comment

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 refreshes internal developer documentation for avatars and TTS by removing machine-local absolute paths, updating avatar docs to reflect the current local-asset upload flow, and reframing the TTS doc as maintained integration notes.

Changes:

  • Replace absolute workspace paths in AVATAR.md with repo-relative paths and update the CharacterPanel/avatar docs to include local uploads.
  • Update TTS.md framing/summary and refresh putBinaryFile “current usage” notes to include character asset uploads.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
TTS.md Reframes the document as integration notes and updates storage usage notes (now includes character asset uploads).
AVATAR.md Cleans path references and updates avatar/CharacterPanel documentation to reflect URL + local upload support.

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

Comment thread AVATAR.md Outdated
## Main Avatar Component: CharacterAvatar

**File:** `/home/niya/github/OpenRoom/apps/webuiapps/src/components/ChatPanel/ChatSubComponents.tsx` (lines 92-198)
**File:** `apps/webuiapps/src/components/ChatPanel/ChatSubComponents.tsx` (lines 92-198)
Comment thread AVATAR.md Outdated

```
User pastes URL → emotionImages[emotion] = url
User pastes URL or uploads asset → emotionImages[emotion] or emotionVideos[emotion] = path/url
Comment thread TTS.md
Comment on lines +218 to 220
**Current Usage:** Called from `imageGenTools.ts` to save generated images and from `characterAssetUpload.ts` to save uploaded character images/videos.

**Relevance to TTS:** This is the **exact storage mechanism** a TTS system would use to save generated audio files (e.g., `audio/mp3`, `audio/wav`). No code changes needed to the storage layer — it is already capable of persisting arbitrary binary data.
Comment thread AVATAR.md Outdated
## Emotion Resolution Algorithm

**File:** `/home/niya/github/OpenRoom/apps/webuiapps/src/lib/characterManager.ts` (lines 316-368)
**File:** `apps/webuiapps/src/lib/characterManager.ts` (lines 316-368)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔥 The Roast: You scrubbed every /home/niya/github/OpenRoom/ path like you were erasing a crime scene, but you left the line numbers untouched like fingerprints on the doorknob. resolveEmotionMedia starts at line 319, not 316. And since clearEmotionVideoCache lives at 360–368, that range is pretending to be one contiguous block when it's actually a dysfunctional roommate situation with a gap in between.

🩹 The Fix: Update to (lines 319–368) — or better yet, drop line numbers entirely and let readers use grep like the adults they are.

📏 Severity: suggestion

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot Bot commented May 12, 2026

Code Review Roast 🔥

Verdict: No New Issues in Incremental Diff | Recommendation: Merge (already merged)

Overview

Severity Count
🚨 critical 0
⚠️ warning 0
💡 suggestion 0
🤏 nitpick 0

Previously Reported Issues — Status Update

File Line Status Notes
AVATAR.md 118 Resolved CharacterAvatar now correctly cites lines 96–251
AVATAR.md 209 Resolved resolveEmotionMedia now correctly cites lines 319–368
TTS.md 192 Resolved Section header "Image-Only Today" removed; now just "Generic Binary File Storage"

Out-of-Diff Issues (Cannot Comment Inline)

File Line Issue
TTS.md 164 Muted avatar video cited at "ChatSubComponents.tsx lines 171–182" — actual code is at lines 222–234

🏆 Best part: You actually fixed the doc line numbers. I'm as surprised as you are. grep -n has finally entered the chat.

💀 Worst part: TTS.md line 164 is still out here living its best life, pretending the video element lives at lines 171–182 when it clearly moved to 222–234. Documentation debt is like that one gym membership you keep meaning to cancel.

📊 Overall: Like watching someone finally organize their junk drawer. It was all useful stuff, just in the wrong place. The docs now match reality — mostly.

Files Reviewed (2 files)
  • AVATAR.md — 0 issues (fixed line number references and editor data flow diagram)
  • TTS.md — 0 issues (removed outdated "Image-Only Today" header)

Reviewed by kimi-for-coding · 197,986 tokens

@SweetSophia SweetSophia force-pushed the fix/avatar-accessibility-tests branch from dd1f82d to 0d22b34 Compare May 13, 2026 06:46
@SweetSophia SweetSophia force-pushed the fix/avatar-docs-cleanup branch from 803e877 to 9d26502 Compare May 13, 2026 06:47
@SweetSophia SweetSophia force-pushed the fix/avatar-accessibility-tests branch from 0d22b34 to f006444 Compare May 13, 2026 12:50
@SweetSophia SweetSophia force-pushed the fix/avatar-docs-cleanup branch from 9d26502 to d58dda3 Compare May 13, 2026 12:50
SweetSophia and others added 2 commits May 15, 2026 16:12
* test: cover avatar asset editor flow

* test: address avatar asset e2e review feedback

* test: clean up isolated e2e server home
@SweetSophia SweetSophia merged commit 9ab21cb into fix/avatar-accessibility-tests May 15, 2026
2 checks passed
SweetSophia added a commit that referenced this pull request May 15, 2026
* docs: clean avatar and tts documentation

* test: cover avatar asset editor flow (#10)

* test: cover avatar asset editor flow

* test: address avatar asset e2e review feedback

* test: clean up isolated e2e server home

* docs: fix outdated line numbers and storage description
SweetSophia added a commit that referenced this pull request May 15, 2026
* fix: stage character asset mutations

* fix: stream character assets for display

* fix: improve avatar asset accessibility

* docs: clean avatar and tts documentation (#9)

* docs: clean avatar and tts documentation

* test: cover avatar asset editor flow (#10)

* test: cover avatar asset editor flow

* test: address avatar asset e2e review feedback

* test: clean up isolated e2e server home

* docs: fix outdated line numbers and storage description
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