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

Change favorites #34

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.7.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-plugin-playwright": "^2.1.0",
"eslint-plugin-vue": "^9.32.0",
"eslint-plugin-vuejs-accessibility": "^2.4.1",
Expand Down
6 changes: 3 additions & 3 deletions src/components/AchievementBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ const achievementProps: AchievementProps = {
},
favorite: {
[AchievementLevel.Bronze]: {
textProps: [20],
textProps: [5],
emoji: '😺',
},
[AchievementLevel.Silver]: {
textProps: [50],
textProps: [20],
emoji: '😽',
},
[AchievementLevel.Gold]: {
textProps: [100],
textProps: [50],
emoji: '😻',
},
},
Expand Down
24 changes: 12 additions & 12 deletions src/components/__tests__/__snapshots__/AchievementList.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,23 @@ exports[`AchievementList > renders 1`] = `
<div data-v-1c120264="" class="flex-container flex-col">
<h2 class="label-like">Playing Favorites</h2>
<div data-v-1c120264="" class="achievement-list__badge-container">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="20 repeat uses of same veggie" aria-label="20 repeat uses of same veggie" data-test-id="badge-favorite-1" class="badge" role="img">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="5 uses of a veggie in all categories" aria-label="5 uses of a veggie in all categories" data-test-id="badge-favorite-1" class="badge" role="img">
<div data-v-06381b3c="" class="badge__background badge__background--Bronze" aria-hidden="true">
<div data-v-06381b3c="" class="badge__emoji">😺</div>
</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">20 samples</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">6x5 samples</div>
</div>
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="50 repeat uses of same veggie" aria-label="50 repeat uses of same veggie" data-test-id="badge-favorite-2" class="badge" role="img">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="20 uses of a veggie in all categories" aria-label="20 uses of a veggie in all categories" data-test-id="badge-favorite-2" class="badge" role="img">
<div data-v-06381b3c="" class="badge__background badge__background--Silver" aria-hidden="true">
<div data-v-06381b3c="" class="badge__emoji">😽</div>
</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">50 samples</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">6x20 samples</div>
</div>
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="100 repeat uses of same veggie" aria-label="100 repeat uses of same veggie" data-test-id="badge-favorite-3" class="badge" role="img">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="50 uses of a veggie in all categories" aria-label="50 uses of a veggie in all categories" data-test-id="badge-favorite-3" class="badge" role="img">
<div data-v-06381b3c="" class="badge__background badge__background--Gold" aria-hidden="true">
<div data-v-06381b3c="" class="badge__emoji">😻</div>
</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">100 samples</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">6x50 samples</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -287,23 +287,23 @@ exports[`AchievementList > renders with badges enabled 1`] = `
<div data-v-1c120264="" class="flex-container flex-col">
<h2 class="label-like">Playing Favorites</h2>
<div data-v-1c120264="" class="achievement-list__badge-container">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="20 repeat uses of same veggie" aria-label="20 repeat uses of same veggie" data-test-id="badge-favorite-1" class="badge" role="img">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="5 uses of a veggie in all categories" aria-label="5 uses of a veggie in all categories" data-test-id="badge-favorite-1" class="badge" role="img">
<div data-v-06381b3c="" class="badge__background badge__background--Bronze" aria-hidden="true">
<div data-v-06381b3c="" class="badge__emoji">😺</div>
</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">20 samples</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">6x5 samples</div>
</div>
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="50 repeat uses of same veggie" aria-label="50 repeat uses of same veggie" data-test-id="badge-favorite-2" class="badge" role="img">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="20 uses of a veggie in all categories" aria-label="20 uses of a veggie in all categories" data-test-id="badge-favorite-2" class="badge" role="img">
<div data-v-06381b3c="" class="badge__background badge__background--Silver" aria-hidden="true">
<div data-v-06381b3c="" class="badge__emoji">😽</div>
</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">50 samples</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">6x20 samples</div>
</div>
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="100 repeat uses of same veggie" aria-label="100 repeat uses of same veggie" data-test-id="badge-favorite-3" class="badge" role="img">
<div data-v-06381b3c="" data-v-1c120264="" aria-disabled="true" title="50 uses of a veggie in all categories" aria-label="50 uses of a veggie in all categories" data-test-id="badge-favorite-3" class="badge" role="img">
<div data-v-06381b3c="" class="badge__background badge__background--Gold" aria-hidden="true">
<div data-v-06381b3c="" class="badge__emoji">😻</div>
</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">100 samples</div>
<div data-v-06381b3c="" aria-hidden="true" class="badge__text">6x50 samples</div>
</div>
</div>
</div>
Expand Down
Loading
Loading