[PR #833] [MERGED] Fix green inventory increment notifications #4798

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/833
Author: @Promansis
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Promansis

Base: main ← Head: fix/831-inventory-increment-notification


📝 Commits (1)

  • f09a974 fix: restore green inventory increment notifications (#831)

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+6 -0)

📄 Description

Linked issue

Closes #831

Why this change

Inventory decrement and use actions already showed the in-game red notification overlay, but manual inventory add/increment actions only showed the standard toast feedback. That meant adding or incrementing an item did not get the matching green positive overlay described in the issue.

What changed

  • Added green in-game inventory notifications when a brand-new item is added.
  • Added green in-game inventory notifications when an existing item quantity is incremented.
  • Reused the existing You gained ...! notification text so the current emerald positive styling path applies.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • pnpm check passed locally.
  • User force-tested the UI path and confirmed the original increment path; during that check we found the separate new-item add path, then patched it as well.
  • Manual verification still needs human confirmation before checking the boxes above.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, release metadata, database, or version files changed.

UI evidence (if applicable)

No screenshots attached. The visible behavior is the existing top-center in-game inventory notification overlay turning green for manual add/increment actions.

Summary by CodeRabbit

  • Improvements
    • Inventory notifications now display as in-app messages that automatically dismiss after 4 seconds when you gain items, providing clearer feedback during gameplay.

Review Change Stack


🔄 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/833 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/14/2026 **Status:** ✅ Merged **Merged:** 5/14/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `main` ← **Head:** `fix/831-inventory-increment-notification` --- ### 📝 Commits (1) - [`f09a974`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f09a97478c585b7cb6ef0a41c06d669b5a931576) fix: restore green inventory increment notifications (#831) ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+6 -0) </details> ### 📄 Description ## Linked issue Closes #831 ## Why this change Inventory decrement and use actions already showed the in-game red notification overlay, but manual inventory add/increment actions only showed the standard toast feedback. That meant adding or incrementing an item did not get the matching green positive overlay described in the issue. ## What changed - Added green in-game inventory notifications when a brand-new item is added. - Added green in-game inventory notifications when an existing item quantity is incremented. - Reused the existing `You gained ...!` notification text so the current emerald positive styling path applies. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm check` passed locally. - User force-tested the UI path and confirmed the original increment path; during that check we found the separate new-item add path, then patched it as well. - Manual verification still needs human confirmation before checking the boxes above. ## Docs and release impact - [x] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [x] Version/release files updated (only if this PR includes a version bump) No docs, release metadata, database, or version files changed. ## UI evidence (if applicable) No screenshots attached. The visible behavior is the existing top-center in-game inventory notification overlay turning green for manual add/increment actions. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Inventory notifications now display as in-app messages that automatically dismiss after 4 seconds when you gain items, providing clearer feedback during gameplay. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/833) <!-- review_stack_entry_end --> <!-- 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:10:44 +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#4798
No description provided.