Repository navigation
Conversation
neur0map
left a comment
There was a problem hiding this comment.
🔍 mika reviewed this change; details in the walkthrough comment.
🧹 Nitpicks (5) — optional, not blocking
-
plugins/leetcode-summary/content/Widget.qml:29-39— Bug — Forwardroot.opentoGlyph; otherwise itsopenproperty stays false and the glyph loses its panel-open highlight. Regenerate the product manifest and registry hash after changing the payload.Suggested change
Loader {
id: glyphLoader
active: root.isGlyph
sourceComponent: Glyph {
pluginApi: root.pluginApi
active: root.active
open: root.open
density: root.density
s: root.s
widthBudget: root.widthBudget
}
}
-
plugins/leetcode-summary/content/Card.qml:82— Possible Bug — With the default empty username, the service has not fetched a snapshot, but the header still displaysLIVE. Show an unconfigured or idle state until a live snapshot exists so the zero counts are not presented as fetch… -
plugins/leetcode-summary/content/Card.qml:220-226— Possible Bug —build_dotsreturns consecutive days, but this grid fills seven columns before starting the next row. Each row therefore represents a week, rather than each column as described, making the activity map misleading; use 1…Suggested change
columns: 12
-
plugins/leetcode-summary/content/Card.qml:285— Possible Bug — The profile URL interpolates the username without encoding it as a path component. A configured handle containing?,#, or/opens a different URL from the profile requested by the helper; encode the username befor…Suggested change
Qt.openUrlExternally("https://leetcode.com/u/" + encodeURIComponent(root.username) + "/");
-
plugins/leetcode-summary/content/Widget.qml:29-39— Suggestion: bug — Forward the panel-open stateSuggested change
Loader {
id: glyphLoader
active: root.isGlyph
sourceComponent: Glyph {
pluginApi: root.pluginApi
active: root.active
open: root.open
density: root.density
s: root.s
widthBudget: root.widthBudget
}
}
🦊 mika's reviewIncremental review: new commits since the last checkpoint. Summary
Estimated review effort: 1/5 · risk: low 📁 Walkthrough details
|
|
Addressed all five nitpicks from mika, and used the chance to polish the two views as requested. Review fixes
Product manifest and registry hash were regenerated with Polish / extra features
Verification (on this push)
Source repo updated first at https://github.com/mannish01/LeetCode-Summary. Ready for re-review. |
Follow-up to the maintainer's note on #227: LeetCode Pulse's desktop tile is now a second host inside LeetCode Summary, so the same stats are available as a bar glyph (with panel) and a desktop tile, sharing one service and one helper like Coffee/VPN. The separate Pulse PR stays closed; this PR carries the feature.
What changed
content/Widget.qmldispatches on density:Glyph.qmlatglyph(bar) andCard.qmlatcompact(desktop).content/Card.qmlis the paper-and-ink tile: solved count, rank, difficulty bar, streak, acceptance, top languages and a 12-week activity grid. A click opens the configured profile only when a username is set.bin/leetcode_summary.pynow fetches/languagetoo, so the tile does not need a second helper. All four endpoints must answer before a snapshot is called live or the cache is rewritten; a partial outage keeps the saved snapshot.0.2.0, hosts[topbarGlyph, desktopWidget], densitiesglyph/compact, both preview images included,official: false.main, so it preserves the merged per-user defaults from [plugins] add LeetCode Summary bar plugin #228 (empty username, 120 s minimum poll, no fetch until a handle is set). The tile showsSET USERNAMEinstead of any hardcoded profile until configured.Per-user behaviour and safety
summary.jsonunderpluginApi.stateDirfor offline fallback.alfa-leetcode-api.onrender.comandleetcode.com; the profile URL is opened only on an explicit tile click and only with a non-empty username.stateDir.Verification
live=true, 37 solved, 3.37M rank, 64%, languages sorted, activity dot 3;/solvedoutage and/languageoutage eachlive=falsewith saved 37; offline other handle0. All passed.ryoku plugin validate plugins/leetcode-summary→0 blocking, 0 warnings.tests/validate-catalogue.shandtests/validate-store.py --root . --categories plugins→ OK.tools/security-screen.py --staged→0 blocking, 234 warning(s), 0 error(s),leetcode-summary findings: 0.Card.qmlthrough the new dispatcher with fake stats and no QML errors; the tile design is the already-rendered desktop preview atassets/preview-desktop.png.Source repo updated first: https://github.com/mannish01/LeetCode-Summary.