Skip to content

Fix | Bugs - #8

Merged
TheGeniusOfEternity merged 4 commits into
mainfrom
fx/bugs
Aug 5, 2026
Merged

Fix | Bugs#8
TheGeniusOfEternity merged 4 commits into
mainfrom
fx/bugs

Conversation

@TheGeniusOfEternity

Copy link
Copy Markdown
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.

@TheGeniusOfEternity
TheGeniusOfEternity requested a lite review from Copilot August 4, 2026 20:09
@TheGeniusOfEternity TheGeniusOfEternity self-assigned this Aug 4, 2026
@TheGeniusOfEternity TheGeniusOfEternity added the improvement make something better, simplier & more effective label Aug 4, 2026
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
widgecode Ignored Ignored Aug 4, 2026 8:09pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@TheGeniusOfEternity
TheGeniusOfEternity merged commit ed20bf9 into main Aug 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement make something better, simplier & more effective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants