Skip to content

Store sweep: land #222 #224 #229 #226 #223 #221 #228 and Tegami 1.0.1 - #230

Merged
neur0map merged 33 commits into
mainfrom
store/tri1129-sweep
Nov 30, 2026
Merged

neur0map merged 33 commits into
mainfrom
store/tri1129-sweep

Conversation

@neur0map

Copy link
Copy Markdown
Member

One landing PR for the store sweep. Every contributor PR is merged with a real merge commit, so each shows as merged once this lands.

Contributor PRs

Maintainer fixes on top

  • QR Pin: the preview is now an offscreen render of the widget itself (quickshell with QT_QPA_PLATFORM=offscreen, using the shipped PluginKit theme): a pinned tile next to the empty composer, where before it was a bare QR code. The URL field's selection colour read Theme.ink, which PluginKit doesn't define, so it now uses the card colour.
  • LeetCode Summary: the username used to default to the author's own handle. It now starts empty: the panel says "Set your LeetCode username", the tooltip asks for it, nothing is fetched until a username is set, and the helper refuses to run without one. The shortest refresh interval goes from 60 to 120 seconds.
  • Tegami 1.0.1: the image seal now masks with QtQuick.Effects instead of Qt5Compat's OpacityMask, which could freeze the shell on notifications with images ([HYPERION] Tegami notification card freezes the shell ryoku#917).

Not included: #227 (waiting on its author), #218, and #216.

