[PR #1814] [MERGED] Restore tracker parity for avatar uploads and long rows #5285

Closed
opened 2026-10-22 04:14:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1814
Author: @Xelvanis
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @Xelvanis

Base: refactor ← Head: fix/tracker-parity-1801


📝 Commits (2)

  • 4bfd4af Restore tracker parity for long rows
  • 14203e3 Address tracker review feedback

📊 Changes

10 files changed (+280 additions, -80 deletions)

View changed files

📝 src/features/catalog/characters/lib/character-search.ts (+1 -1)
📝 src/features/runtime/tracker/components/CustomTrackerPanel.tsx (+121 -61)
📝 src/features/runtime/tracker/components/QuestTrackerPanel.tsx (+4 -0)
📝 src/features/runtime/tracker/components/TrackerSectionList.tsx (+2 -0)
📝 src/features/runtime/tracker/components/quest-tracker/QuestBoard.tsx (+7 -1)
📝 src/features/runtime/tracker/components/quest-tracker/QuestObjectiveRow.tsx (+20 -1)
📝 src/features/runtime/tracker/components/quest-tracker/QuestRow.css (+64 -5)
📝 src/features/runtime/tracker/components/quest-tracker/QuestRow.tsx (+16 -0)
➕ src/features/runtime/tracker/components/quest-tracker/quest-layout.ts (+15 -0)
📝 src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts (+30 -11)

📄 Description

Linked issue

Closes #1801

Why this change

  • The refactor tracker regressed three legacy behaviors: stale NPC avatar uploads could overwrite newer uploads, quest board badges showed completed/active instead of completed/total, and long quest/objective/custom tracker rows were truncated too aggressively.

What changed

  • Added per-character avatar upload tokens so only the latest async upload result for a character can update tracker state.
  • Changed the quest board badge to completed/total while keeping the done/active tooltip.
  • Added tracker-size-aware quest title/objective wrapping and a small quest layout helper.
  • Updated custom tracker rows so long labels/values use readable single-column wrapping instead of forced multi-column truncation.
  • De-exported an internal character search type to clear the existing unused-export PR gate.

Refactor impact

Primary owner:

  • Runtime tracker and world-state UI.

Impact areas reviewed:

  • Fixed tracker side panel, roleplay HUD tracker avatar upload path, quest board rows, custom tracker rows, UI store size profile plumbing, character search unused-code gate.

Boundary notes:

  • Changes stay in feature/runtime UI and world-state hooks. No engine, shared API adapter, Rust, or remote-runtime boundary changes.

Pressure points touched:

  • Tracker side panel row rendering and native Tauri tracker panel QA.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Ran pnpm typecheck.
  • Ran pnpm check:architecture.
  • Ran pnpm build.
  • Ran pnpm lint:eslint.
  • Ran pnpm check; first run exposed an unrelated unused exported type, then passed after de-exporting that internal type.
  • Ran git diff --cached --check.
  • Ran native Tauri QA with pnpm tauri dev --no-watch --config scratch\tauri-qa.config.json.
  • In the native WebView, seeded tracker data with one completed quest, one active long quest/objective, and long custom fields. Confirmed the expanded tracker rendered 1/2, long quest/objective/custom text was present and wrapped, then restored QA storage and stopped Codex-owned Tauri/Vite processes.
  • Avatar upload race was reviewed through the async token implementation path; a real two-file OS picker race was not manually exercised.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • N/A. This is a tracker parity bugfix, not a new discoverable feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No docs or changelog changes were made; this is a targeted bugfix with no new user-facing concept or release-process claim.

UI evidence

  • Native Tauri screenshot evidence was captured locally during QA but not committed to the PR.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added responsive text wrapping for quest titles and objectives that adapts based on panel size and content
    • Implemented multi-column layout support for custom tracker panels
    • Updated quest badge to display completed/total counts
  • Bug Fixes

    • Fixed race condition risk in avatar uploads for improved reliability

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1814 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/1/2026 **Status:** ✅ Merged **Merged:** 6/1/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/tracker-parity-1801` --- ### 📝 Commits (2) - [`4bfd4af`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4bfd4afa70f81386715a69545a45d5ddc7f1fbd9) Restore tracker parity for long rows - [`14203e3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14203e3b6ee32ef129b9fd6e263e879993accb1c) Address tracker review feedback ### 📊 Changes **10 files changed** (+280 additions, -80 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/characters/lib/character-search.ts` (+1 -1) 📝 `src/features/runtime/tracker/components/CustomTrackerPanel.tsx` (+121 -61) 📝 `src/features/runtime/tracker/components/QuestTrackerPanel.tsx` (+4 -0) 📝 `src/features/runtime/tracker/components/TrackerSectionList.tsx` (+2 -0) 📝 `src/features/runtime/tracker/components/quest-tracker/QuestBoard.tsx` (+7 -1) 📝 `src/features/runtime/tracker/components/quest-tracker/QuestObjectiveRow.tsx` (+20 -1) 📝 `src/features/runtime/tracker/components/quest-tracker/QuestRow.css` (+64 -5) 📝 `src/features/runtime/tracker/components/quest-tracker/QuestRow.tsx` (+16 -0) ➕ `src/features/runtime/tracker/components/quest-tracker/quest-layout.ts` (+15 -0) 📝 `src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts` (+30 -11) </details> ### 📄 Description ## Linked issue Closes #1801 ## Why this change - The refactor tracker regressed three legacy behaviors: stale NPC avatar uploads could overwrite newer uploads, quest board badges showed completed/active instead of completed/total, and long quest/objective/custom tracker rows were truncated too aggressively. ## What changed - Added per-character avatar upload tokens so only the latest async upload result for a character can update tracker state. - Changed the quest board badge to completed/total while keeping the done/active tooltip. - Added tracker-size-aware quest title/objective wrapping and a small quest layout helper. - Updated custom tracker rows so long labels/values use readable single-column wrapping instead of forced multi-column truncation. - De-exported an internal character search type to clear the existing unused-export PR gate. ## Refactor impact Primary owner: - Runtime tracker and world-state UI. Impact areas reviewed: - Fixed tracker side panel, roleplay HUD tracker avatar upload path, quest board rows, custom tracker rows, UI store size profile plumbing, character search unused-code gate. Boundary notes: - Changes stay in feature/runtime UI and world-state hooks. No engine, shared API adapter, Rust, or remote-runtime boundary changes. Pressure points touched: - Tracker side panel row rendering and native Tauri tracker panel QA. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [x] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Ran `pnpm typecheck`. - Ran `pnpm check:architecture`. - Ran `pnpm build`. - Ran `pnpm lint:eslint`. - Ran `pnpm check`; first run exposed an unrelated unused exported type, then passed after de-exporting that internal type. - Ran `git diff --cached --check`. - Ran native Tauri QA with `pnpm tauri dev --no-watch --config scratch\tauri-qa.config.json`. - In the native WebView, seeded tracker data with one completed quest, one active long quest/objective, and long custom fields. Confirmed the expanded tracker rendered `1/2`, long quest/objective/custom text was present and wrapped, then restored QA storage and stopped Codex-owned Tauri/Vite processes. - Avatar upload race was reviewed through the async token implementation path; a real two-file OS picker race was not manually exercised. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - N/A. This is a tracker parity bugfix, not a new discoverable feature. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims No docs or changelog changes were made; this is a targeted bugfix with no new user-facing concept or release-process claim. ## UI evidence - Native Tauri screenshot evidence was captured locally during QA but not committed to the PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added responsive text wrapping for quest titles and objectives that adapts based on panel size and content * Implemented multi-column layout support for custom tracker panels * Updated quest badge to display completed/total counts * **Bug Fixes** * Fixed race condition risk in avatar uploads for improved reliability <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:55 +07:00
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#5285
No description provided.