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

feat(home): show user's current AOTW unlock status #3054

Merged
merged 13 commits into from
Jan 18, 2025

Conversation

wescopeland
Copy link
Member

@wescopeland wescopeland commented Jan 12, 2025

This PR makes a change to the home AOTW component to show the user's current status in the event. There are 4 cases that the new <AotwStreak /> component covers:

Case 1: Non-participating user.
If the user is not participating in AOTW, they see what the component currently shows:
Screenshot 2025-01-12 at 5 17 02 PM

Case 2: User unlocked the AOTW.
If the user has just begun participating in AOTW and unlocked the current event achievement, they see an "Unlocked." message:
Screenshot 2025-01-12 at 5 16 01 PM

Case 3: User unlocked last week's AOTW, but not this week's.
The user will see a subtle call-to-action (CTA) to keep up their streak:
Screenshot 2025-01-12 at 5 16 49 PM

Case 4: User unlocked this week's AOTW and is continuing a streak.
The user sees their current streak count in the unlocked label:
Screenshot 2025-01-12 at 5 16 30 PM

@wescopeland wescopeland added the status/stacked This PR is stacked on top of another PR. label Jan 12, 2025
@wescopeland wescopeland requested a review from a team January 12, 2025 22:19
@wescopeland wescopeland removed the status/stacked This PR is stacked on top of another PR. label Jan 16, 2025

return (
<div data-testid="aotw-progress" className="bg-neutral-950 px-2 py-1.5">
<p className="text-center text-xs text-neutral-300">{t('Unlocked.')}</p>
Copy link
Member

Choose a reason for hiding this comment

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

I find the period here out of place. It's not a sentence.

Copy link
Member Author

Choose a reason for hiding this comment

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

No problem, went ahead and removed the period.

@wescopeland wescopeland merged commit 19808d4 into RetroAchievements:master Jan 18, 2025
8 checks passed
@wescopeland wescopeland deleted the aotw-unlock-status branch January 18, 2025 16:39
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.

2 participants