[GH-ISSUE #1801] [Issue]: Restore tracker parity for avatar uploads and long tracker rows #882

Closed
opened 2026-10-21 05:22:54 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1801

Originally assigned to: @Xelvanis on GitHub.

Summary

Tracker parity audit found three likely-unintentional regressions in the refactor tracker surface:

  • NPC avatar uploads no longer guard against stale async upload responses, so an older upload can overwrite a newer avatar choice.
  • Quest board header badge now displays completed/active instead of completed/total, which can produce confusing values like 3/0 when all quests are complete.
  • Long quest/objective/custom tracker text is truncated more aggressively than the legacy tracker panel, losing useful readable wrapping behavior.

Expected behavior

  • Avatar uploads for a tracker character should only apply the latest upload for that character.
  • Quest board badge should show completed quests against total quests.
  • Long quest titles, objectives, and custom tracker fields should remain readable using the tracker size profile rather than being forced into single-line truncation or overly dense columns.

Actual behavior

  • src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts uploads and patches avatarPath without the per-character upload token guard that existed in the legacy tracker mutation hook.
  • src/features/runtime/tracker/components/quest-tracker/QuestBoard.tsx uses ${completedQuests}/${activeQuests} for the badge.
  • src/features/runtime/tracker/components/quest-tracker/QuestRow.css forces quest titles/objectives into nowrap/ellipsis paths.
  • src/features/runtime/tracker/components/CustomTrackerPanel.tsx always pushes custom fields into responsive columns and truncates values, instead of using legacy long-field detection and wrapping.

Steps to reproduce

  1. Enable tracker panels for a chat with character, quest, and custom tracker sections.
  2. Start two avatar uploads for the same tracker character close together, or reorder/remove tracker rows while an upload is pending.
  3. Add or generate several quests, then complete all of them.
  4. Add long quest titles/objectives and long custom tracker values.
  5. Compare the refactor behavior against the legacy tracker panel behavior.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor worktree, static source comparison
  • Run mode: not app-run; static audit only
  • OS + version: not verified
  • Node + pnpm versions: not verified
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No runtime logs or screenshots. Evidence came from static comparison against the legacy tracker implementation:

  • Refactor avatar path: src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts
  • Legacy avatar guard: packages/client/src/features/tracker-panel/hooks/use-tracker-mutations.ts
  • Refactor quest badge/text: src/features/runtime/tracker/components/quest-tracker/QuestBoard.tsx, src/features/runtime/tracker/components/quest-tracker/QuestRow.css
  • Legacy quest wrapping: packages/client/src/features/tracker-panel/components/sections/quest-tracker/QuestBoard.tsx, packages/client/src/features/tracker-panel/components/sections/quest-tracker/quest-layout.ts
  • Refactor custom stats: src/features/runtime/tracker/components/CustomTrackerPanel.tsx
  • Legacy custom stats wrapping: packages/client/src/features/tracker-panel/components/sections/CustomTrackerPanel.tsx

Regression notes

The legacy tracker panel had:

  • Per-character upload tokens for avatar uploads.
  • Quest badge as completed/total.
  • Size-profile-aware quest wrapping with 2-3 line previews.
  • Long custom field detection that avoided dense columns and allowed two-line readable values.

The refactor is better in other tracker areas, especially swipe-targeted tracker snapshots and durable pending patch recovery, so this issue is scoped to the lost avatar/text/badge parity above.

Additional context

Suggested repair order:

  1. Restore a per-character stale-upload guard around npcAvatarApi.upload before patching avatarPath.
  2. Change the quest badge to ${completedQuests}/${quests.length} while keeping the active quest tooltip.
  3. Reintroduce size-profile-aware quest wrapping.
  4. Reintroduce long custom field detection so dense columns are used only when values fit.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1801 Originally assigned to: @Xelvanis on GitHub. ## Summary Tracker parity audit found three likely-unintentional regressions in the refactor tracker surface: - NPC avatar uploads no longer guard against stale async upload responses, so an older upload can overwrite a newer avatar choice. - Quest board header badge now displays completed/active instead of completed/total, which can produce confusing values like `3/0` when all quests are complete. - Long quest/objective/custom tracker text is truncated more aggressively than the legacy tracker panel, losing useful readable wrapping behavior. ## Expected behavior - Avatar uploads for a tracker character should only apply the latest upload for that character. - Quest board badge should show completed quests against total quests. - Long quest titles, objectives, and custom tracker fields should remain readable using the tracker size profile rather than being forced into single-line truncation or overly dense columns. ## Actual behavior - `src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts` uploads and patches `avatarPath` without the per-character upload token guard that existed in the legacy tracker mutation hook. - `src/features/runtime/tracker/components/quest-tracker/QuestBoard.tsx` uses `${completedQuests}/${activeQuests}` for the badge. - `src/features/runtime/tracker/components/quest-tracker/QuestRow.css` forces quest titles/objectives into nowrap/ellipsis paths. - `src/features/runtime/tracker/components/CustomTrackerPanel.tsx` always pushes custom fields into responsive columns and truncates values, instead of using legacy long-field detection and wrapping. ## Steps to reproduce 1. Enable tracker panels for a chat with character, quest, and custom tracker sections. 2. Start two avatar uploads for the same tracker character close together, or reorder/remove tracker rows while an upload is pending. 3. Add or generate several quests, then complete all of them. 4. Add long quest titles/objectives and long custom tracker values. 5. Compare the refactor behavior against the legacy tracker panel behavior. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor worktree, static source comparison - Run mode: not app-run; static audit only - OS + version: not verified - Node + pnpm versions: not verified - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No runtime logs or screenshots. Evidence came from static comparison against the legacy tracker implementation: - Refactor avatar path: `src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts` - Legacy avatar guard: `packages/client/src/features/tracker-panel/hooks/use-tracker-mutations.ts` - Refactor quest badge/text: `src/features/runtime/tracker/components/quest-tracker/QuestBoard.tsx`, `src/features/runtime/tracker/components/quest-tracker/QuestRow.css` - Legacy quest wrapping: `packages/client/src/features/tracker-panel/components/sections/quest-tracker/QuestBoard.tsx`, `packages/client/src/features/tracker-panel/components/sections/quest-tracker/quest-layout.ts` - Refactor custom stats: `src/features/runtime/tracker/components/CustomTrackerPanel.tsx` - Legacy custom stats wrapping: `packages/client/src/features/tracker-panel/components/sections/CustomTrackerPanel.tsx` ## Regression notes The legacy tracker panel had: - Per-character upload tokens for avatar uploads. - Quest badge as completed/total. - Size-profile-aware quest wrapping with 2-3 line previews. - Long custom field detection that avoided dense columns and allowed two-line readable values. The refactor is better in other tracker areas, especially swipe-targeted tracker snapshots and durable pending patch recovery, so this issue is scoped to the lost avatar/text/badge parity above. ## Additional context Suggested repair order: 1. Restore a per-character stale-upload guard around `npcAvatarApi.upload` before patching `avatarPath`. 2. Change the quest badge to `${completedQuests}/${quests.length}` while keeping the active quest tooltip. 3. Reintroduce size-profile-aware quest wrapping. 4. Reintroduce long custom field detection so dense columns are used only when values fit. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:22:54 +07:00
Author
Owner

@Xelvanis commented on GitHub (Jun 1, 2026):

Fixed in #1814, now merged into refactor.

Covered:

  • Tracker avatar uploads now guard stale async results per character, including legacy/id-missing rows.
  • Quest board badge now shows completed/total.
  • Long quest/objective/custom tracker rows wrap by tracker size profile, including compact custom rows.

Validation:

  • Local pnpm check passed.
  • GitHub CI passed for frontend/org, Rust capability, browser smoke/performance, and CodeRabbit.

Remaining note: the OS file-picker two-upload race was code-reviewed through the async token path, but not manually exercised with two real file-picker uploads.

<!-- gh-comment-id:4593242701 --> @Xelvanis commented on GitHub (Jun 1, 2026): Fixed in #1814, now merged into `refactor`. Covered: - Tracker avatar uploads now guard stale async results per character, including legacy/id-missing rows. - Quest board badge now shows completed/total. - Long quest/objective/custom tracker rows wrap by tracker size profile, including compact custom rows. Validation: - Local `pnpm check` passed. - GitHub CI passed for frontend/org, Rust capability, browser smoke/performance, and CodeRabbit. Remaining note: the OS file-picker two-upload race was code-reviewed through the async token path, but not manually exercised with two real file-picker uploads.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#882
No description provided.