ALT-11032#48
Merged
Merged
Conversation
meanmail
reviewed
Jun 26, 2026
meanmail
left a comment
Contributor
There was a problem hiding this comment.
Found one issue in the new build helper task.
meanmail
approved these changes
Jun 26, 2026
meanmail
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me. The previous build-task issue is addressed by removing the task.
VitaliyYa
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ALT-11032: Suggest sharing achievement on Hyperskill project completion
Summary
Adds a "share your achievement" flow that congratulates the user when they complete a Hyperskill project and offers to post about it on X or LinkedIn.
What's new
Project-completion suggestion
SuggestToPostOnProjectCompletionListener(registered as acheckListener) detects when the whole Hyperskill project lesson becomes solved.HyperskillCoursein study mode,Solved(it is not shown when re-checking an already-solved task).SocialMediaUtils.shouldSuggestToPostand is fully covered by tests.Share dialog
hyperskill.org/courseswith the agreed UTM tracking parameters. For X the tracked URL goes in theurlintent parameter; for LinkedIn (nourlparam) it's embedded into the post text.Settings
SocialMediaSettingsapp-level service (hyperskill.xml) storing theaskToPostpreference.SocialMediaOptionsProvidersettings page lets the user re-enable the suggestion after opting out.Image rendering
ScaledBannerIconkeeps the full-resolution source and downscales to the exact device size at paint time using progressive multi-step bicubic scaling, so the banner stays crisp at any DPI. Result is cached per device size.Build
buildAllVersionsGradle task builds the plugin for multiple platform versions (252, 253, 261) in parallel, each in an isolated git worktree, collecting distributions intobuild/dist-all. Supports-Pversions=and-Pref=.socialMedia.gifcopy step fromPrepareSandboxTask; achievement assets are now bundled as resources (project_complete.png).Testing
SuggestToPostOnProjectCompletionListenerTestdrives the real EP-registered listener through check scenarios, asserting the dialog shows/doesn't show for: full project solved, partial project, non-project task, re-solving a solved task, and the disabled-in-settings case. A mockableSuggestToPostDialogUIis used in unit-test mode.User-facing strings
New
social.media.*keys added toEduCoreBundle.properties(dialog title, share/close buttons, "Don't ask again", achievement message, settings labels).