mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7643] [MERGED] fix(avatars): clear the Tripo key with Connections data and tidy the key field #7856
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7856
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7643
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/tripo-key-followups📝 Commits (3)
4cce594fix(avatars): clear the Tripo key with Connections data and tidy the key fieldc73ef86fix(avatars): leave focus alone when the user moved on during a key save7fe0075Merge branch 'staging' into fix/tripo-key-followups📊 Changes
7 files changed (+124 additions, -13 deletions)
View changed files
📝
docs/agents/avatars.md(+1 -1)📝
docs/data/clearing-data.md(+1 -1)📝
e2e/avatar-vrm-generation.e2e.ts(+62 -3)📝
packages/client/src/features/avatars/renderers/vrm/VrmModelMaker.tsx(+38 -7)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/server/src/routes/admin.routes.ts(+5 -0)📝
scripts/regressions/avatar-vrm-generation.regression.ts(+16 -1)📄 Description
Linked issue
No linked issue: requested by the maintainer on 2026-10-14.
Follow-up to #7633 (Tripo set up on the 3D Avatars page instead of Connections), which merged before its review findings were fixed. Tripo is on
stagingonly and was never released.Why this change
What changed
Server
admin.routes.ts: the Connections clear-data scope also deletes thetripoApiKeyapp setting (TRIPO_API_KEY_SETTINGfromtripo-key.ts), next to the TTS and Speech to Text settings it already deletes. Clear All Data runs every scope, so it removes it too.3D Avatars page (
VrmModelMaker.tsx, Tripo API key field)aria-describedby. A screen reader hears "Your key is saved. Paste a new one to replace it." (or the empty-state line) on the field.:focus-visibleon the element that started the action. Focus is only taken back when it dropped to the page or is still in the key field. If the user moved to another control while the request was running, focus stays there (GitHub CodeRabbit's review comment).avatars.vrm.make.key.checkFailed.Docs
docs/agents/avatars.md: Key not accepted now says to paste a working key and select Save, and that Get a key opens Tripo's key page.docs/data/clearing-data.md: Connections also removes the Tripo API key saved on the 3D Avatars page.[docs-i18n] docs/agents/avatars.md, docs/data/clearing-data.md).Tests
scripts/regressions/avatar-vrm-generation.regression.ts: saves a key throughPUT /tripo-key, runsPOST /api/admin/expungewith theconnectionsscope, then checks that the setting is gone andGET /tripo-keyanswers{ saved: false }. Without the server change this fails (the encrypted key is still stored).e2e/avatar-vrm-generation.e2e.ts:GET /tripo-keyanswers 503, the field shows the failure line with no Remove, then Save works. It then presses Remove from the keyboard, holds the request, and focuses the character picker. Once the request is let through, the picker keeps focus.Review findings not changed in code
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
pnpm check: exit 0, run after each commit. The only lint output is a warning that was already there, inHomeProfessorMariChat.tsx.pnpm localization:check: passed.node scripts/run-regressions.mjs --filter avatar: 17/17 passed.node scripts/run-regressions.mjs --filter connection: 7/7 passed.node scripts/run-regressions.mjs --filter admin: 2/2 passed.node scripts/run-regressions.mjs --filter speech-to-text: 1/1 passed.node scripts/run-regressions.mjs --filter avatar-vrm-generationwithout theadmin.routes.tschange: failed on the new expunge assertion, as expected.npx playwright test e2e/avatar-vrm-generation.e2e.ts --project=desktop-chromium --project=mobile-chromium --workers=1: 8/8 passed, both before and after the focus-guard commit.toBeFocusedfor the key field. With the guard bypassed, it failed ontoBeFocusedfor the character picker.coderabbit review --agent --committed --base-commit <merge-base>) on the first commit: review completed, 0 findings, 7 files reviewed. GitHub CodeRabbit then found 1 issue (focus taken back after the user moved on). It is fixed in the second commit, and the thread is answered and resolved.Manual verification notes
/api/avatar-generation/tripo-key(Network → Block request URL), then reload and open the 3D Avatars page. After a second or two the field should say "Couldn't check whether your Tripo API key is saved."Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs changed:
docs/agents/avatars.mdanddocs/data/clearing-data.md. Translation follow-up: #7642. No CHANGELOG entry: release notes are compiled from this PR's "What changed".UI evidence (if applicable)
No new screenshots. The layout didn't change. The e2e still saves
tripo-key-empty.png,vrm-model-draft.pngandvrm-model-saved.pngon both projects.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.