Skip to content

Commit 54d8a5a

Browse files
authored
[Fix] Streak progress when not playing (#1233)
* only set streakIsProgressing true for overlay quest details * fix codecheck * bump quests-ui and ui * bump hp ui and hp quests ui
1 parent 94cc6be commit 54d8a5a

File tree

5 files changed

+53
-26
lines changed

5 files changed

+53
-26
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
"@fortawesome/react-fontawesome": "^0.2.2",
7272
"@hyperplay/chains": "^0.5.0",
7373
"@hyperplay/check-disk-space": "^3.5.2",
74-
"@hyperplay/quests-ui": "^0.1.13",
75-
"@hyperplay/ui": "^1.8.18",
74+
"@hyperplay/quests-ui": "^0.1.23",
75+
"@hyperplay/ui": "^1.9.5",
7676
"@hyperplay/utils": "^0.3.7",
7777
"@mantine/carousel": "^7.12.0",
7878
"@mantine/core": "^7.12.0",

pnpm-lock.yaml

+30-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/components/UI/QuestDetails/index.tsx

+13-2
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ export default function QuestDetails({
6464
questId,
6565
className,
6666
isQuestsPage,
67-
onPlayClick = () => {}
67+
onPlayClick = () => {},
68+
streakIsProgressing
6869
}: {
6970
questId: number | null
7071
className?: string
7172
isQuestsPage?: boolean
7273
onPlayClick?: (quest: Quest) => void
74+
streakIsProgressing?: boolean
7375
}) {
7476
const { address } = useAccount()
7577
const { isSignedIn, data } = useAuthSession()
@@ -122,7 +124,8 @@ export default function QuestDetails({
122124
POINTS: flags.pointsRewardsClaim,
123125
'EXTERNAL-TASKS': flags.externalTasksRewardsClaim
124126
},
125-
questsOverlayClaimCtaEnabled: flags.questsOverlayClaimCtaEnabled
127+
questsOverlayClaimCtaEnabled: flags.questsOverlayClaimCtaEnabled,
128+
gameplayWalletSectionVisible: false
126129
}}
127130
trackEvent={async (eventPayload) =>
128131
window.api.trackEvent(eventPayload as PossibleMetricPayloads)
@@ -151,6 +154,14 @@ export default function QuestDetails({
151154
isSignedIn={isSignedIn}
152155
isQuestsPage={isQuestsPage}
153156
key={'questDetailsLoading'}
157+
streakIsProgressing={streakIsProgressing}
158+
getActiveWallet={async () => 'getActiveWallet'}
159+
setActiveWallet={async () => ({ success: true, status: 100 })}
160+
getGameplayWallets={async () => []}
161+
updateActiveWallet={async () => {
162+
console.log('updateActiveWallet')
163+
}}
164+
getActiveWalletSignature={async () => ({ message: '', signature: '' })}
154165
/>
155166
)
156167
}

src/frontend/components/UI/QuestsViewer/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export function QuestsViewer({ projectId: appName }: QuestsViewerProps) {
4949
<QuestDetails
5050
questId={visibleQuestId}
5151
className={styles.detailsWrapper}
52+
streakIsProgressing={true}
5253
/>
5354
</div>
5455
</div>

src/frontend/screens/Library/components/GameCard/index.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ const GameCard = ({
383383
actionDisabled={isLaunching}
384384
alwaysShowInColor={allTilesInColor}
385385
store={runner}
386+
i18n={{
387+
logoTextTooltip: {
388+
hyperplay: { installed: 'HyperPlay', notInstalled: 'HyperPlay' },
389+
epic: { installed: 'Epic', notInstalled: 'Epic' },
390+
gog: { installed: 'GOG', notInstalled: 'GOG' }
391+
}
392+
}}
386393
/>
387394
</Link>
388395
</>

0 commit comments

Comments
 (0)