Repository navigation
refactor(showcases): split DemoShowcasesService descriptor, widget partition and payload lookup into named steps - #1071
Open
rubenvdlinde wants to merge 2 commits into
Open
rubenvdlinde wants to merge 2 commits into
rubenvdlinde wants to merge 2 commits into
Conversation
…ayload branches before the split Assisted-by: ClaudeCode:claude-opus-5-5
…rtition and payload lookup into named steps Assisted-by: ClaudeCode:claude-opus-5-5
rubenvdlinde
requested review from
WilcoLouwerse,
bbrands02 and
rjzondervan
as code owners
November 11, 2026 18:11
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.
What changed
Four
DemoShowcasesServicemethods read as named steps:describeShowcase→readShowcaseManifest→descriptorFor(thumbnailUrl,installedDashboardUuid).partitionWidgets(public, signature unchanged) reads the registered Nextcloud widget ids (registeredWidgetIds) before LaunchPad's own types, as before, and keeps a widget whenisPlaceablesays so (tile, LaunchPad type or registered type); unknown widgets with an id are skipped, in order.getLaunchpadWidgetTypes→readWidgetTypesFile→typeSet, still cached and still loud when the list is missing.loadDashboardPayloadcloses the archive afterfirstDashboardEntry(isDashboardEntryName,decodeZipEntry) and throws the same two messages.Behaviour is unchanged: same descriptors, warnings, partitions, payloads and exception messages. The install / uninstall paths, which hold the install lock, are untouched.
Characterisation tests
tests/Unit/Service/DemoShowcasesBranchesTest.phpwas committed first, against the old code, and passes before and after: corrupt archive, missing and scalar manifest, manifest defaults with the install state, the partition of a mixed list (non-array entries, unknown ids, registered and LaunchPad types, tiles, empty ids) with its order, the first decodabledashboards/*.jsonentry, an archive with no dashboard entry and an archive that cannot be opened.What ran
vendor/bin/phpunit -c phpunit.xml --no-coverage tests/Unit: 2753 tests OK (13 skipped, as on development).vendor/bin/phpcs(two warnings about missing spec tags ongetDataDir/setDataDirForTesting, the same as on development) andvendor/bin/phpstan analyseonlib/Service/DemoShowcasesService.php: no errors.Figures (touched file
lib/Service/DemoShowcasesService.php)installShowcase, untouched)App-wide: unit complexity 4.02 → 4.08, unit size 3.40 → 3.41.
Maintainability floor: compare against development holds.
AI-assisted: prepared with Claude Code (claude-opus-5-5); reviewed by a maintainer before merge.
Generated by Claude Code