Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate sprites from css to a Sprite vue component #15242

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

phillipthelen
Copy link
Member

  • Creates a new Sprite component that loads images from aws similar to how we handle it in the mobile apps

  • Started migrating several areas

    • Stable Page
    • Item Page
    • Equipment Page
    • Shops
    • Reward Column
    • Avatar Customization
  • Still needs to be done (Not in this PR)

    • Avatar
    • Face Only Avatar
    • Initial Avatar Customization Flow
    • Achievements
    • Profile Modal

Copy link
Member

@negue negue left a comment

Choose a reason for hiding this comment

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

LGTM, just one issue found

@@ -168,34 +174,40 @@ export default {
isAllowedToFeed () {
return isAllowedToFeed(this.item, this.userItems);
},
getPetItemClass () {
itemClass () {
if (this.isOwned() || (this.mountOwned() && this.isHatchable()) || this.isSpecial()) {
Copy link
Member

Choose a reason for hiding this comment

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

missing the "isHatchable" alone - see https://github.com/HabitRPG/habitica/pull/15242/files#diff-4b9c11aea9816b0f238d1da7970e671a1189835e1b0bfe7aa061b48bd3401262L190 so I guess this && can be changed to a || and then it should be fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants