Fix | Bugs - #8
Merged
Merged
Conversation
TheGeniusOfEternity
commented
Aug 4, 2026
Owner
- fix translations for LeetCode (ranking & contest rating)
- on first load of widgets gallery page fallback is displayed and then, after some delay, widgets are shown. Some loader must be used (I suggest some of widget cards with skeletons)
- after widget preview is loaded skeleton disappeared, but still I can see widget's loading inside iframe from left to right. Skeleton inside widget itself must be displayed until widget is fully loaded.
- on published widget page when skeleton is displayed, background circle on the left changes its position, look like it teleports 20px up and goes back when widget is loaded.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
Pull request overview
This PR addresses several UX and data-quality issues around LeetCode stats and widget loading states, improving perceived performance in the widgets gallery and making embedded/public widget previews coordinate their “ready” state more accurately.
Changes:
- Add LeetCode contest rating to the server-side LeetCode GraphQL query and surface it in rendered block data (with test coverage).
- Improve first-load UX in the widgets gallery by showing skeleton widget cards while widgets are loading.
- Improve embedded widget preview loading behavior by coordinating iframe readiness via
postMessage, plus minor public widget page layout tweaks and LeetCode label translations.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| server/src/statsService.test.ts | Adds a unit test verifying LeetCode contest rating is requested and mapped into rendered block data. |
| server/src/services/statsService.ts | Extends LeetCode GraphQL query/response mapping to include userContestRanking.rating as contestRating. |
| client/src/shared/locale/content.ts | Adds localized strings for LeetCode ranking and contest rating labels. |
| client/src/shared/api/widgets.ts | Introduces a shared message source constant for embed readiness communication. |
| client/src/shared/api/index.ts | Re-exports the new embed message source constant. |
| client/src/pages/widgets-gallery/ui/WidgetsGalleryPage.tsx | Displays a grid of skeleton widget cards while widgets are loading. |
| client/src/pages/widget-editor/ui/WidgetEditorPage.tsx | Fixes RU label for “Contest rating” toggle in the LeetCode block config UI. |
| client/src/pages/public-widget/ui/PublicWidgetPage.tsx | Posts ready/error messages to the parent window when embedded, to control preview skeleton timing. |
| client/src/pages/public-widget/ui/PublicWidgetPage.module.css | Adjusts embedded/public status container sizing to reduce layout shifts. |
| client/src/entities/widget/ui/WidgetCard.tsx | Reworks preview loading to wait for iframe “ready/error” message instead of relying on iframe onLoad; adds WidgetCardSkeleton. |
| client/src/entities/widget/ui/WidgetCard.module.css | Styles skeleton actions for the new widget card skeleton. |
| client/src/entities/widget/ui/WidgetCanvas.tsx | Uses localized LeetCode stat labels for ranking and contest rating. |
| client/src/entities/widget/index.ts | Exports WidgetCardSkeleton from the widget entity entrypoint. |
| client/src/app/App.tsx | Adds a widgets-loading state keyed by user+route to drive gallery skeletons on first load. |
| prompts/phase-4-render.md | Removes a prompt/doc file (no code references found). |
| prompts/phase-3-builder.md | Removes a prompt/doc file (no code references found). |
| prompts/phase-2-auth.md | Removes a prompt/doc file (no code references found). |
| prompts/phase-1-infra.md | Removes a prompt/doc file (no code references found). |
| opencode.json | Removes an OpenCode MCP config file (no code references found). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.