Gates (main's tools; .githooks, tools, security and tests are unchanged from main), run on a git archive of the tip:

  • security-screen.py: 0 blocking. The only warnings not already on main are two false positives on qrpin's local shell variables (raw, url).
  • validate-store.py: OK, 16 categories. validate-catalogue.sh: OK.
  • pack-product.py re-run on every touched item: no drift.
  • pytest test_validate_store.py + test_security_screen.py: 135 passed.
  • qmllint on every changed QML file: no new errors. MacDock's duplicate navMa id is also on main.
  • shellcheck on qrpin: clean.

🤖 Generated with Claude Code

zSnowww and others added 30 commits November 23, 2026 10:34
backdropComp is declared inside the menu-bar window (`win`) but is also
instantiated by the Loaders in swWin, wpWin and spotWin. Its Niri path
had `ShaderEffectSource { sourceItem: screenSnap }`, and screenSnap (a
ScreencopyView) lives in `win`, so every copy outside `win` was a
cross-window ShaderEffectSource. It was attached even on Hyprland, where
it is never drawn (visible was false, sourceItem was not).

When an output goes away (unplugged, disabled, or a monitor that drops
hotplug in DPMS standby, which some HDMI panels do seconds after the idle
daemon blanks them), Variants tears the per-screen windows down in an
arbitrary order. Once `win` is gone, destroying a foreign copy derefs its
source in a dead window and Quickshell segfaults:

  QQuickWindowPrivate::dirtyItem
  QQuickItemPrivate::dirty
  QQuickItemPrivate::derefFromEffectItem
  QQuickShaderEffectSource::~QQuickShaderEffectSource
  (or ~QQuickItem -> setParentItem -> dirty / Qt::endPropertyUpdateGroup)

Gate the snapshot behind `snapUsable`: Niri backdrop, snapshot present,
and the backdrop instance sits in the same QQuickWindow as screenSnap.
Copies in other windows fall back to the wallpaper Image, which is what
they showed when no snapshot existed.

Repro: disable/enable a secondary output a few times while Gokko is the
active bar. Before: 2 crashes in 3 cycles. After this commit alone:
0 crashes in 15 cycles. The default bar (orpheus) does not crash in
the same test.
`font.family: fontForWeight(font.weight, fam)` (and the same call through
`Fonts.forWeight`) reads the `font` group to compute a member of that
same group. Every write to `font` re-triggers the binding and Qt logs
"Binding loop detected for property font.family", which on a normal
session is thousands of warnings per minute (6 rows of the Bluetooth
device list alone produced 1254 each across two crash logs). This is the spam
reported upstream in 0-ss/MacShell#41. Upstream MacShell fixed it the
same way on 2026-10-31 (b4d9e6e), after Gokko's pinned revision.

Pass the weight each object actually sets: its own `font.weight:`
binding, `font.bold` mapped to Font.Bold/Font.Normal, or Font.Normal
(Qt's default) when neither is set. 214 call sites in 15 files; the
rewrite is mechanical and was done with a script that reads each
object's own properties (nested objects excluded).

After: 0 binding-loop warnings at startup and after 15 hotplug cycles.
The per-screen windows in MacBar, MacDock and MacWidgets bound sizes and
positions straight to `win.modelData.width/height/x/y/name`. While an
output is being removed the ShellScreen is destroyed (or reports 0x0
after screenDestroyed), so every one of those bindings re-ran on the way
out: they threw "Cannot read property 'width'/'height'/'name' of null"
(MacBar.qml:4965, 5059-5123, about 390 times per hotplug burst) and wrote
new sizes into items whose window was already going away.

Add ScreenGeom.qml, a small invisible helper that copies x/y/width/height/
name from its screen on geometryChanged and simply stops updating when the
screen goes null or 0x0, and read geometry from it (barGeo, dockGeo,
widgetGeo) instead of from modelData. A window is now destroyed with the
geometry it had instead of being resized to nothing first.

This does not fix the crash on its own (that is the ShaderEffectSource
change), but it removes the TypeError spam and the resize writes during
teardown. After: 0 gokko TypeErrors across 15 hotplug cycles.
Bump the version, add the 0.3.5 changelog line to PROVENANCE.txt, regenerate manifest.json with tools/pack-product.py --touch (adds upstream/ScreenGeom.qml) and refresh the registry hash. tests/validate-catalogue.sh passes.
Review follow-up (Mika nitpick 2). In MacWidgets the bound screen can switch to another output; if that screen was still 0x0, sync() returned early and sname kept the previous screen's name. ShellScreen.name is a constant property, readable at once, so onScreenChanged now copies it before sync(); geometry still waits for a valid size. Manifest regenerated.
The Wi-Fi/Bluetooth and extensions pages are supposed to slide in while
the overview slides out. Both pages used anchors.fill: parent together
with an x binding for the slide, but with both left and right anchors
set the anchor layout owns x and the binding is discarded. Both pages
stayed at x=0, so the detail page (transparent background) drew on top
of the overview and the texts overlapped.

Size both pages with explicit width/height bindings instead so the
slide transition works as designed.

Verified locally on the installed view: qmllint clean, shell reload,
Super+Esc -> Wi-Fi now shows the Wi-Fi page alone and Back returns to
the overview.
pack-product.py after the Sidebar.qml fix: refreshes the file sha256/size,
the registry manifestSha256 and lastUpdated, and moves the version so
installed copies are offered the update.
Pin any URL as a QR code on the wallpaper until cleared. CLEAR during
encode is queued so a finishing encode cannot restore the pin; EDIT shows
the field before focus; Enter commits through the URL box.

Note: New: QR Pin — pin any URL as a QR code on the wallpaper.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add native sort order (newest/oldest/name/size), a configurable row limit and a working count badge. Add name search, type filters, per-type glyphs and a status line. Bound the scanner, keep settings allowlisted, render filenames as plain text and guard xdg-open paths. Refresh the preview and product manifest.
Keep the 4,000-entry scan bound but expose the helper's truncated flag in the service and panel status. Report the number of eligible files separately from the 60-row display cap so the badge and status are accurate.
The helper now emits scanCap alongside truncated and total; the service stores it and the panel renders the cap from data instead of a hard-coded string. This makes a capped scan verifiable from the helper output and keeps helper and UI in sync.
Scan every eligible Downloads entry and select the newest 60 after sorting. Directory order can no longer hide a new file, so no truncation flag or UI disclosure is needed; total remains the true eligible-file count.
A topbarGlyph plugin driven by the public alfa-leetcode-api used in the portfolio. An editable username setting means every installer sees their own LeetCode summary. Complete snapshots are cached under stateDir and partial outages never overwrite a good cache.
A result for a username changed while its process ran is consumed but ignored, settings and panel changes queue a refresh, and the timeout path finishes through the same queue.
The timeout path now calls finishRefresh() instead of clearing loading directly, so a queued username change starts as soon as the stalled process is stopped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved on top of #222: #224's Bluetooth rows and Forget actions, #222's
binding-loop-free font weights and hotplug-safe geometry. Gokko bumped to
0.3.6 (both PRs claimed 0.3.5), manifest repacked.
…olour

The preview was the bare QR code. It is now an offscreen render of the
widget itself (QT_QPA_PLATFORM=offscreen, the shipped PluginKit theme):
a pinned tile next to the empty composer. The URL field's selected text
read Theme.ink, which the PluginKit theme does not define, so it fell
back to undefined; it uses the card colour now.
…y 2 min

The username defaulted to the author's own handle, so every install showed
one person's profile. It now starts empty: the panel asks you to set your
username, the bar tooltip says so, and nothing is fetched until one is set.
The helper refuses to run without a username. The shortest refresh
interval goes from 60 to 120 seconds to spare the shared public API.
… images

The round image seal used Qt5Compat's OpacityMask, which could freeze the
whole shell when a notification carried an app icon or image (Ryoku #917).
It now masks with QtQuick.Effects MultiEffect, which ships with Qt itself.
Tegami 1.0.1.

@neur0map neur0map left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🔍 mika reviewed this change; details in the walkthrough comment.

🧹 Nitpicks (2) — optional, not blocking
  1. plugins/leetcode-summary/service/Main.qml:41-49 — Possible Bug — Changing or clearing the username leaves the previous user's stats visible while the new request is pending or fails. Clearing the setting never starts a replacement request, so the old account remains displayed indefi…
  2. plugins/recent-downloads/content/Panel.qml:54-60 — Possible Bug — Submitting a search assigns directly to root.query, breaking its binding to the persisted service setting. Subsequent edits no longer update the local filter until Enter is pressed, despite the documented immediate fil…

@neur0map

Copy link
Copy Markdown
Member Author

🦊 mika's review

Summary

  • Add LeetCode Summary and QR Pin plugins.
  • Make Recent Downloads searchable and sortable.
  • Improve Gokko hotplug safety and network settings.
  • Fix Byobu navigation, World Machine audio, and Tegami image masking.

Estimated review effort: 3/5 · risk: high

📁 Walkthrough details

barstyles/gokko/upstream/ScreenGeom.qml

  • Retains the last valid screen geometry during output teardown.
    • Updates screen names immediately and geometry when valid.

barstyles/gokko/upstream/MacDock.qml

  • Adds saved Wi-Fi and paired Bluetooth management to settings.
  • Uses cached screen geometry for dock positioning during hotplug.
    • Adds timed confirmation for forgetting networks and devices.
    • Separates nearby and known networks and shows connection status.
    • Removes font-family and weight binding loops.

barstyles/gokko/upstream/MacWidgets.qml

  • Uses cached screen geometry for widget placement and editing.
    • Avoids reading dimensions from a screen being removed.

barstyles/gokko/manifest.json

  • Packages Gokko 0.3.6 and the new screen geometry component.
    • Updates installed file sizes and checksums.

lockscreens/world-machine/content/Main.qml

  • Follows the default audio output as login-screen devices appear.
    • Rebinds the soundtrack output when audio devices change.

notifications/tegami/Card.qml

  • Replaces the image seal's Qt5 compatibility mask with MultiEffect.
    • Enables the image layer only when the image is ready.

plugins/leetcode-summary/service/Main.qml

  • Polls LeetCode statistics for the configured username.
    • Starts without a username and limits polling to 120–3600 seconds.
    • Queues refreshes on username changes and rejects stale results.

plugins/leetcode-summary/bin/leetcode_summary.py

  • Fetches profile, solved, and calendar data from the public API.
    • Fetches endpoints concurrently and builds an activity snapshot.
    • Falls back to a username-matched cache on partial failures.

plugins/leetcode-summary/content/Panel.qml

  • Displays solved counts, difficulty breakdown, rank, streak, and activity.
    • Allows username changes, manual refresh, and profile opening.

plugins/leetcode-summary/content/Widget.qml

  • Adds a bar glyph with an optional solved count and summary tooltip.
    • Opens the LeetCode summary panel on click.

plugins/leetcode-summary/manifest.json

  • Declares the bar plugin's entry points, settings, and network hosts.
    • Defaults to an empty username and a ten-minute refresh interval.

plugins/qrpin/content/Widget.qml

  • Adds a desktop widget for composing and pinning QR codes.
    • Persists tile metadata, supports sizing, and removes tiles individually.
    • Uses the PluginKit theme for the URL selection color.

plugins/qrpin/scripts/qrpin

  • Generates QR images and persists tile metadata in the plugin state directory.
    • Supports both qrencode and python-qrcode.
    • Validates tile identifiers before deleting files.

plugins/qrpin/manifest.json

  • Registers QR Pin as a desktop widget with its helper script.
    • Declares QR generation dependencies and the desktop widget entry point.

plugins/recent-downloads/service/Main.qml

  • Tracks and forwards panel search and sort choices to the scanner.
    • Ignores stale scan results and schedules another scan after changes.

plugins/recent-downloads/scripts/recent_downloads.py

  • Filters and sorts downloads before applying the display limit.
    • Supports date, name, size, and extension ordering.
    • Reports matching and overall file counts.

plugins/recent-downloads/content/Panel.qml

  • Adds search, sorting, and count information to the downloads panel.
    • Resets panel controls when the panel closes.

plugins/recent-downloads/manifest.json

  • Releases Recent Downloads 0.2.0 with the updated panel contract.
    • Raises the configurable item limit to 30.

plugins/registry.json

  • Publishes the two new plugins and updates Recent Downloads metadata.
    • Registers manifests, previews, dependencies, and network capabilities.

wallpaperselectors/byobu/contents/Main.qml

  • Keeps inactive wallpaper detail pages behind the overview.
    • Applies the navigation z-order fix to all three detail pages.

No blocking findings.

2 nitpicks listed in the first review

⚠️ Security concerns: QR Pin uses predictable temporary files vulnerable to symlink overwrites, and its ambiguous filename encoding can make one pinned tile display another URL's QR code.

🚦 Merge recommendation: changes_required


🦊 Generated by Mika — the Ryoku org's self-hosted AI code reviewer. Machine findings: verify before merging.

@neur0map
neur0map merged commit db2dc24 into main Nov 30, 2026
2 checks passed
@neur0map
neur0map deleted the store/tri1129-sweep branch November 30, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants