Repository navigation
feat(flatpak): list 4 screenshots in the metainfo, taken by make screenshots on a made-up vault - #127
Merged
Merged
Conversation
…enshots on a made-up vault
…nly a session that began (cross-review)
bketelsen
approved these changes
Nov 4, 2026
bketelsen
approved these changes
Nov 4, 2026
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.
The Flatpak's metainfo had no
<screenshot>, so software centres and flatpak-index showed none. Brian (2026-11-03): "the flatpak metadata is missing screenshots for the frost* apps". Night line 14, desk T804.What changes
packaging/flatpak/org.frostyard.Frostnotes.metainfo.xmllists 4 screenshots, each with a<caption>, athttps://raw.githubusercontent.com/frostyard/frostnotes/main/docs/images/…:editor.png(type="default"): a note in the editor, with its properties, tasks and backlinks;search.png: search across the vault, with a recipe open;tasks.png: every open task in the vault, beside the note;dark.png: the dark theme, with a note's outline.docs/images/: the 4 PNGs, 1280x800, 80 to 132 KB each.make screenshots(dev/screenshots/) retakes them in the nsl machine.run.shstarts notesd with its own temporary data directory on a copy ofdev/screenshots/vault(8 made-up notes: no real person, address or note), and Vite on 5173. Thenshoot.py(Python standard library only, WebDriver is plain HTTP) drives the real UI in WebKitGTK, the desktop app's engine, throughWebKitWebDriverandMiniBrowserunder Xvfb.run.shrefuses to start when port 5173 is in use, so it never shoots another notesd's notes.internal/packagecheck/flatpak_screenshots_test.go: the check. It fails when the metainfo has no screenshot, when the first is nottype="default"or another one is, when a caption is empty, when a screenshot has no image, or when an image URL is not https, is on another host, or is not under/frostyard/frostnotes/main/. It also fails when the URL's file is not in the repository or is not a PNG. Software centres show the default first.appstreamcli validatefails on a missing default, but an http URL only gets an info, so the test checks both. A renamed or deleted image fails here before a software centre shows a broken link.docs/design/app.md: 1 sentence on the screenshots and their check.Not changed: the app ID,
<releases>,stamp-version.sh, the manifest and the workflows. The Flatpak build's ownappstreamcli validate --no-netstill runs on the installed metainfo. The URLs are onmain, so they resolve once this merges.--no-netdoes not fetch them.Checks
make check: passes.appstreamcli validate --no-net packaging/flatpak/org.frostyard.Frostnotes.metainfo.xml(AppStream 1.0.5):Validation was successful: pedantic: 1(the existingcid-contains-uppercase-letter).make screenshotsin the frostnotes nsl machine: makes the 4 PNGs again from a clean state.Revert test
On the committed metainfo,
go test ./internal/packagecheck/ -run Screenshots:http://: FAIL,screenshot 1 image 1 URL scheme is "http", want https. appstreamcli still passes this one.type="default"removed: FAIL,the first screenshot is missing type="default". appstreamcli fails too:warnings: 1(screenshot-default-missing).docs/images/tasks.pngmoved away: FAIL,screenshot 3 image 1 file does not exist: docs/images/tasks.png.ok.TestFlatpakMetainfoScreenshotsRejectskeeps 10 such cases in the suite, 1 for each rule.After merge
The next
v*tag runs.github/workflows/flatpak.yml. It builds the Flatpak with this metainfo and publishes and attests the OCI image, and flatpak-index then lists the screenshots. A push to main publishes nothing.Cross-review
Reviewer
openai/gpt-6.1-sol(coders Claude Opus andgithub-copilot/mai-code-2-flash), base4772af58:7c219181: Ready, all 18 changed paths covered, including the 4 PNGs (demo vault only). 1 low, non-blocking finding:shoot.pystarted WebKitWebDriver before its cleanup, so a failed session start could leave the driver running.bb417c8b: the session starts inside thetry, and thefinallyends only a session that began, then terminates and waits for the driver. After the fix,make screenshotssaved the 4 PNGs again, and a run with no Vite failed with "nothing named 'Projects'" and left no driver or browser process.bb417c8b: Ready, Blocking: none.Revert test (scratch worktree at the head,
packaging/flatpak/org.frostyard.Frostnotes.metainfo.xmlput back to the base, tests kept):go test ./internal/packagecheck/ -run Screenshots→ FAILTestFlatpakMetainfoScreenshots:metainfo has no screenshot.CI: the first run of "Flatpak (build and test)" at
bb417c8bfailed while it updated the runner's GNOME SDK (Failed to update org.gnome.Sdk: Invalid cross-device link, thenxvfb-runexit 139), before the app was built. The same job passed at7c219181, and the rerun passed.