Skip to content

Commit 367a83f

Browse files
Merge pull request #18 from alexphillips-dev/fix/settings-bootstrap-undefined-fallback-main
Fix setup assistant fallback bootstrap on main
2 parents 29ccacb + 66f3680 commit 367a83f

5 files changed

Lines changed: 14 additions & 2 deletions

File tree

14.1 MB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
df541f0f27ccd8eb7560d46008d4d30a8a11e916447fb7d04354572bd312adcb folderview.plus-2026.03.25.04.txz

folderview.plus.plg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
<!ENTITY launch "Settings/FolderViewPlus">
77
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
88
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/folderview.plus.plg">
9-
<!ENTITY version "2026.03.25.03">
10-
<!ENTITY md5 "a5f9c09c1783255123cad9eec3064400">
9+
<!ENTITY version "2026.03.25.04">
10+
<!ENTITY md5 "4fbaa276a494052e78c686ff2f44a694">
1111
]>
1212

1313
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon="folder-icon.png" support="https://forums.unraid.net/topic/197631-plugin-folderview-plus/" min="7.0.0">
1414
<CHANGES>
1515

16+
###2026.03.25.04
17+
- Fix: Fix setup assistant fallback bootstrap.
18+
19+
1620
###2026.03.25.03
1721
- Fix: Removed dead folder editor stylesheet selectors that were no longer used after the modern editor cleanup, which was causing the strict dead-code guard to fail in GitHub quality and release workflows.
1822
- Quality: Release and CI strict checks now pass locally with dead-code enforcement enabled, while the shipped stable package and checksums have been rebuilt for the cleaned stylesheet contract.

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/scripts/folderviewplus.wizard.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,11 @@ const resolveSetupAssistantTemplateBestMatch = (...args) => getWizardSmartDetect
707707
const resolveSetupAssistantSmartBlueprintIndexes = (...args) => getWizardSmartDetectApi().resolveSetupAssistantSmartBlueprintIndexes(...args);
708708
const buildSetupAssistantTemplateAssignmentPreview = (...args) => getWizardSmartDetectApi().buildSetupAssistantTemplateAssignmentPreview(...args);
709709

710+
const SETUP_ASSISTANT_TEMPLATE_FALLBACK_BY_TYPE = Object.freeze({
711+
docker: String((window.FolderViewPlusSmartDetectConfig || {}).fallbackByType?.docker || 'Utilities'),
712+
vm: String((window.FolderViewPlusSmartDetectConfig || {}).fallbackByType?.vm || 'Utility VMs')
713+
});
714+
710715
const buildSetupAssistantTemplatePlanForType = (type) => {
711716
const resolvedType = normalizeManagedType(type);
712717
const bootstrap = getSetupAssistantTemplateBootstrap(resolvedType);

tests/setup-assistant-smart-detect.test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ test('smart detect thresholds and aliases are centralized in the shared config m
167167
assert.match(wizardJs, /window\.FolderViewPlusWizardSmartDetect \|\| null/);
168168
assert.match(wizardJs, /const getWizardSmartDetectApi = \(\(\) =>/);
169169
assert.match(wizardJs, /cachedApi = wizardSmartDetectModule\.createApi\(/);
170+
assert.match(wizardJs, /const SETUP_ASSISTANT_TEMPLATE_FALLBACK_BY_TYPE = Object\.freeze\(/);
171+
assert.match(wizardJs, /window\.FolderViewPlusSmartDetectConfig \|\| \{\}/);
170172
assert.match(settingsJs, /window\.FolderViewPlusSmartDetectConfig \|\| \{\}/);
171173
});
172174

0 commit comments

Comments
 (0)