Skip to content

Frontend asset handling & Functioning profile page#26

Merged
Driedoutjerky merged 12 commits into
mainfrom
fix/cleanup
Jun 9, 2026
Merged

Frontend asset handling & Functioning profile page#26
Driedoutjerky merged 12 commits into
mainfrom
fix/cleanup

Conversation

@Driedoutjerky

Copy link
Copy Markdown
Owner

Summary

  • Adds frontend asset handling for the Memory Egg equipment flow.

Added

  • Created an asset registry to map stable asset keys to frontend image files.
  • Added real profile page data from existing mock hooks.
  • Added shop item preview images for backgrounds and decorations.
  • Added inventory item preview images for backgrounds and decorations.
  • Added equipped cosmetic rendering on the dashboard egg.
  • Added equipped background rendering on the dashboard window scene.
  • Updated mock shop item data to include asset_key.
  • Updated mock egg recalculation to store equipped asset keys.

Asset handling decision

  • The backend should not return actual frontend file paths such as FlowerCrown.png.

Instead, backend/database should store and return stable keys such as:

{
  "asset_key": "flower_crown"
}

Testing

Tested locally with

npm run dev

To get will_balance,

const user = JSON.parse(localStorage.getItem("memory_egg_user"));

localStorage.setItem(
  "memory_egg_user",
  JSON.stringify({
    ...user,
    will_balance: 9999,
  })
);

location.reload();

Expected output

[ ] Run npm run build
[ ] Run npm run lint
[ ] View profile page to see if it's properly showing the user's profile data rather than placeholders
[ ] Buy a decoration from Shop
[ ] Equip the decoration in Inventory
[ ] Confirm the cosmetic appears on the Dashboard egg
[ ] Buy a background from Shop
[ ] Equip the background in Inventory
[ ] Confirm the Dashboard window background changes
[ ] Confirm owned items do not show “Not enough Will”

@A1VERMAN A1VERMAN left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nicely done, thank you for writing all of the info of the cosmetics, that probably took a long time.

@Driedoutjerky Driedoutjerky merged commit 3786091 into main Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants