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(game): add beaten game credit dialog [progression] #1810

Merged

Conversation

wescopeland
Copy link
Member

@wescopeland wescopeland commented Aug 27, 2023

✅ Safe to merge, supports the "beat" feature flag.

NOTE: This PR is a child of #1802. It contains all of the changes of #1802, and more.

This PR adds the new Beaten Game Credit dialog component, proposed in https://discord.com/channels/476211979464343552/1142257722788679780/1142258738946916482.

This dialog can be opened by tapping on the type indicator on game page achievement rows. Later, the intent is for it to also be opened in the game page progression component (#1785).

Implementation Details:

  • We don't want to add the modal content to the DOM before the user opens the dialog. Therefore, <x-modal-trigger /> has been modified to allow content to be loaded dynamically.
  • <x-modal-trigger /> has also been modified to allow for a custom slot such that anything can be a modal trigger rather than the default "btn"-classed <button>.
  • On desktop, data is prefetched when hovering over the modal trigger.

Dialog.Desktop.mp4
Dialog.Mobile.mp4

@wescopeland wescopeland requested a review from a team August 27, 2023 22:17
@wescopeland
Copy link
Member Author

If there is only 1 Win Condition, the dialog now it shows as Progression. This change was made after the latest community and dev feedback.

@wescopeland
Copy link
Member Author

wescopeland commented Sep 3, 2023

Resolved conflicts & added pluralization to the dialog. This should be all set now. Because this is only accessible behind elements that are feature-flagged, this is safe to merge.

@Jamiras Jamiras merged commit 16985df into RetroAchievements:master Sep 3, 2023
5 checks passed
@wescopeland wescopeland deleted the beaten-game-credit-dialog branch September 3, 2023 16:58
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