Repository navigation
Conversation
Community desktop tile showing a configurable LeetCode profile's solved counts, rank, difficulty split, streak, acceptance and 12-week activity, using the public alfa-leetcode-api with a cached offline fallback. Includes registry entry, product manifest and a real preview capture.
neur0map
left a comment
There was a problem hiding this comment.
🔴 Changes requested — 0 critical and 2 major issue(s): see the inline comments and the walkthrough for fixes and an agent-ready prompt.
🧹 Nitpicks (3) — optional, not blocking
-
plugins/leetcode-pulse/bin/leetcode_pulse.py:68-70— Possible Bug — The cache is shared across usernames and is loaded without checking itsusername. If a user changes the setting while the API is unavailable, the widget displays the previous person's profile and clicking it opens that… -
plugins/leetcode-pulse/service/Main.qml:78-82— Stability — The timeout clearsloadingbut does not terminate the process. If a server keeps a response alive indefinitely, subsequent polls are skipped becausestatusProc.runningremains true, so the widget cannot recover witho… -
plugins/leetcode-pulse/service/Main.qml:78-83— Suggestion: bug — Stop the helper when refresh times outSuggested change
onTriggered: {
if (svc.loading) {
statusProc.running = false;
svc.loading = false;
svc.errorText = svc.errorText || "refresh timed out";
}
}
🦊 mika's reviewIncremental review: new commits since the last checkpoint. Summary
Estimated review effort: 1/5 · risk: low 📁 Walkthrough details
|
Calendar keys are Unix seconds, not day counts. Require all endpoints before calling a snapshot live so a partial outage cannot zero a good cache, scope cache reads to the configured username, and stop a stalled helper process on timeout.
|
Addressed all findings and nitpicks in ded200e (also mirrored to https://github.com/mannish01/LeetCode-Pulse): calendar timestamps fixed; snapshots are live only when all four endpoints answer; cache is username-scoped and only written on a fully live fetch; and the 25s timeout now sets |
Blocking findings were addressed (verified at ded200e12b).
|
Thanks for this, could Pulse become a second host inside LeetCode Summary, the bar glyph plus a desktop tile in one plugin like vpn and coffee do, instead of a second copy of the same code |
|
Closing this one since LeetCode Summary covers the same stats, a desktop tile inside that plugin would be welcome as a follow up |
What is this?
Adds LeetCode Pulse, a community
desktopWidgettile that shows a LeetCode profile's solved counts, rank, difficulty split, streak, acceptance rate, language mix and a 12-week activity map. First uploaded to https://github.com/mannish01/LeetCode-Pulse, now proposed for the Ryostore catalogue for approval.Why it is useful
The same public alfa-leetcode-api used by the contributor's portfolio drives the tile. It has a
usernametext setting (defaultMANISHX01, the contributor's profile) so any installer can point it at their own LeetCode summary, plus apollSecondsinterval (60–3600, default 600). The helper fetches four endpoints in parallel, computes the activity grid and caches the last good snapshot underpluginApi.stateDirso an API outage shows saved stats instead of zeros.Changes
plugins/leetcode-pulse/withmanifest.json,service/Main.qml,content/Widget.qml,bin/leetcode_pulse.py,README.md,LICENSEand a real preview capture.plugins/registry.jsonentry:official: false, upstreammannish01/LeetCode-Pulse,lastUpdated2026-11-29.product-manifest.jsonandmanifestSha256viatools/pack-product.py --touch.Security and privacy
alfa-leetcode-api.onrender.com(read-only public stats) andleetcode.com(opened only on an explicit click).pulse.jsonunder the plugin's ownstateDir. No credentials, tokens, privileged commands, shell strings built from data, secrets or binaries.Checklist
plugins/registry.json(lastUpdated2026-11-29,official: false, manifest hash refreshed).Widget.qmlin Quickshell with sample stats; fixed two QML warnings found that way (missingrequired property var modelDatain the activity repeater and an undefinedTheme.linecolour) and re-rendered with a clean log.tests/validate-catalogue.shpasses from the repo root.tests/validate-store.py --categories pluginspasses.ryoku plugin validate plugins/leetcode-pulse→ 0 blocking, 0 warnings.tools/security-screen.py --staged→ 0 blocking, 0 errors; 0 findings in this plugin.Note: the public API returned HTTP 429 from this machine's IP during testing, so the live call fell back to the cached-snapshot path exactly as designed; this does not affect the submission.